MetricBaselineOperations.Get(String, String, String, Nullable<TimeSpan>, String, String, Nullable<ResultType>, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the baseline values for a specific metric.
public virtual Azure.Response<Azure.ResourceManager.Insights.Models.BaselineResponse> Get (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 Get : string * string * string * Nullable<TimeSpan> * string * string * Nullable<Azure.ResourceManager.Insights.Models.ResultType> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.BaselineResponse>
override this.Get : string * string * string * Nullable<TimeSpan> * string * string * Nullable<Azure.ResourceManager.Insights.Models.ResultType> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.BaselineResponse>
Public Overridable Function Get (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 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.