MetricBaselineOperations.CalculateBaseline Method

Definition

Lists the baseline values for a resource.

public virtual Azure.Response<Azure.ResourceManager.Insights.Models.CalculateBaselineResponse> CalculateBaseline (string resourceUri, Azure.ResourceManager.Insights.Models.TimeSeriesInformation timeSeriesInformation, System.Threading.CancellationToken cancellationToken = default);
abstract member CalculateBaseline : string * Azure.ResourceManager.Insights.Models.TimeSeriesInformation * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.CalculateBaselineResponse>
override this.CalculateBaseline : string * Azure.ResourceManager.Insights.Models.TimeSeriesInformation * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.CalculateBaselineResponse>
Public Overridable Function CalculateBaseline (resourceUri As String, timeSeriesInformation As TimeSeriesInformation, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CalculateBaselineResponse)

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.

timeSeriesInformation
TimeSeriesInformation

Information that need to be specified to calculate a baseline on a time series.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<CalculateBaselineResponse>

Applies to