MetricBaselineOperations.GetAsync Method

Definition

Gets the baseline values for a specific metric.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.BaselineResponse>> GetAsync (string resourceUri, string metricName, string timespan = default, TimeSpan? interval = default, string aggregation = default, string sensitivities = default, Azure.ResourceManager.Insights.Models.ResultType? resultType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * string * string * Nullable<TimeSpan> * string * string * Nullable<Azure.ResourceManager.Insights.Models.ResultType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.BaselineResponse>>
override this.GetAsync : string * string * string * Nullable<TimeSpan> * string * string * Nullable<Azure.ResourceManager.Insights.Models.ResultType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.BaselineResponse>>
Public Overridable Function GetAsync (resourceUri As String, metricName As String, Optional timespan As String = Nothing, Optional interval As Nullable(Of TimeSpan) = Nothing, Optional aggregation As String = Nothing, Optional sensitivities As String = Nothing, Optional resultType As Nullable(Of ResultType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BaselineResponse))

Parameters

resourceUri
System.String

The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1.

metricName
System.String

The name of the metric to retrieve the baseline for.

timespan
System.String

The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.

interval
System.Nullable<System.TimeSpan>

The interval (i.e. timegrain) of the query.

aggregation
System.String

The aggregation type of the metric to retrieve the baseline for.

sensitivities
System.String

The list of sensitivities (comma separated) to retrieve.

resultType
System.Nullable<ResultType>

Allows retrieving only metadata of the baseline. On data request all information is retrieved.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<BaselineResponse>>

Applies to