MockableDatadogSubscriptionResource.GetDatadogMonitorsAsync Method

Definition

List all monitors under the specified subscription.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors.
  • Operation Id. : DatadogMonitorResources_List.
  • Default Api Version. : 2025-12-26-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Datadog.DatadogMonitorResource> GetDatadogMonitorsAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetDatadogMonitorsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Datadog.DatadogMonitorResource>
override this.GetDatadogMonitorsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Datadog.DatadogMonitorResource>
Public Overridable Function GetDatadogMonitorsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DatadogMonitorResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to