Create a new dashboard
POST {{baseUrl}}/api/v1/dashboard
Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the as_count()
or as_rate()
modifiers appended.
Refer to the following documentation for more information on these modifiers.
Request Body
{"title"=>"", "layout_type"=>"ordered", "widgets"=>[{"definition"=>{"type"=>"alert_graph", "alert_id"=>"", "viz_type"=>"timeseries", "time"=>{"live_span"=>"5m"}, "title"=>"mollit consectetur", "title_align"=>"center", "title_size"=>"Lorem magna"}, "id"=>-61780097, "layout"=>{"x"=>0, "y"=>0, "width"=>0, "height"=>0, "is_column_break"=>false}}, {"definition"=>{"type"=>"alert_graph", "alert_id"=>"", "viz_type"=>"timeseries", "time"=>{"live_span"=>"5m"}, "title"=>"Ut pariatur ipsum", "title_align"=>"left", "title_size"=>"dolor"}, "id"=>27923501, "layout"=>{"x"=>0, "y"=>0, "width"=>0, "height"=>0, "is_column_break"=>false}}], "author_handle"=>"test@datadoghq.com", "author_name"=>"John Doe", "created_at"=>"1953-09-02T02:49:43.272Z", "description"=>"in sit tempor", "id"=>"123-abc-456", "modified_at"=>"2017-05-19T18:05:09.015Z", "notify_list"=>["officia in aliqua consectetur", "ut nostrud dolor est cillum"], "reflow_type"=>"auto", "tags"=>["sed irure Lorem proident ullamco", "inc"], "template_variable_presets"=>[{"name"=>"dolor tempor officia esse", "template_variables"=>[{"name"=>"esse labori", "values"=>["culpa anim"]}, {"name"=>"exercitation sit", "values"=>["pariatur Excepteur veniam commodo"]}]}, {"name"=>"nisi elit", "template_variables"=>[{"name"=>"sunt si", "values"=>["Lorem ex ullamco tempor"]}, {"name"=>"ex ad cillum", "values"=>["qui Ut"]}]}], "template_variables"=>[{"name"=>"host1", "available_values"=>["my-host", "host1", "host2"], "defaults"=>["my-host-1", "my-host-2"], "prefix"=>"host"}, {"name"=>"host1", "available_values"=>["my-host", "host1", "host2"], "defaults"=>["my-host-1", "my-host-2"], "prefix"=>"host"}], "url"=>"/dashboard/123-abc-456/example-dashboard-title"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"title":"","layout_type":"ordered","widgets":[{"definition":{"type":"alert_graph","alert_id":"","viz_type":"timeseries","time":{"live_span":"5m"},"title":"mollit consectetur","title_align":"center","title_size":"Lorem magna"},"id":-61780097,"layout":{"x":0,"y":0,"width":0,"height":0,"is_column_break":false}},{"definition":{"type":"alert_graph","alert_id":"","viz_type":"timeseries","time":{"live_span":"5m"},"title":"Ut pariatur ipsum","title_align":"left","title_size":"dolor"},"id":27923501,"layout":{"x":0,"y":0,"width":0,"height":0,"is_column_break":false}}],"author_handle":"test@datadoghq.com","author_name":"John Doe","created_at":"1953-09-02T02:49:43.272Z","description":"in sit tempor","id":"123-abc-456","modified_at":"2017-05-19T18:05:09.015Z","notify_list":["officia in aliqua consectetur","ut nostrud dolor est cillum"],"reflow_type":"auto","tags":["sed irure Lorem proident ullamco","inc"],"template_variable_presets":[{"name":"dolor tempor officia esse","template_variables":[{"name":"esse labori","values":["culpa anim"]},{"name":"exercitation sit","values":["pariatur Excepteur veniam commodo"]}]},{"name":"nisi elit","template_variables":[{"name":"sunt si","values":["Lorem ex ullamco tempor"]},{"name":"ex ad cillum","values":["qui Ut"]}]}],"template_variables":[{"name":"host1","available_values":["my-host","host1","host2"],"defaults":["my-host-1","my-host-2"],"prefix":"host"},{"name":"host1","available_values":["my-host","host1","host2"],"defaults":["my-host-1","my-host-2"],"prefix":"host"}],"url":"/dashboard/123-abc-456/example-dashboard-title"}