Sha256: 8d00deab57fbb8f27dfd92efb8cd5947df12f576221605c988e3e41aa64bb272

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

# Get hourly usage attribution returns "OK" response

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations[:get_hourly_usage_attribution] = true
end
api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new
p api_instance.get_hourly_usage_attribution((Time.now + -3 * 86400), HourlyUsageAttributionUsageType::INFRA_HOST_USAGE)

Version data entries

2 entries across 2 versions & 1 rubygems

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