Sha256: c3f27fc43874041dd6f51f1fddddfd5619369fe80059542fd2b8dbbccb96c601
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V1::DashboardsAPI.new dashboard_id = "dashboard_id_example" # String | The ID of the dashboard. body = DatadogAPIClient::V1::Dashboard.new({ layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED, title: "title_example", widgets: [DatadogAPIClient::V1::Widget.new({ definition: DatadogAPIClient::V1::AlertGraphWidgetDefinition.new({ alert_id: "alert_id_example", type: DatadogAPIClient::V1::AlertGraphWidgetDefinitionType::ALERT_GRAPH, viz_type: DatadogAPIClient::V1::WidgetVizType::TIMESERIES }) })] }) # Dashboard | Update Dashboard request body. begin # Update a dashboard result = api_instance.update_dashboard(dashboard_id, body) p result rescue DatadogAPIClient::V1::APIError => e puts "Error when calling DashboardsAPI->update_dashboard: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v1/dashboards/UpdateDashboard.rb |