Skip to main content

commitment_coverage_scalar

Creates, updates, deletes, gets or lists a commitment_coverage_scalar resource.

Overview

Namecommitment_coverage_scalar
TypeResource
Iddatadog.cloud_costs.commitment_coverage_scalar

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe column name. (example: utilization)
metaobjectMetadata for a scalar column, including unit information.
typestringThe column type. "group" for dimension columns, "number" for metric columns. (group, number) (example: group)
valuesarrayValues for a scalar column. Arrays of strings for group columns, numbers for value columns.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_commitments_coverage_scalarselectprovider, product, start, endfilter_byGet scalar coverage metrics for cloud commitment programs, including hours and cost coverage percentages.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endinteger (int64)End of the query time range in Unix milliseconds. (example: 1696118400000)
productstringCloud product identifier (for example, ec2, rds, virtualmachines). (example: ec2)
providerstringCloud provider for commitment programs (aws or azure).
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
startinteger (int64)Start of the query time range in Unix milliseconds. (example: 1693526400000)
filter_bystringOptional filter expression to narrow down results. (wire: filterBy)

SELECT examples

Get scalar coverage metrics for cloud commitment programs, including hours and cost coverage percentages.

SELECT
name,
meta,
type,
values
FROM datadog.cloud_costs.commitment_coverage_scalar
WHERE provider = '{{ provider }}' -- required
AND product = '{{ product }}' -- required
AND start = '{{ start }}' -- required
AND end = '{{ end }}' -- required
AND filter_by = '{{ filter_by }}'
;