Skip to main content

usage_aggregates

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

Overview

Nameusage_aggregates
TypeResource
Idazure_extras.commerce.usage_aggregates

Fields

NameDatatypeDescription
idstringUnique Id for the usage aggregate.
namestringName of the usage aggregate.
propertiesobjectDescribes a sample of the usageAggregation.
typestringType of the resource being returned.

Methods

NameAccessible byRequired ParamsDescription
listSELECTreportedEndTime, reportedStartTime, subscriptionIdQuery aggregated Azure subscription consumption data for a date range.

SELECT examples

Query aggregated Azure subscription consumption data for a date range.

SELECT
id,
name,
properties,
type
FROM azure_extras.commerce.usage_aggregates
WHERE reportedEndTime = '{{ reportedEndTime }}'
AND reportedStartTime = '{{ reportedStartTime }}'
AND subscriptionId = '{{ subscriptionId }}';