1. Packages
  2. Splight
  3. API Docs
  4. DashboardChart
splight v0.1.25 published on Monday, Jul 15, 2024 by splightplatform

splight.DashboardChart

Explore with Pulumi AI

splight logo
splight v0.1.25 published on Monday, Jul 15, 2024 by splightplatform

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as splight from "@splightplatform/pulumi-splight";
    
    const dashboardChartTest = new splight.DashboardChart("dashboardChartTest", {
        type: "timeseries",
        tab: "1234-1234-1234-1234",
        timestampGte: "now - 6h",
        timestampLte: "now",
        chartItems: [
            {
                refId: "A",
                type: "QUERY",
                color: "red",
                expressionPlain: "",
                queryPlain: JSON.stringify([{
                    $match: {
                        asset: "1234-1234-1234-1234",
                        attribute: "1234-1234-1234-1234",
                    },
                }]),
            },
            {
                refId: "B",
                color: "blue",
                type: "QUERY",
                expressionPlain: "",
                queryPlain: JSON.stringify([{
                    $match: {
                        asset: "1234-1234-1234-1234",
                        attribute: "1234-1234-1234-1234",
                    },
                }]),
            },
        ],
        thresholds: [{
            color: "#00edcf",
            displayText: "T1Test",
            value: 13.1,
        }],
        valueMappings: [{
            displayText: "MODIFICADO",
            matchValue: "123.3",
            type: "exact_match",
            order: 0,
        }],
    });
    
    import pulumi
    import json
    import pulumi_splight as splight
    
    dashboard_chart_test = splight.DashboardChart("dashboardChartTest",
        type="timeseries",
        tab="1234-1234-1234-1234",
        timestamp_gte="now - 6h",
        timestamp_lte="now",
        chart_items=[
            splight.DashboardChartChartItemArgs(
                ref_id="A",
                type="QUERY",
                color="red",
                expression_plain="",
                query_plain=json.dumps([{
                    "$match": {
                        "asset": "1234-1234-1234-1234",
                        "attribute": "1234-1234-1234-1234",
                    },
                }]),
            ),
            splight.DashboardChartChartItemArgs(
                ref_id="B",
                color="blue",
                type="QUERY",
                expression_plain="",
                query_plain=json.dumps([{
                    "$match": {
                        "asset": "1234-1234-1234-1234",
                        "attribute": "1234-1234-1234-1234",
                    },
                }]),
            ),
        ],
        thresholds=[splight.DashboardChartThresholdArgs(
            color="#00edcf",
            display_text="T1Test",
            value=13.1,
        )],
        value_mappings=[splight.DashboardChartValueMappingArgs(
            display_text="MODIFICADO",
            match_value="123.3",
            type="exact_match",
            order=0,
        )])
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/splightplatform/pulumi-splight/sdk/go/splight"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal([]map[string]interface{}{
    			map[string]interface{}{
    				"$match": map[string]interface{}{
    					"asset":     "1234-1234-1234-1234",
    					"attribute": "1234-1234-1234-1234",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		tmpJSON1, err := json.Marshal([]map[string]interface{}{
    			map[string]interface{}{
    				"$match": map[string]interface{}{
    					"asset":     "1234-1234-1234-1234",
    					"attribute": "1234-1234-1234-1234",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json1 := string(tmpJSON1)
    		_, err = splight.NewDashboardChart(ctx, "dashboardChartTest", &splight.DashboardChartArgs{
    			Type:         pulumi.String("timeseries"),
    			Tab:          pulumi.String("1234-1234-1234-1234"),
    			TimestampGte: pulumi.String("now - 6h"),
    			TimestampLte: pulumi.String("now"),
    			ChartItems: splight.DashboardChartChartItemArray{
    				&splight.DashboardChartChartItemArgs{
    					RefId:           pulumi.String("A"),
    					Type:            pulumi.String("QUERY"),
    					Color:           pulumi.String("red"),
    					ExpressionPlain: pulumi.String(""),
    					QueryPlain:      pulumi.String(json0),
    				},
    				&splight.DashboardChartChartItemArgs{
    					RefId:           pulumi.String("B"),
    					Color:           pulumi.String("blue"),
    					Type:            pulumi.String("QUERY"),
    					ExpressionPlain: pulumi.String(""),
    					QueryPlain:      pulumi.String(json1),
    				},
    			},
    			Thresholds: splight.DashboardChartThresholdArray{
    				&splight.DashboardChartThresholdArgs{
    					Color:       pulumi.String("#00edcf"),
    					DisplayText: pulumi.String("T1Test"),
    					Value:       pulumi.Float64(13.1),
    				},
    			},
    			ValueMappings: splight.DashboardChartValueMappingArray{
    				&splight.DashboardChartValueMappingArgs{
    					DisplayText: pulumi.String("MODIFICADO"),
    					MatchValue:  pulumi.String("123.3"),
    					Type:        pulumi.String("exact_match"),
    					Order:       pulumi.Int(0),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Splight = Splight.Splight;
    
    return await Deployment.RunAsync(() => 
    {
        var dashboardChartTest = new Splight.DashboardChart("dashboardChartTest", new()
        {
            Type = "timeseries",
            Tab = "1234-1234-1234-1234",
            TimestampGte = "now - 6h",
            TimestampLte = "now",
            ChartItems = new[]
            {
                new Splight.Inputs.DashboardChartChartItemArgs
                {
                    RefId = "A",
                    Type = "QUERY",
                    Color = "red",
                    ExpressionPlain = "",
                    QueryPlain = JsonSerializer.Serialize(new[]
                    {
                        new Dictionary<string, object?>
                        {
                            ["$match"] = new Dictionary<string, object?>
                            {
                                ["asset"] = "1234-1234-1234-1234",
                                ["attribute"] = "1234-1234-1234-1234",
                            },
                        },
                    }),
                },
                new Splight.Inputs.DashboardChartChartItemArgs
                {
                    RefId = "B",
                    Color = "blue",
                    Type = "QUERY",
                    ExpressionPlain = "",
                    QueryPlain = JsonSerializer.Serialize(new[]
                    {
                        new Dictionary<string, object?>
                        {
                            ["$match"] = new Dictionary<string, object?>
                            {
                                ["asset"] = "1234-1234-1234-1234",
                                ["attribute"] = "1234-1234-1234-1234",
                            },
                        },
                    }),
                },
            },
            Thresholds = new[]
            {
                new Splight.Inputs.DashboardChartThresholdArgs
                {
                    Color = "#00edcf",
                    DisplayText = "T1Test",
                    Value = 13.1,
                },
            },
            ValueMappings = new[]
            {
                new Splight.Inputs.DashboardChartValueMappingArgs
                {
                    DisplayText = "MODIFICADO",
                    MatchValue = "123.3",
                    Type = "exact_match",
                    Order = 0,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.splight.DashboardChart;
    import com.pulumi.splight.DashboardChartArgs;
    import com.pulumi.splight.inputs.DashboardChartChartItemArgs;
    import com.pulumi.splight.inputs.DashboardChartThresholdArgs;
    import com.pulumi.splight.inputs.DashboardChartValueMappingArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var dashboardChartTest = new DashboardChart("dashboardChartTest", DashboardChartArgs.builder()
                .type("timeseries")
                .tab("1234-1234-1234-1234")
                .timestampGte("now - 6h")
                .timestampLte("now")
                .chartItems(            
                    DashboardChartChartItemArgs.builder()
                        .refId("A")
                        .type("QUERY")
                        .color("red")
                        .expressionPlain("")
                        .queryPlain(serializeJson(
                            jsonArray(jsonObject(
                                jsonProperty("$match", jsonObject(
                                    jsonProperty("asset", "1234-1234-1234-1234"),
                                    jsonProperty("attribute", "1234-1234-1234-1234")
                                ))
                            ))))
                        .build(),
                    DashboardChartChartItemArgs.builder()
                        .refId("B")
                        .color("blue")
                        .type("QUERY")
                        .expressionPlain("")
                        .queryPlain(serializeJson(
                            jsonArray(jsonObject(
                                jsonProperty("$match", jsonObject(
                                    jsonProperty("asset", "1234-1234-1234-1234"),
                                    jsonProperty("attribute", "1234-1234-1234-1234")
                                ))
                            ))))
                        .build())
                .thresholds(DashboardChartThresholdArgs.builder()
                    .color("#00edcf")
                    .displayText("T1Test")
                    .value(13.1)
                    .build())
                .valueMappings(DashboardChartValueMappingArgs.builder()
                    .displayText("MODIFICADO")
                    .matchValue("123.3")
                    .type("exact_match")
                    .order(0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      dashboardChartTest:
        type: splight:DashboardChart
        properties:
          type: timeseries
          tab: 1234-1234-1234-1234
          timestampGte: now - 6h
          timestampLte: now
          chartItems:
            - refId: A
              type: QUERY
              color: red
              expressionPlain:
              queryPlain:
                fn::toJSON:
                  - $match:
                      asset: 1234-1234-1234-1234
                      attribute: 1234-1234-1234-1234
            - refId: B
              color: blue
              type: QUERY
              expressionPlain:
              queryPlain:
                fn::toJSON:
                  - $match:
                      asset: 1234-1234-1234-1234
                      attribute: 1234-1234-1234-1234
          thresholds:
            - color: '#00edcf'
              displayText: T1Test
              value: 13.1
          valueMappings:
            - displayText: MODIFICADO
              matchValue: '123.3'
              type: exact_match
              order: 0
    

    Create DashboardChart Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DashboardChart(name: string, args: DashboardChartArgs, opts?: CustomResourceOptions);
    @overload
    def DashboardChart(resource_name: str,
                       args: DashboardChartArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DashboardChart(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       chart_items: Optional[Sequence[DashboardChartChartItemArgs]] = None,
                       tab: Optional[str] = None,
                       timestamp_gte: Optional[str] = None,
                       timestamp_lte: Optional[str] = None,
                       type: Optional[str] = None,
                       collection: Optional[str] = None,
                       height: Optional[int] = None,
                       name: Optional[str] = None,
                       thresholds: Optional[Sequence[DashboardChartThresholdArgs]] = None,
                       value_mappings: Optional[Sequence[DashboardChartValueMappingArgs]] = None,
                       width: Optional[int] = None)
    func NewDashboardChart(ctx *Context, name string, args DashboardChartArgs, opts ...ResourceOption) (*DashboardChart, error)
    public DashboardChart(string name, DashboardChartArgs args, CustomResourceOptions? opts = null)
    public DashboardChart(String name, DashboardChartArgs args)
    public DashboardChart(String name, DashboardChartArgs args, CustomResourceOptions options)
    
    type: splight:DashboardChart
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DashboardChartArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DashboardChartArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DashboardChartArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DashboardChartArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DashboardChartArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dashboardChartResource = new Splight.DashboardChart("dashboardChartResource", new()
    {
        ChartItems = new[]
        {
            new Splight.Inputs.DashboardChartChartItemArgs
            {
                QueryPlain = "string",
                ExpressionPlain = "string",
                Type = "string",
                Color = "string",
                RefId = "string",
                Label = "string",
                QueryGroupFunction = "string",
                QueryGroupUnit = "string",
                QueryLimit = 0,
                QueryFilterAttribute = new Splight.Inputs.DashboardChartChartItemQueryFilterAttributeArgs
                {
                    Id = "string",
                    Name = "string",
                },
                QuerySortDirection = 0,
                QueryFilterAsset = new Splight.Inputs.DashboardChartChartItemQueryFilterAssetArgs
                {
                    Id = "string",
                    Name = "string",
                },
                Hidden = false,
            },
        },
        Tab = "string",
        TimestampGte = "string",
        TimestampLte = "string",
        Type = "string",
        Collection = "string",
        Height = 0,
        Name = "string",
        Thresholds = new[]
        {
            new Splight.Inputs.DashboardChartThresholdArgs
            {
                Color = "string",
                DisplayText = "string",
                Value = 0,
            },
        },
        ValueMappings = new[]
        {
            new Splight.Inputs.DashboardChartValueMappingArgs
            {
                DisplayText = "string",
                MatchValue = "string",
                Order = 0,
                Type = "string",
            },
        },
        Width = 0,
    });
    
    example, err := splight.NewDashboardChart(ctx, "dashboardChartResource", &splight.DashboardChartArgs{
    	ChartItems: splight.DashboardChartChartItemArray{
    		&splight.DashboardChartChartItemArgs{
    			QueryPlain:         pulumi.String("string"),
    			ExpressionPlain:    pulumi.String("string"),
    			Type:               pulumi.String("string"),
    			Color:              pulumi.String("string"),
    			RefId:              pulumi.String("string"),
    			Label:              pulumi.String("string"),
    			QueryGroupFunction: pulumi.String("string"),
    			QueryGroupUnit:     pulumi.String("string"),
    			QueryLimit:         pulumi.Int(0),
    			QueryFilterAttribute: &splight.DashboardChartChartItemQueryFilterAttributeArgs{
    				Id:   pulumi.String("string"),
    				Name: pulumi.String("string"),
    			},
    			QuerySortDirection: pulumi.Int(0),
    			QueryFilterAsset: &splight.DashboardChartChartItemQueryFilterAssetArgs{
    				Id:   pulumi.String("string"),
    				Name: pulumi.String("string"),
    			},
    			Hidden: pulumi.Bool(false),
    		},
    	},
    	Tab:          pulumi.String("string"),
    	TimestampGte: pulumi.String("string"),
    	TimestampLte: pulumi.String("string"),
    	Type:         pulumi.String("string"),
    	Collection:   pulumi.String("string"),
    	Height:       pulumi.Int(0),
    	Name:         pulumi.String("string"),
    	Thresholds: splight.DashboardChartThresholdArray{
    		&splight.DashboardChartThresholdArgs{
    			Color:       pulumi.String("string"),
    			DisplayText: pulumi.String("string"),
    			Value:       pulumi.Float64(0),
    		},
    	},
    	ValueMappings: splight.DashboardChartValueMappingArray{
    		&splight.DashboardChartValueMappingArgs{
    			DisplayText: pulumi.String("string"),
    			MatchValue:  pulumi.String("string"),
    			Order:       pulumi.Int(0),
    			Type:        pulumi.String("string"),
    		},
    	},
    	Width: pulumi.Int(0),
    })
    
    var dashboardChartResource = new DashboardChart("dashboardChartResource", DashboardChartArgs.builder()
        .chartItems(DashboardChartChartItemArgs.builder()
            .queryPlain("string")
            .expressionPlain("string")
            .type("string")
            .color("string")
            .refId("string")
            .label("string")
            .queryGroupFunction("string")
            .queryGroupUnit("string")
            .queryLimit(0)
            .queryFilterAttribute(DashboardChartChartItemQueryFilterAttributeArgs.builder()
                .id("string")
                .name("string")
                .build())
            .querySortDirection(0)
            .queryFilterAsset(DashboardChartChartItemQueryFilterAssetArgs.builder()
                .id("string")
                .name("string")
                .build())
            .hidden(false)
            .build())
        .tab("string")
        .timestampGte("string")
        .timestampLte("string")
        .type("string")
        .collection("string")
        .height(0)
        .name("string")
        .thresholds(DashboardChartThresholdArgs.builder()
            .color("string")
            .displayText("string")
            .value(0)
            .build())
        .valueMappings(DashboardChartValueMappingArgs.builder()
            .displayText("string")
            .matchValue("string")
            .order(0)
            .type("string")
            .build())
        .width(0)
        .build());
    
    dashboard_chart_resource = splight.DashboardChart("dashboardChartResource",
        chart_items=[splight.DashboardChartChartItemArgs(
            query_plain="string",
            expression_plain="string",
            type="string",
            color="string",
            ref_id="string",
            label="string",
            query_group_function="string",
            query_group_unit="string",
            query_limit=0,
            query_filter_attribute=splight.DashboardChartChartItemQueryFilterAttributeArgs(
                id="string",
                name="string",
            ),
            query_sort_direction=0,
            query_filter_asset=splight.DashboardChartChartItemQueryFilterAssetArgs(
                id="string",
                name="string",
            ),
            hidden=False,
        )],
        tab="string",
        timestamp_gte="string",
        timestamp_lte="string",
        type="string",
        collection="string",
        height=0,
        name="string",
        thresholds=[splight.DashboardChartThresholdArgs(
            color="string",
            display_text="string",
            value=0,
        )],
        value_mappings=[splight.DashboardChartValueMappingArgs(
            display_text="string",
            match_value="string",
            order=0,
            type="string",
        )],
        width=0)
    
    const dashboardChartResource = new splight.DashboardChart("dashboardChartResource", {
        chartItems: [{
            queryPlain: "string",
            expressionPlain: "string",
            type: "string",
            color: "string",
            refId: "string",
            label: "string",
            queryGroupFunction: "string",
            queryGroupUnit: "string",
            queryLimit: 0,
            queryFilterAttribute: {
                id: "string",
                name: "string",
            },
            querySortDirection: 0,
            queryFilterAsset: {
                id: "string",
                name: "string",
            },
            hidden: false,
        }],
        tab: "string",
        timestampGte: "string",
        timestampLte: "string",
        type: "string",
        collection: "string",
        height: 0,
        name: "string",
        thresholds: [{
            color: "string",
            displayText: "string",
            value: 0,
        }],
        valueMappings: [{
            displayText: "string",
            matchValue: "string",
            order: 0,
            type: "string",
        }],
        width: 0,
    });
    
    type: splight:DashboardChart
    properties:
        chartItems:
            - color: string
              expressionPlain: string
              hidden: false
              label: string
              queryFilterAsset:
                id: string
                name: string
              queryFilterAttribute:
                id: string
                name: string
              queryGroupFunction: string
              queryGroupUnit: string
              queryLimit: 0
              queryPlain: string
              querySortDirection: 0
              refId: string
              type: string
        collection: string
        height: 0
        name: string
        tab: string
        thresholds:
            - color: string
              displayText: string
              value: 0
        timestampGte: string
        timestampLte: string
        type: string
        valueMappings:
            - displayText: string
              matchValue: string
              order: 0
              type: string
        width: 0
    

    DashboardChart Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DashboardChart resource accepts the following input properties:

    ChartItems List<Splight.Splight.Inputs.DashboardChartChartItem>
    chart traces to be included
    Tab string
    id for the tab where to place the chart
    TimestampGte string
    date in isoformat or shortcut string where to end reading
    TimestampLte string
    date in isoformat or shortcut string where to start reading
    Type string
    [timeseries|bargauge|..] chart type
    Collection string
    Height int
    chart height in px
    Name string
    name of the chart
    Thresholds List<Splight.Splight.Inputs.DashboardChartThreshold>
    optional static lines to be added to the chart as references
    ValueMappings List<Splight.Splight.Inputs.DashboardChartValueMapping>
    optional mappings to transform data with rules
    Width int
    chart width in cols (max 20)
    ChartItems []DashboardChartChartItemArgs
    chart traces to be included
    Tab string
    id for the tab where to place the chart
    TimestampGte string
    date in isoformat or shortcut string where to end reading
    TimestampLte string
    date in isoformat or shortcut string where to start reading
    Type string
    [timeseries|bargauge|..] chart type
    Collection string
    Height int
    chart height in px
    Name string
    name of the chart
    Thresholds []DashboardChartThresholdArgs
    optional static lines to be added to the chart as references
    ValueMappings []DashboardChartValueMappingArgs
    optional mappings to transform data with rules
    Width int
    chart width in cols (max 20)
    chartItems List<DashboardChartChartItem>
    chart traces to be included
    tab String
    id for the tab where to place the chart
    timestampGte String
    date in isoformat or shortcut string where to end reading
    timestampLte String
    date in isoformat or shortcut string where to start reading
    type String
    [timeseries|bargauge|..] chart type
    collection String
    height Integer
    chart height in px
    name String
    name of the chart
    thresholds List<DashboardChartThreshold>
    optional static lines to be added to the chart as references
    valueMappings List<DashboardChartValueMapping>
    optional mappings to transform data with rules
    width Integer
    chart width in cols (max 20)
    chartItems DashboardChartChartItem[]
    chart traces to be included
    tab string
    id for the tab where to place the chart
    timestampGte string
    date in isoformat or shortcut string where to end reading
    timestampLte string
    date in isoformat or shortcut string where to start reading
    type string
    [timeseries|bargauge|..] chart type
    collection string
    height number
    chart height in px
    name string
    name of the chart
    thresholds DashboardChartThreshold[]
    optional static lines to be added to the chart as references
    valueMappings DashboardChartValueMapping[]
    optional mappings to transform data with rules
    width number
    chart width in cols (max 20)
    chart_items Sequence[DashboardChartChartItemArgs]
    chart traces to be included
    tab str
    id for the tab where to place the chart
    timestamp_gte str
    date in isoformat or shortcut string where to end reading
    timestamp_lte str
    date in isoformat or shortcut string where to start reading
    type str
    [timeseries|bargauge|..] chart type
    collection str
    height int
    chart height in px
    name str
    name of the chart
    thresholds Sequence[DashboardChartThresholdArgs]
    optional static lines to be added to the chart as references
    value_mappings Sequence[DashboardChartValueMappingArgs]
    optional mappings to transform data with rules
    width int
    chart width in cols (max 20)
    chartItems List<Property Map>
    chart traces to be included
    tab String
    id for the tab where to place the chart
    timestampGte String
    date in isoformat or shortcut string where to end reading
    timestampLte String
    date in isoformat or shortcut string where to start reading
    type String
    [timeseries|bargauge|..] chart type
    collection String
    height Number
    chart height in px
    name String
    name of the chart
    thresholds List<Property Map>
    optional static lines to be added to the chart as references
    valueMappings List<Property Map>
    optional mappings to transform data with rules
    width Number
    chart width in cols (max 20)

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DashboardChart resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DashboardChart Resource

    Get an existing DashboardChart resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DashboardChartState, opts?: CustomResourceOptions): DashboardChart
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            chart_items: Optional[Sequence[DashboardChartChartItemArgs]] = None,
            collection: Optional[str] = None,
            height: Optional[int] = None,
            name: Optional[str] = None,
            tab: Optional[str] = None,
            thresholds: Optional[Sequence[DashboardChartThresholdArgs]] = None,
            timestamp_gte: Optional[str] = None,
            timestamp_lte: Optional[str] = None,
            type: Optional[str] = None,
            value_mappings: Optional[Sequence[DashboardChartValueMappingArgs]] = None,
            width: Optional[int] = None) -> DashboardChart
    func GetDashboardChart(ctx *Context, name string, id IDInput, state *DashboardChartState, opts ...ResourceOption) (*DashboardChart, error)
    public static DashboardChart Get(string name, Input<string> id, DashboardChartState? state, CustomResourceOptions? opts = null)
    public static DashboardChart get(String name, Output<String> id, DashboardChartState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ChartItems List<Splight.Splight.Inputs.DashboardChartChartItem>
    chart traces to be included
    Collection string
    Height int
    chart height in px
    Name string
    name of the chart
    Tab string
    id for the tab where to place the chart
    Thresholds List<Splight.Splight.Inputs.DashboardChartThreshold>
    optional static lines to be added to the chart as references
    TimestampGte string
    date in isoformat or shortcut string where to end reading
    TimestampLte string
    date in isoformat or shortcut string where to start reading
    Type string
    [timeseries|bargauge|..] chart type
    ValueMappings List<Splight.Splight.Inputs.DashboardChartValueMapping>
    optional mappings to transform data with rules
    Width int
    chart width in cols (max 20)
    ChartItems []DashboardChartChartItemArgs
    chart traces to be included
    Collection string
    Height int
    chart height in px
    Name string
    name of the chart
    Tab string
    id for the tab where to place the chart
    Thresholds []DashboardChartThresholdArgs
    optional static lines to be added to the chart as references
    TimestampGte string
    date in isoformat or shortcut string where to end reading
    TimestampLte string
    date in isoformat or shortcut string where to start reading
    Type string
    [timeseries|bargauge|..] chart type
    ValueMappings []DashboardChartValueMappingArgs
    optional mappings to transform data with rules
    Width int
    chart width in cols (max 20)
    chartItems List<DashboardChartChartItem>
    chart traces to be included
    collection String
    height Integer
    chart height in px
    name String
    name of the chart
    tab String
    id for the tab where to place the chart
    thresholds List<DashboardChartThreshold>
    optional static lines to be added to the chart as references
    timestampGte String
    date in isoformat or shortcut string where to end reading
    timestampLte String
    date in isoformat or shortcut string where to start reading
    type String
    [timeseries|bargauge|..] chart type
    valueMappings List<DashboardChartValueMapping>
    optional mappings to transform data with rules
    width Integer
    chart width in cols (max 20)
    chartItems DashboardChartChartItem[]
    chart traces to be included
    collection string
    height number
    chart height in px
    name string
    name of the chart
    tab string
    id for the tab where to place the chart
    thresholds DashboardChartThreshold[]
    optional static lines to be added to the chart as references
    timestampGte string
    date in isoformat or shortcut string where to end reading
    timestampLte string
    date in isoformat or shortcut string where to start reading
    type string
    [timeseries|bargauge|..] chart type
    valueMappings DashboardChartValueMapping[]
    optional mappings to transform data with rules
    width number
    chart width in cols (max 20)
    chart_items Sequence[DashboardChartChartItemArgs]
    chart traces to be included
    collection str
    height int
    chart height in px
    name str
    name of the chart
    tab str
    id for the tab where to place the chart
    thresholds Sequence[DashboardChartThresholdArgs]
    optional static lines to be added to the chart as references
    timestamp_gte str
    date in isoformat or shortcut string where to end reading
    timestamp_lte str
    date in isoformat or shortcut string where to start reading
    type str
    [timeseries|bargauge|..] chart type
    value_mappings Sequence[DashboardChartValueMappingArgs]
    optional mappings to transform data with rules
    width int
    chart width in cols (max 20)
    chartItems List<Property Map>
    chart traces to be included
    collection String
    height Number
    chart height in px
    name String
    name of the chart
    tab String
    id for the tab where to place the chart
    thresholds List<Property Map>
    optional static lines to be added to the chart as references
    timestampGte String
    date in isoformat or shortcut string where to end reading
    timestampLte String
    date in isoformat or shortcut string where to start reading
    type String
    [timeseries|bargauge|..] chart type
    valueMappings List<Property Map>
    optional mappings to transform data with rules
    width Number
    chart width in cols (max 20)

    Supporting Types

    DashboardChartChartItem, DashboardChartChartItemArgs

    DashboardChartChartItemQueryFilterAsset, DashboardChartChartItemQueryFilterAssetArgs

    Id string
    The ID of this resource.
    Name string
    Id string
    The ID of this resource.
    Name string
    id String
    The ID of this resource.
    name String
    id string
    The ID of this resource.
    name string
    id str
    The ID of this resource.
    name str
    id String
    The ID of this resource.
    name String

    DashboardChartChartItemQueryFilterAttribute, DashboardChartChartItemQueryFilterAttributeArgs

    Id string
    The ID of this resource.
    Name string
    Id string
    The ID of this resource.
    Name string
    id String
    The ID of this resource.
    name String
    id string
    The ID of this resource.
    name string
    id str
    The ID of this resource.
    name str
    id String
    The ID of this resource.
    name String

    DashboardChartThreshold, DashboardChartThresholdArgs

    Color string
    DisplayText string
    Value double
    Color string
    DisplayText string
    Value float64
    color String
    displayText String
    value Double
    color string
    displayText string
    value number
    color String
    displayText String
    value Number

    DashboardChartValueMapping, DashboardChartValueMappingArgs

    DisplayText string
    MatchValue string
    Order int
    Type string
    DisplayText string
    MatchValue string
    Order int
    Type string
    displayText String
    matchValue String
    order Integer
    type String
    displayText string
    matchValue string
    order number
    type string
    displayText String
    matchValue String
    order Number
    type String

    Import

    $ pulumi import splight:index/dashboardChart:DashboardChart [options] splight_dashbaord_chart.<name> <dashboard_chart_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    splight splightplatform/pulumi-splight
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the splight Terraform Provider.
    splight logo
    splight v0.1.25 published on Monday, Jul 15, 2024 by splightplatform