Sha256: 99989c50748756f500c9b3c338fdc410da862a0489186bc5e629c2661cacf632

Contents?: true

Size: 539 Bytes

Versions: 34

Compression:

Stored size: 539 Bytes

Contents

# Paginate monthly usage attribution

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new

# there is a valid "monthly_usage_attribution" response
MONTHLY_USAGE_ATTRIBUTION_METADATA_PAGINATION_NEXT_RECORD_ID = ENV["MONTHLY_USAGE_ATTRIBUTION_METADATA_PAGINATION_NEXT_RECORD_ID"]
opts = {
  next_record_id: MONTHLY_USAGE_ATTRIBUTION_METADATA_PAGINATION_NEXT_RECORD_ID,
}
p api_instance.get_monthly_usage_attribution((Time.now + -3 * 86400), MonthlyUsageAttributionSupportedMetrics::INFRA_HOST_USAGE, opts)

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.28.1 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.27.1 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.26.1 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.26.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.25.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.24.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.22.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.21.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.20.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.19.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.18.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.17.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.16.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.15.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.14.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.13.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.12.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.11.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb
datadog_api_client-2.10.0 examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb