/// <summary>
 /// List all monitors under the specified subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DatadogMonitorResource> > ListAsync(this IMonitorsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Models.Monitor> > ListAsync(this IMonitorsOperations operations, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string filter = default(string), string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(subscriptionId, resourceGroupName, resourceNamespace, resourceType, resourceName, filter, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }