DatadogExtensions.GetDatadogMonitorResources Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetDatadogMonitorResources(ResourceGroupResource) |
Gets a collection of DatadogMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDatadogMonitorResources() instead. |
GetDatadogMonitorResources(SubscriptionResource, CancellationToken) |
List all monitors under the specified subscription.
|
GetDatadogMonitorResources(ResourceGroupResource)
- Source:
- DatadogExtensions.cs
Gets a collection of DatadogMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDatadogMonitorResources() instead.
public static Azure.ResourceManager.Datadog.DatadogMonitorResourceCollection GetDatadogMonitorResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDatadogMonitorResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Datadog.DatadogMonitorResourceCollection
<Extension()>
Public Function GetDatadogMonitorResources (resourceGroupResource As ResourceGroupResource) As DatadogMonitorResourceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of DatadogMonitorResources and their operations over a DatadogMonitorResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetDatadogMonitorResources(SubscriptionResource, CancellationToken)
- Source:
- DatadogExtensions.cs
List all monitors under the specified subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors
- Operation Id: Monitors_List
public static Azure.Pageable<Azure.ResourceManager.Datadog.DatadogMonitorResource> GetDatadogMonitorResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDatadogMonitorResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Datadog.DatadogMonitorResource>
<Extension()>
Public Function GetDatadogMonitorResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DatadogMonitorResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DatadogMonitorResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.