The Automation API is now available. No CLI. No human-in-the-loop. Just your code. Learn More

DashboardJson

Provides a Wavefront Dashboard JSON resource. This allows dashboards to be created, updated, and deleted.

Example Usage

using Pulumi;
using Wavefront = Pulumi.Wavefront;

class MyStack : Stack
{
    public MyStack()
    {
        var testDashboardJson = new Wavefront.DashboardJson("testDashboardJson", new Wavefront.DashboardJsonArgs
        {
            DashboardJson = @"{
  ""name"": ""Terraform Test Dashboard Json"",
  ""description"": ""a"",
  ""eventFilterType"": ""BYCHART"",
  ""eventQuery"": """",
  ""defaultTimeWindow"": """",
  ""url"": ""tftestimport"",
  ""displayDescription"": false,
  ""displaySectionTableOfContents"": true,
  ""displayQueryParameters"": false,
  ""sections"": [
    {
      ""name"": ""section 1"",
      ""rows"": [
        {
          ""charts"": [
            {
              ""name"": ""chart 1"",
              ""sources"": [
                {
                  ""name"": ""source 1"",
                  ""query"": ""ts()"",
                  ""scatterPlotSource"": ""Y"",
                  ""querybuilderEnabled"": false,
                  ""sourceDescription"": """"
                }
              ],
              ""units"": ""someunit"",
              ""base"": 0,
              ""noDefaultEvents"": false,
              ""interpolatePoints"": false,
              ""includeObsoleteMetrics"": false,
              ""description"": ""This is chart 1, showing something"",
              ""chartSettings"": {
                ""type"": ""markdown-widget"",
                ""max"": 100,
                ""expectedDataSpacing"": 120,
                ""windowing"": ""full"",
                ""windowSize"": 10,
                ""autoColumnTags"": false,
                ""columnTags"": ""deprecated"",
                ""tagMode"": ""all"",
                ""numTags"": 2,
                ""customTags"": [
                  ""tag1"",
                  ""tag2""
                ],
                ""groupBySource"": true,
                ""y1Max"": 100,
                ""y1Units"": ""units"",
                ""y0ScaleSIBy1024"": true,
                ""y1ScaleSIBy1024"": true,
                ""y0UnitAutoscaling"": true,
                ""y1UnitAutoscaling"": true,
                ""fixedLegendEnabled"": true,
                ""fixedLegendUseRawStats"": true,
                ""fixedLegendPosition"": ""RIGHT"",
                ""fixedLegendDisplayStats"": [
                  ""stat1"",
                  ""stat2""
                ],
                ""fixedLegendFilterSort"": ""TOP"",
                ""fixedLegendFilterLimit"": 1,
                ""fixedLegendFilterField"": ""CURRENT"",
                ""plainMarkdownContent"": ""markdown content""
              },
              ""summarization"": ""MEAN""
            }
          ],
          ""heightFactor"": 50
        }
      ]
    }
  ],
  ""parameterDetails"": {
    ""param"": {
      ""hideFromView"": false,
      ""description"": null,
      ""allowAll"": null,
      ""tagKey"": null,
      ""queryValue"": null,
      ""dynamicFieldType"": null,
      ""reverseDynSort"": null,
      ""parameterType"": ""SIMPLE"",
      ""label"": ""test"",
      ""defaultValue"": ""Label"",
      ""valuesToReadableStrings"": {
        ""Label"": ""test""
      },
      ""selectedLabel"": ""Label"",
      ""value"": ""test""
    }
  },
  ""tags"" :{
    ""customerTags"":  [""terraform""]
  }
}

",
        });
    }

}
package main

import (
    "fmt"

    "github.com/pulumi/pulumi-wavefront/sdk/go/wavefront"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := wavefront.NewDashboardJson(ctx, "testDashboardJson", &wavefront.DashboardJsonArgs{
            DashboardJson: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "  \"name\": \"Terraform Test Dashboard Json\",\n", "  \"description\": \"a\",\n", "  \"eventFilterType\": \"BYCHART\",\n", "  \"eventQuery\": \"\",\n", "  \"defaultTimeWindow\": \"\",\n", "  \"url\": \"tftestimport\",\n", "  \"displayDescription\": false,\n", "  \"displaySectionTableOfContents\": true,\n", "  \"displayQueryParameters\": false,\n", "  \"sections\": [\n", "    {\n", "      \"name\": \"section 1\",\n", "      \"rows\": [\n", "        {\n", "          \"charts\": [\n", "            {\n", "              \"name\": \"chart 1\",\n", "              \"sources\": [\n", "                {\n", "                  \"name\": \"source 1\",\n", "                  \"query\": \"ts()\",\n", "                  \"scatterPlotSource\": \"Y\",\n", "                  \"querybuilderEnabled\": false,\n", "                  \"sourceDescription\": \"\"\n", "                }\n", "              ],\n", "              \"units\": \"someunit\",\n", "              \"base\": 0,\n", "              \"noDefaultEvents\": false,\n", "              \"interpolatePoints\": false,\n", "              \"includeObsoleteMetrics\": false,\n", "              \"description\": \"This is chart 1, showing something\",\n", "              \"chartSettings\": {\n", "                \"type\": \"markdown-widget\",\n", "                \"max\": 100,\n", "                \"expectedDataSpacing\": 120,\n", "                \"windowing\": \"full\",\n", "                \"windowSize\": 10,\n", "                \"autoColumnTags\": false,\n", "                \"columnTags\": \"deprecated\",\n", "                \"tagMode\": \"all\",\n", "                \"numTags\": 2,\n", "                \"customTags\": [\n", "                  \"tag1\",\n", "                  \"tag2\"\n", "                ],\n", "                \"groupBySource\": true,\n", "                \"y1Max\": 100,\n", "                \"y1Units\": \"units\",\n", "                \"y0ScaleSIBy1024\": true,\n", "                \"y1ScaleSIBy1024\": true,\n", "                \"y0UnitAutoscaling\": true,\n", "                \"y1UnitAutoscaling\": true,\n", "                \"fixedLegendEnabled\": true,\n", "                \"fixedLegendUseRawStats\": true,\n", "                \"fixedLegendPosition\": \"RIGHT\",\n", "                \"fixedLegendDisplayStats\": [\n", "                  \"stat1\",\n", "                  \"stat2\"\n", "                ],\n", "                \"fixedLegendFilterSort\": \"TOP\",\n", "                \"fixedLegendFilterLimit\": 1,\n", "                \"fixedLegendFilterField\": \"CURRENT\",\n", "                \"plainMarkdownContent\": \"markdown content\"\n", "              },\n", "              \"summarization\": \"MEAN\"\n", "            }\n", "          ],\n", "          \"heightFactor\": 50\n", "        }\n", "      ]\n", "    }\n", "  ],\n", "  \"parameterDetails\": {\n", "    \"param\": {\n", "      \"hideFromView\": false,\n", "      \"description\": null,\n", "      \"allowAll\": null,\n", "      \"tagKey\": null,\n", "      \"queryValue\": null,\n", "      \"dynamicFieldType\": null,\n", "      \"reverseDynSort\": null,\n", "      \"parameterType\": \"SIMPLE\",\n", "      \"label\": \"test\",\n", "      \"defaultValue\": \"Label\",\n", "      \"valuesToReadableStrings\": {\n", "        \"Label\": \"test\"\n", "      },\n", "      \"selectedLabel\": \"Label\",\n", "      \"value\": \"test\"\n", "    }\n", "  },\n", "  \"tags\" :{\n", "    \"customerTags\":  [\"terraform\"]\n", "  }\n", "}\n", "\n")),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_wavefront as wavefront

test_dashboard_json = wavefront.DashboardJson("testDashboardJson", dashboard_json="""{
  "name": "Terraform Test Dashboard Json",
  "description": "a",
  "eventFilterType": "BYCHART",
  "eventQuery": "",
  "defaultTimeWindow": "",
  "url": "tftestimport",
  "displayDescription": false,
  "displaySectionTableOfContents": true,
  "displayQueryParameters": false,
  "sections": [
    {
      "name": "section 1",
      "rows": [
        {
          "charts": [
            {
              "name": "chart 1",
              "sources": [
                {
                  "name": "source 1",
                  "query": "ts()",
                  "scatterPlotSource": "Y",
                  "querybuilderEnabled": false,
                  "sourceDescription": ""
                }
              ],
              "units": "someunit",
              "base": 0,
              "noDefaultEvents": false,
              "interpolatePoints": false,
              "includeObsoleteMetrics": false,
              "description": "This is chart 1, showing something",
              "chartSettings": {
                "type": "markdown-widget",
                "max": 100,
                "expectedDataSpacing": 120,
                "windowing": "full",
                "windowSize": 10,
                "autoColumnTags": false,
                "columnTags": "deprecated",
                "tagMode": "all",
                "numTags": 2,
                "customTags": [
                  "tag1",
                  "tag2"
                ],
                "groupBySource": true,
                "y1Max": 100,
                "y1Units": "units",
                "y0ScaleSIBy1024": true,
                "y1ScaleSIBy1024": true,
                "y0UnitAutoscaling": true,
                "y1UnitAutoscaling": true,
                "fixedLegendEnabled": true,
                "fixedLegendUseRawStats": true,
                "fixedLegendPosition": "RIGHT",
                "fixedLegendDisplayStats": [
                  "stat1",
                  "stat2"
                ],
                "fixedLegendFilterSort": "TOP",
                "fixedLegendFilterLimit": 1,
                "fixedLegendFilterField": "CURRENT",
                "plainMarkdownContent": "markdown content"
              },
              "summarization": "MEAN"
            }
          ],
          "heightFactor": 50
        }
      ]
    }
  ],
  "parameterDetails": {
    "param": {
      "hideFromView": false,
      "description": null,
      "allowAll": null,
      "tagKey": null,
      "queryValue": null,
      "dynamicFieldType": null,
      "reverseDynSort": null,
      "parameterType": "SIMPLE",
      "label": "test",
      "defaultValue": "Label",
      "valuesToReadableStrings": {
        "Label": "test"
      },
      "selectedLabel": "Label",
      "value": "test"
    }
  },
  "tags" :{
    "customerTags":  ["terraform"]
  }
}

""")
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";

const testDashboardJson = new wavefront.DashboardJson("test_dashboard_json", {
    dashboardJson: `{
  "name": "Terraform Test Dashboard Json",
  "description": "a",
  "eventFilterType": "BYCHART",
  "eventQuery": "",
  "defaultTimeWindow": "",
  "url": "tftestimport",
  "displayDescription": false,
  "displaySectionTableOfContents": true,
  "displayQueryParameters": false,
  "sections": [
    {
      "name": "section 1",
      "rows": [
        {
          "charts": [
            {
              "name": "chart 1",
              "sources": [
                {
                  "name": "source 1",
                  "query": "ts()",
                  "scatterPlotSource": "Y",
                  "querybuilderEnabled": false,
                  "sourceDescription": ""
                }
              ],
              "units": "someunit",
              "base": 0,
              "noDefaultEvents": false,
              "interpolatePoints": false,
              "includeObsoleteMetrics": false,
              "description": "This is chart 1, showing something",
              "chartSettings": {
                "type": "markdown-widget",
                "max": 100,
                "expectedDataSpacing": 120,
                "windowing": "full",
                "windowSize": 10,
                "autoColumnTags": false,
                "columnTags": "deprecated",
                "tagMode": "all",
                "numTags": 2,
                "customTags": [
                  "tag1",
                  "tag2"
                ],
                "groupBySource": true,
                "y1Max": 100,
                "y1Units": "units",
                "y0ScaleSIBy1024": true,
                "y1ScaleSIBy1024": true,
                "y0UnitAutoscaling": true,
                "y1UnitAutoscaling": true,
                "fixedLegendEnabled": true,
                "fixedLegendUseRawStats": true,
                "fixedLegendPosition": "RIGHT",
                "fixedLegendDisplayStats": [
                  "stat1",
                  "stat2"
                ],
                "fixedLegendFilterSort": "TOP",
                "fixedLegendFilterLimit": 1,
                "fixedLegendFilterField": "CURRENT",
                "plainMarkdownContent": "markdown content"
              },
              "summarization": "MEAN"
            }
          ],
          "heightFactor": 50
        }
      ]
    }
  ],
  "parameterDetails": {
    "param": {
      "hideFromView": false,
      "description": null,
      "allowAll": null,
      "tagKey": null,
      "queryValue": null,
      "dynamicFieldType": null,
      "reverseDynSort": null,
      "parameterType": "SIMPLE",
      "label": "test",
      "defaultValue": "Label",
      "valuesToReadableStrings": {
        "Label": "test"
      },
      "selectedLabel": "Label",
      "value": "test"
    }
  },
  "tags" :{
    "customerTags":  ["terraform"]
  }
}
`,
});

Create a DashboardJson Resource

def DashboardJson(resource_name: str, opts: Optional[ResourceOptions] = None, dashboard_json: Optional[str] = None)
name string
The unique name of the resource.
args DashboardJsonArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DashboardJsonArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DashboardJsonArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

DashboardJson Resource Properties

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

Inputs

The DashboardJson resource accepts the following input properties:

JSON string

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

DashboardJson string

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

dashboardJson string

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

dashboard_json str

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

Outputs

All input properties are implicitly available as output properties. Additionally, the DashboardJson 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing DashboardJson Resource

Get an existing DashboardJson 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?: DashboardJsonState, opts?: CustomResourceOptions): DashboardJson
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, dashboard_json: Optional[str] = None) -> DashboardJson
func GetDashboardJson(ctx *Context, name string, id IDInput, state *DashboardJsonState, opts ...ResourceOption) (*DashboardJson, error)
public static DashboardJson Get(string name, Input<string> id, DashboardJsonState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

JSON string

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

DashboardJson string

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

dashboardJson string

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

dashboard_json str

See Wavefront API Documentation for instructions on how to get to your API documentation for more details.

Package Details

Repository
https://github.com/pulumi/pulumi-wavefront
License
Apache-2.0
Notes
This Pulumi package is based on the wavefront Terraform Provider.