Share via


MonitorExtensions.GetDataCollectionRules Method

Definition

Overloads

GetDataCollectionRules(ResourceGroupResource)

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

GetDataCollectionRules(SubscriptionResource, CancellationToken)

Lists all data collection rules in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules
  • Operation Id: DataCollectionRules_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleResource

GetDataCollectionRules(ResourceGroupResource)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

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

public static Azure.ResourceManager.Monitor.DataCollectionRuleCollection GetDataCollectionRules (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDataCollectionRules : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Monitor.DataCollectionRuleCollection
<Extension()>
Public Function GetDataCollectionRules (resourceGroupResource As ResourceGroupResource) As DataCollectionRuleCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DataCollectionRuleResources and their operations over a DataCollectionRuleResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDataCollectionRules(SubscriptionResource, CancellationToken)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Lists all data collection rules in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules
  • Operation Id: DataCollectionRules_ListBySubscription
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionRuleResource
public static Azure.Pageable<Azure.ResourceManager.Monitor.DataCollectionRuleResource> GetDataCollectionRules (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDataCollectionRules : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.DataCollectionRuleResource>
<Extension()>
Public Function GetDataCollectionRules (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataCollectionRuleResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to