Sha256: 4c6e331ebdf5cc9b35e32181369f2f51a88e8ac3597b815144b6b978ce9d5e9f

Contents?: true

Size: 384 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
datadog_api_client-1.11.0 examples/v1/usage-metering/GetUsageAttribution.rb
datadog_api_client-1.10.0 examples/v1/usage-metering/GetUsageAttribution.rb