Sha256: 5bf460e36b0a41c3c44a8c2ae6faf90e75c032442deec7b3539ff19f3493f618
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
# Submit deflate metrics returns "Payload accepted" response require "datadog_api_client" api_instance = DatadogAPIClient::V1::MetricsAPI.new body = DatadogAPIClient::V1::MetricsPayload.new({ series: [ DatadogAPIClient::V1::Series.new({ metric: "system.load.1", type: "gauge", points: [ [ Time.now.to_f, 1.1, ], ], tags: [ "test:ExampleSubmitdeflatemetricsreturnsPayloadacceptedresponse", ], }), ], }) opts = { content_encoding: MetricContentEncoding::DEFLATE, } p api_instance.submit_metrics(optsbody)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/v1/metrics/SubmitMetrics_2203981258.rb |
datadog_api_client-1.6.0 | examples/v1/metrics/SubmitMetrics_2203981258.rb |