Sha256: e799a93d9d6ed8a093f5357efd22c8e1ea3b77dd3fa0b701d89f1c1baaede0e4

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

# Get historical cost across your account returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
opts = {
  view: "sub-org",
}
p api_instance.get_historical_cost_by_org((Time.now + -1 * 60), opts)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datadog_api_client-2.4.0 examples/v2/usage-metering/GetHistoricalCostByOrg.rb
datadog_api_client-2.3.0 examples/v2/usage-metering/GetHistoricalCostByOrg.rb
datadog_api_client-2.2.0 examples/v2/usage-metering/GetHistoricalCostByOrg.rb