Sha256: 271bbe2e6d4fcd478ece5121a6d01d367fb77abb2da82d18ea073ea48f104015
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
# Create a new dashboard with note widget require "datadog_api_client" api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ title: "Example-Dashboard", description: "", widgets: [ DatadogAPIClient::V1::Widget.new({ layout: DatadogAPIClient::V1::WidgetLayout.new({ x: 0, y: 0, width: 18, height: 24, }), definition: DatadogAPIClient::V1::NoteWidgetDefinition.new({ type: DatadogAPIClient::V1::NoteWidgetDefinitionType::NOTE, content: "# Example Note", }), }), ], template_variables: [], layout_type: DatadogAPIClient::V1::DashboardLayoutType::FREE, notify_list: [], }) p api_instance.create_dashboard(body)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.29.1 | examples/v1/dashboards/CreateDashboard_417992286.rb |