Sha256: 2197c0b98934d293fb523202eca5820b707dd9859aa496b736e3934757943a8c

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

# Get Usage Attribution returns "OK" response

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations[:get_usage_attribution] = true
end
api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new
opts = {
  offset: 0,
  limit: 1,
}
p api_instance.get_usage_attribution((Time.now + -3 * 86400), UsageAttributionSupportedMetrics::ALL, opts)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datadog_api_client-1.9.0 examples/v1/usage-metering/GetUsageAttribution.rb
datadog_api_client-1.8.0 examples/v1/usage-metering/GetUsageAttribution.rb
datadog_api_client-1.7.0 examples/v1/usage-metering/GetUsageAttribution.rb
datadog_api_client-1.6.0 examples/v1/usage-metering/GetUsageAttribution.rb