Pulumi Datadog DashboardJson: Difference between revisions
Jump to navigation
Jump to search
(→a) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
* [[Managing_Datadog_with_Pulumi#Resources|Managing Datadog with Pulumi]] | * [[Managing_Datadog_with_Pulumi#Resources|Managing Datadog with Pulumi]] | ||
* [[Datadog Dashboard#Overview|Datadog Dashboard]] | * [[Datadog Dashboard#Overview|Datadog Dashboard]] | ||
=Programming Model= | |||
<syntaxhighlight lang='py'> | |||
import pulumi | |||
import pulumi_datadog as datadog | |||
dashboard_json = datadog.DashboardJson("dashboardJson", | |||
dashboard="{\"description\":\"\",\"layout_type\":\"ordered\",\"notify_list\":[],\"reflow_type\":\"fixed\",\"restricted_roles\":[],\"template_variables\":[],\"title\":\"Blue\",\"widgets\":[{\"definition\":{\"color\":\"#4d4d4d\",\"font_size\":\"auto\",\"text\":\"This is a blue dashboard.\",\"text_align\":\"left\",\"type\":\"free_text\"},\"layout\":{\"height\":1,\"width\":2,\"x\":0,\"y\":0}}]}", | |||
url="/dashboard/g8q-hyq-jww/blue", | |||
opts=pulumi.ResourceOptions(protect=True)) | |||
</syntaxhighlight> |
Latest revision as of 01:02, 15 April 2022
External
Internal
Programming Model
import pulumi
import pulumi_datadog as datadog
dashboard_json = datadog.DashboardJson("dashboardJson",
dashboard="{\"description\":\"\",\"layout_type\":\"ordered\",\"notify_list\":[],\"reflow_type\":\"fixed\",\"restricted_roles\":[],\"template_variables\":[],\"title\":\"Blue\",\"widgets\":[{\"definition\":{\"color\":\"#4d4d4d\",\"font_size\":\"auto\",\"text\":\"This is a blue dashboard.\",\"text_align\":\"left\",\"type\":\"free_text\"},\"layout\":{\"height\":1,\"width\":2,\"x\":0,\"y\":0}}]}",
url="/dashboard/g8q-hyq-jww/blue",
opts=pulumi.ResourceOptions(protect=True))