/// <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> public static LogzMonitorResource Get(this IMonitorsOperations operations, string resourceGroupName, string monitorName) { return(operations.GetAsync(resourceGroupName, monitorName).GetAwaiter().GetResult()); }
/// <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> public static Models.Monitor Get(this IMonitorsOperations operations, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string monitorId, string expand = default(string)) { return(operations.GetAsync(subscriptionId, resourceGroupName, resourceNamespace, resourceType, resourceName, monitorId, expand).GetAwaiter().GetResult()); }