wavefront.DashboardJson
Explore with Pulumi AI
Provides a Wavefront Dashboard JSON resource. This allows dashboards to be created, updated, and deleted.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;
return await Deployment.RunAsync(() =>
{
var testDashboardJson = new Wavefront.DashboardJson("testDashboardJson", new()
{
JSON = @" {
""acl"": {
""canModify"": [
""group-uuid"",
""role-uuid""
],
""canView"": [
""group-uuid"",
""role-uuid""
]
},
""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""
},
""chartAttributes"": {
""dashboardLinks"": {
""*"": {
""variables"": {
""xxx"": ""xxx""
},
""destination"": ""/dashboards/xxxx""
}
}
},
""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 (
"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wavefront.NewDashboardJson(ctx, "testDashboardJson", &wavefront.DashboardJsonArgs{
DashboardJson: pulumi.String(` {
"acl": {
"canModify": [
"group-uuid",
"role-uuid"
],
"canView": [
"group-uuid",
"role-uuid"
]
},
"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"
},
"chartAttributes": {
"dashboardLinks": {
"*": {
"variables": {
"xxx": "xxx"
},
"destination": "/dashboards/xxxx"
}
}
},
"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"
]
}
}
`),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.wavefront.DashboardJson;
import com.pulumi.wavefront.DashboardJsonArgs;
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 testDashboardJson = new DashboardJson("testDashboardJson", DashboardJsonArgs.builder()
.dashboardJson("""
{
"acl": {
"canModify": [
"group-uuid",
"role-uuid"
],
"canView": [
"group-uuid",
"role-uuid"
]
},
"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"
},
"chartAttributes": {
"dashboardLinks": {
"*": {
"variables": {
"xxx": "xxx"
},
"destination": "/dashboards/xxxx"
}
}
},
"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"
]
}
}
""")
.build());
}
}
import pulumi
import pulumi_wavefront as wavefront
test_dashboard_json = wavefront.DashboardJson("testDashboardJson", dashboard_json=""" {
"acl": {
"canModify": [
"group-uuid",
"role-uuid"
],
"canView": [
"group-uuid",
"role-uuid"
]
},
"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"
},
"chartAttributes": {
"dashboardLinks": {
"*": {
"variables": {
"xxx": "xxx"
},
"destination": "/dashboards/xxxx"
}
}
},
"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("testDashboardJson", {dashboardJson: ` {
"acl": {
"canModify": [
"group-uuid",
"role-uuid"
],
"canView": [
"group-uuid",
"role-uuid"
]
},
"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"
},
"chartAttributes": {
"dashboardLinks": {
"*": {
"variables": {
"xxx": "xxx"
},
"destination": "/dashboards/xxxx"
}
}
},
"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"
]
}
}
`});
resources:
testDashboardJson:
type: wavefront:DashboardJson
properties:
dashboardJson: |2+
{
"acl": {
"canModify": [
"group-uuid",
"role-uuid"
],
"canView": [
"group-uuid",
"role-uuid"
]
},
"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"
},
"chartAttributes": {
"dashboardLinks": {
"*": {
"variables": {
"xxx": "xxx"
},
"destination": "/dashboards/xxxx"
}
}
},
"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 DashboardJson Resource
new DashboardJson(name: string, args: DashboardJsonArgs, opts?: CustomResourceOptions);
@overload
def DashboardJson(resource_name: str,
opts: Optional[ResourceOptions] = None,
dashboard_json: Optional[str] = None)
@overload
def DashboardJson(resource_name: str,
args: DashboardJsonArgs,
opts: Optional[ResourceOptions] = None)
func NewDashboardJson(ctx *Context, name string, args DashboardJsonArgs, opts ...ResourceOption) (*DashboardJson, error)
public DashboardJson(string name, DashboardJsonArgs args, CustomResourceOptions? opts = null)
public DashboardJson(String name, DashboardJsonArgs args)
public DashboardJson(String name, DashboardJsonArgs args, CustomResourceOptions options)
type: wavefront:DashboardJson
properties: # The arguments to resource properties.
options: # 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.
- resource_name str
- The unique name of the resource.
- args DashboardJsonArgs
- 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 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.
- name String
- The unique name of the resource.
- args DashboardJsonArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The DashboardJson resource accepts the following input properties:
- JSON string
See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- Dashboard
Json string See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard
Json String See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard
Json string See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard_
json str See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard
Json String See the 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 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 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)
public static DashboardJson get(String name, Output<String> id, DashboardJsonState 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.
- JSON string
See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- Dashboard
Json string See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard
Json String See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard
Json string See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard_
json str See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
- dashboard
Json String See the Wavefront API Documentation for instructions on how to get to your API documentation for more details.
Import
Dashboard JSON can be imported by using the id
, e.g.
$ pulumi import wavefront:index/dashboardJson:DashboardJson dashboard_json tftestimport
Package Details
- Repository
- Wavefront pulumi/pulumi-wavefront
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
wavefront
Terraform Provider.