/// <summary> /// Get the properties of a specific monitor resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LogzMonitorResource> GetAsync(this IMonitorsOperations operations, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, monitorName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get the current status of a monitor of a resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The subscriptionId of the resource /// </param> /// <param name='resourceGroupName'> /// The resourceGroupName of the resource /// </param> /// <param name='resourceNamespace'> /// The resourceNamespace of the resource /// </param> /// <param name='resourceType'> /// The resourceType of the resource /// </param> /// <param name='resourceName'> /// The resourceType of the resource /// </param> /// <param name='monitorId'> /// The monitorId of the resource (url encoded) /// </param> /// <param name='expand'> /// ex: $expand=evidence,configuration /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Models.Monitor> GetAsync(this IMonitorsOperations operations, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string monitorId, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(subscriptionId, resourceGroupName, resourceNamespace, resourceType, resourceName, monitorId, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }