Megosztás a következőn keresztül:


DatadogExtensions.GetDatadogMonitorResourcesAsync Method

Definition

List all monitors under the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors
  • Operation Id: Monitors_List
public static Azure.AsyncPageable<Azure.ResourceManager.Datadog.DatadogMonitorResource> GetDatadogMonitorResourcesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDatadogMonitorResourcesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Datadog.DatadogMonitorResource>
<Extension()>
Public Function GetDatadogMonitorResourcesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DatadogMonitorResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of DatadogMonitorResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to