Sha256: 3a14c75f56efcd9da9db9f9934705873340cbd053f698698cb3acc17250f2856
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ query: "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100", type: DatadogAPIClient::V1::MonitorType::COMPOSITE }) # Monitor | Create a monitor request body. begin # Create a monitor result = api_instance.create_monitor(body) p result rescue DatadogAPIClient::V1::APIError => e puts "Error when calling MonitorsAPI->create_monitor: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v1/monitors/CreateMonitor.rb |