Dela via


DynatraceExtensions.GetDynatraceMonitors Method

Definition

Overloads

GetDynatraceMonitors(ResourceGroupResource)

Gets a collection of DynatraceMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDynatraceMonitors() instead.

GetDynatraceMonitors(SubscriptionResource, CancellationToken)

List all MonitorResource by subscriptionId

  • Request Path: /subscriptions/{subscriptionId}/providers/Dynatrace.Observability/monitors
  • Operation Id: Monitors_ListBySubscriptionId

GetDynatraceMonitors(ResourceGroupResource)

Source:
DynatraceExtensions.cs
Source:
DynatraceExtensions.cs

Gets a collection of DynatraceMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDynatraceMonitors() instead.

public static Azure.ResourceManager.Dynatrace.DynatraceMonitorCollection GetDynatraceMonitors (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDynatraceMonitors : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Dynatrace.DynatraceMonitorCollection
<Extension()>
Public Function GetDynatraceMonitors (resourceGroupResource As ResourceGroupResource) As DynatraceMonitorCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DynatraceMonitorResources and their operations over a DynatraceMonitorResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDynatraceMonitors(SubscriptionResource, CancellationToken)

Source:
DynatraceExtensions.cs
Source:
DynatraceExtensions.cs

List all MonitorResource by subscriptionId

  • Request Path: /subscriptions/{subscriptionId}/providers/Dynatrace.Observability/monitors
  • Operation Id: Monitors_ListBySubscriptionId
public static Azure.Pageable<Azure.ResourceManager.Dynatrace.DynatraceMonitorResource> GetDynatraceMonitors (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDynatraceMonitors : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Dynatrace.DynatraceMonitorResource>
<Extension()>
Public Function GetDynatraceMonitors (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DynatraceMonitorResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to