Sha256: b5842997762d372361759d317894a19ce5dabb7f48211732602f29fb14127b01
Contents?: true
Size: 670 Bytes
Versions: 32
Compression:
Stored size: 670 Bytes
Contents
# Edit a monitor returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "monitor" in the system MONITOR_ID = ENV["MONITOR_ID"] MONITOR_NAME = ENV["MONITOR_NAME"] body = DatadogAPIClient::V1::MonitorUpdateRequest.new({ name: "My monitor-updated", options: DatadogAPIClient::V1::MonitorOptions.new({ evaluation_delay: nil, new_group_delay: 600, new_host_delay: nil, renotify_interval: nil, thresholds: DatadogAPIClient::V1::MonitorThresholds.new({ critical: 2, warning: nil, }), timeout_h: nil, }), }) p api_instance.update_monitor(MONITOR_ID.to_i, body)
Version data entries
32 entries across 32 versions & 1 rubygems