UsageAggregates class

Class representing a UsageAggregates.

Constructors

UsageAggregates(UsageManagementClientContext)

Create a UsageAggregates.

Methods

list(string | Date, string | Date, ServiceCallback<UsageAggregationListResult>)
list(string | Date, string | Date, UsageAggregatesListOptionalParams)

Query aggregated Azure subscription consumption data for a date range.

list(string | Date, string | Date, UsageAggregatesListOptionalParams, ServiceCallback<UsageAggregationListResult>)
listNext(string, string | Date, string | Date, ServiceCallback<UsageAggregationListResult>)
listNext(string, string | Date, string | Date, UsageAggregatesListNextOptionalParams)

Query aggregated Azure subscription consumption data for a date range.

listNext(string, string | Date, string | Date, UsageAggregatesListNextOptionalParams, ServiceCallback<UsageAggregationListResult>)

Constructor Details

UsageAggregates(UsageManagementClientContext)

Create a UsageAggregates.

new UsageAggregates(client: UsageManagementClientContext)

Parameters

client
UsageManagementClientContext

Reference to the service client.

Method Details

list(string | Date, string | Date, ServiceCallback<UsageAggregationListResult>)

function list(reportedStartTime: string | Date, reportedEndTime: string | Date, callback: ServiceCallback<UsageAggregationListResult>)

Parameters

reportedStartTime

string | Date

The start of the time range to retrieve data for.

reportedEndTime

string | Date

The end of the time range to retrieve data for.

list(string | Date, string | Date, UsageAggregatesListOptionalParams)

Query aggregated Azure subscription consumption data for a date range.

function list(reportedStartTime: string | Date, reportedEndTime: string | Date, options?: UsageAggregatesListOptionalParams): Promise<UsageAggregatesListResponse>

Parameters

reportedStartTime

string | Date

The start of the time range to retrieve data for.

reportedEndTime

string | Date

The end of the time range to retrieve data for.

options
UsageAggregatesListOptionalParams

The optional parameters

Returns

Promise<Models.UsageAggregatesListResponse>

list(string | Date, string | Date, UsageAggregatesListOptionalParams, ServiceCallback<UsageAggregationListResult>)

function list(reportedStartTime: string | Date, reportedEndTime: string | Date, options: UsageAggregatesListOptionalParams, callback: ServiceCallback<UsageAggregationListResult>)

Parameters

reportedStartTime

string | Date

The start of the time range to retrieve data for.

reportedEndTime

string | Date

The end of the time range to retrieve data for.

options
UsageAggregatesListOptionalParams

The optional parameters

listNext(string, string | Date, string | Date, ServiceCallback<UsageAggregationListResult>)

function listNext(nextPageLink: string, reportedStartTime: string | Date, reportedEndTime: string | Date, callback: ServiceCallback<UsageAggregationListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

reportedStartTime

string | Date

The start of the time range to retrieve data for.

reportedEndTime

string | Date

The end of the time range to retrieve data for.

listNext(string, string | Date, string | Date, UsageAggregatesListNextOptionalParams)

Query aggregated Azure subscription consumption data for a date range.

function listNext(nextPageLink: string, reportedStartTime: string | Date, reportedEndTime: string | Date, options?: UsageAggregatesListNextOptionalParams): Promise<UsageAggregatesListNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

reportedStartTime

string | Date

The start of the time range to retrieve data for.

reportedEndTime

string | Date

The end of the time range to retrieve data for.

options
UsageAggregatesListNextOptionalParams

The optional parameters

Returns

Promise<Models.UsageAggregatesListNextResponse>

listNext(string, string | Date, string | Date, UsageAggregatesListNextOptionalParams, ServiceCallback<UsageAggregationListResult>)

function listNext(nextPageLink: string, reportedStartTime: string | Date, reportedEndTime: string | Date, options: UsageAggregatesListNextOptionalParams, callback: ServiceCallback<UsageAggregationListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

reportedStartTime

string | Date

The start of the time range to retrieve data for.

reportedEndTime

string | Date

The end of the time range to retrieve data for.

options
UsageAggregatesListNextOptionalParams

The optional parameters