Sha256: edf2711c3091c0f71f63eb9919dfd46aff62a57814fa58f2aef51200840be5ba
Contents?: true
Size: 1.48 KB
Versions: 12
Compression:
Stored size: 1.48 KB
Contents
# Update a powerpack returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::PowerpackAPI.new # there is a valid "powerpack" in the system POWERPACK_DATA_ID = ENV["POWERPACK_DATA_ID"] body = DatadogAPIClient::V2::Powerpack.new({ data: DatadogAPIClient::V2::PowerpackData.new({ attributes: DatadogAPIClient::V2::PowerpackAttributes.new({ description: "Sample powerpack", group_widget: DatadogAPIClient::V2::PowerpackGroupWidget.new({ definition: DatadogAPIClient::V2::PowerpackGroupWidgetDefinition.new({ layout_type: "ordered", show_title: true, title: "Sample Powerpack", type: "group", widgets: [ DatadogAPIClient::V2::PowerpackInnerWidgets.new({ definition: { "content": "test", "type": "note", }, }), ], }), layout: DatadogAPIClient::V2::PowerpackGroupWidgetLayout.new({ height: 3, width: 12, x: 0, y: 0, }), live_span: DatadogAPIClient::V2::WidgetLiveSpan::PAST_ONE_HOUR, }), name: "Example-Powerpack", tags: [ "tag:sample", ], template_variables: [ DatadogAPIClient::V2::PowerpackTemplateVariable.new({ defaults: [ "*", ], name: "sample", }), ], }), type: "powerpack", }), }) p api_instance.update_powerpack(POWERPACK_DATA_ID, body)
Version data entries
12 entries across 12 versions & 1 rubygems