/// <summary>
 /// List all monitors under the specified subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <DatadogMonitorResource> List(this IMonitorsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get list of a monitors of a resource (with optional filter).
 /// </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='filter'>
 /// list example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb';
 /// history example: $filter=isHeartbeat eq false
 /// </param>
 /// <param name='expand'>
 /// ex: $expand=evidence,configuration
 /// </param>
 public static IPage <Models.Monitor> List(this IMonitorsOperations operations, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string filter = default(string), string expand = default(string))
 {
     return(operations.ListAsync(subscriptionId, resourceGroupName, resourceNamespace, resourceType, resourceName, filter, expand).GetAwaiter().GetResult());
 }