Pulumi Datadog DashboardJson: Difference between revisions
Jump to navigation
Jump to search
(→a) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
=Programming Model= | =Programming Model= | ||
<syntaxhighlight lang='py'> | <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> | </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))