Skip to main content

subscriber_usage_aggregates

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

Overview

Namesubscriber_usage_aggregates
TypeResource
Idazure_stack.commerce_admin.subscriber_usage_aggregates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringURI of the resource.
namestringName of the resource.
locationstringLocation where resource is location.
propertiesobjectProperties for aggregate usage.
tagsobjectList of key-value pairs.
typestringType of resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, reportedStartTime, reportedEndTimeaggregationGranularity, subscriberId, continuationTokenGets a collection of SubscriberUsageAggregates, which are UsageAggregates from users.

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
reportedEndTimestring (date-time)The reported end time (exclusive).
reportedStartTimestring (date-time)The reported start time (inclusive).
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.
aggregationGranularitystringThe aggregation granularity.
continuationTokenstringThe continuation token.
subscriberIdstringThe tenant subscription identifier.

SELECT examples

Gets a collection of SubscriberUsageAggregates, which are UsageAggregates from users.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.commerce_admin.subscriber_usage_aggregates
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND reportedStartTime = '{{ reportedStartTime }}' -- required
AND reportedEndTime = '{{ reportedEndTime }}' -- required
AND aggregationGranularity = '{{ aggregationGranularity }}'
AND subscriberId = '{{ subscriberId }}'
AND continuationToken = '{{ continuationToken }}'
;