MonitorExtensions.GetScheduledQueryRules Method

Definition

Overloads

GetScheduledQueryRules(ResourceGroupResource)

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

GetScheduledQueryRules(SubscriptionResource, CancellationToken)

Retrieve a scheduled query rule definitions in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules
  • Operation Id: ScheduledQueryRules_ListBySubscription
  • Default Api Version: 2022-06-15
  • Resource: ScheduledQueryRuleResource

GetScheduledQueryRules(ResourceGroupResource)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ScheduledQueryRuleResources and their operations over a ScheduledQueryRuleResource.

Exceptions

resourceGroupResource is null.

Applies to

GetScheduledQueryRules(SubscriptionResource, CancellationToken)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Retrieve a scheduled query rule definitions in a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to