Sha256: 52a29897f294bb414891203d1552a07edf6b7ee02c6092fff23cd960213fae6e
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
# Schedule a downtime returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V1::DowntimesAPI.new body = DatadogAPIClient::V1::Downtime.new({ message: "Example-Downtime", start: Time.now.to_i, timezone: "Etc/UTC", scope: [ "test:exampledowntime", ], recurrence: DatadogAPIClient::V1::DowntimeRecurrence.new({ type: "weeks", period: 1, week_days: [ "Mon", "Tue", "Wed", "Thu", "Fri", ], until_date: (Time.now + 21 * 86400).to_i, }), }) p api_instance.create_downtime(body)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.10.0 | examples/v1/downtimes/CreateDowntime.rb |