Pulumi Datadog DashboardJson: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
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_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}}]}",
     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}}]}",

Revision as of 16:41, 14 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))