Cloud Cost Management

Get commitments coverage (timeseries)

Get timeseries coverage metrics for cloud commitment programs, broken down by coverage type (Reserved Instances, Savings Plans, On-Demand, and Spot) for both hours and cost.

get/api/v2/cost/commitments/coverage/timeseries

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/cost/commitments/coverage/timeseries
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: cloud_cost_management_read

Query parameters

provider'aws' | 'azure' required

Cloud provider for commitment programs.

Example:aws

Cloud provider for commitment programs (aws or azure).

productstring required

Cloud product identifier (for example, ec2, rds, virtualmachines).

startinteger required

Start of the query time range in Unix milliseconds.

endinteger required

End of the query time range in Unix milliseconds.

filterBystring

Optional filter expression to narrow down results.

Response

OK

Example response

{
  "cost": {
    "times": [
      1693526400,
      1693612800
    ],
    "unit": {
      "family": "percentage",
      "id": 17,
      "name": "percent",
      "plural": "percent",
      "scale_factor": 1,
      "short_name": "%"
    }
  },
  "hours": {
    "times": [
      1693526400,
      1693612800
    ],
    "unit": {
      "family": "percentage",
      "id": 17,
      "name": "percent",
      "plural": "percent",
      "scale_factor": 1,
      "short_name": "%"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.