Sha256: d66915255f5a40df3cf21234aed6c0fa4e0c35544910171cfc710e3093360c81

Contents?: true

Size: 375 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

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