Sha256: 4e386abb878b07d9db20961b3931711bc79056ef89949d690c7d8b9be776a51e

Contents?: true

Size: 636 Bytes

Versions: 19

Compression:

Stored size: 636 Bytes

Contents

# Update a shared dashboard returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::DashboardsAPI.new

# there is a valid "shared_dashboard" in the system
SHARED_DASHBOARD_TOKEN = ENV["SHARED_DASHBOARD_TOKEN"]

body = DatadogAPIClient::V1::SharedDashboardUpdateRequest.new({
  global_time: DatadogAPIClient::V1::SharedDashboardUpdateRequestGlobalTime.new({
    live_span: DatadogAPIClient::V1::DashboardGlobalTimeLiveSpan::PAST_FIFTEEN_MINUTES,
  }),
  share_list: [],
  share_type: DatadogAPIClient::V1::DashboardShareType::OPEN,
})
p api_instance.update_public_dashboard(SHARED_DASHBOARD_TOKEN, body)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.27.1 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.26.1 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.26.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.25.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.24.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.22.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.21.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.20.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.19.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.18.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.17.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.16.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.15.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.14.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.13.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.12.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.11.0 examples/v1/dashboards/UpdatePublicDashboard.rb
datadog_api_client-2.10.0 examples/v1/dashboards/UpdatePublicDashboard.rb