UsageAggregates class
Class representing a UsageAggregates.
Constructors
Usage |
Create a UsageAggregates. |
Methods
list(string | Date, string | Date, Service |
|
list(string | Date, string | Date, Usage |
Query aggregated Azure subscription consumption data for a date range. |
list(string | Date, string | Date, Usage |
|
list |
|
list |
Query aggregated Azure subscription consumption data for a date range. |
list |
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.
- callback
The callback
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.
The optional parameters
Returns
Promise<UsageAggregatesListResponse>
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.
The optional parameters
- callback
The callback
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.
- callback
The callback
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.
The optional parameters
Returns
Promise<UsageAggregatesListNextResponse>
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.
The optional parameters
- callback
The callback