UsageAggregates Interface
public interface UsageAggregates
Resource collection API of UsageAggregates.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
abstract
Paged |
list(OffsetDateTime reportedStartTime, OffsetDateTime reportedEndTime)
Query aggregated Azure subscription consumption data for a date range. |
|
abstract
Paged |
list(OffsetDateTime reportedStartTime, OffsetDateTime reportedEndTime, Boolean showDetails, AggregationGranularity aggregationGranularity, String continuationToken, Context context)
Query aggregated Azure subscription consumption data for a date range. |
Method Details
list
public abstract PagedIterable<UsageAggregation> list(OffsetDateTime reportedStartTime, OffsetDateTime reportedEndTime)
Query aggregated Azure subscription consumption data for a date range.
Parameters:
Returns:
list
public abstract PagedIterable<UsageAggregation> list(OffsetDateTime reportedStartTime, OffsetDateTime reportedEndTime, Boolean showDetails, AggregationGranularity aggregationGranularity, String continuationToken, Context context)
Query aggregated Azure subscription consumption data for a date range.
Parameters:
True returns usage data in instance-level detail, false causes server-side aggregation
with fewer details. For example, if you have 3 website instances, by default you will get 3 line items for
website consumption. If you specify showDetails = false, the data will be aggregated as a single line item for
website consumption within the time period (for the given subscriptionId, meterId, usageStartTime and
usageEndTime).
Daily (default) returns the data in daily granularity, Hourly returns the data
in hourly granularity.
Returns: