WebAppsOperationsExtensions.ListMetricsSlotAsync(IWebAppsOperations, String, String, String, Nullable<Boolean>, String, CancellationToken) Method
Definition
Gets performance metrics of an app (or deployment slot, if specified).
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceMetric>> ListMetricsSlotAsync (this Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations operations, string resourceGroupName, string name, string slot, Nullable<bool> details = null, string filter = null, System.Threading.CancellationToken cancellationToken = null);
static member ListMetricsSlotAsync : Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations * string * string * string * Nullable<bool> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceMetric>>
Parameters
- operations
- IWebAppsOperations
The operations group for this extension method.
- resourceGroupName
- String
Name of the resource group to which the resource belongs.
- name
- String
Name of the app.
- slot
- String
Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot.
Specify "true" to include metric details in the response. It is "false" by default.
- filter
- String
Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
- Task<Microsoft.Rest.Azure.IPage<ResourceMetric>>
Remarks
Gets performance metrics of an app (or deployment slot, if specified).