Sha256: 4c735173491e5a22f33c04d5017bd45a55ab674238c225d2ea602ca5604087ad
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
# Scalar cross product query returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ data: DatadogAPIClient::V2::ScalarFormulaRequest.new({ attributes: DatadogAPIClient::V2::ScalarFormulaRequestAttributes.new({ formulas: [ DatadogAPIClient::V2::QueryFormula.new({ formula: "a", limit: DatadogAPIClient::V2::FormulaLimit.new({ count: 10, order: DatadogAPIClient::V2::QuerySortOrder::DESC, }), }), ], from: 1636625471000, queries: [ DatadogAPIClient::V2::MetricsScalarQuery.new({ aggregator: DatadogAPIClient::V2::MetricsAggregator::AVG, data_source: DatadogAPIClient::V2::MetricsDataSource::METRICS, query: "avg:system.cpu.user{*}", name: "a", }), ], to: 1636629071000, }), type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST, }), }) p api_instance.query_scalar_data(body)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.29.1 | examples/v2/metrics/QueryScalarData_3112571352.rb |
datadog_api_client-2.28.1 | examples/v2/metrics/QueryScalarData_3112571352.rb |