MonitorExtensions.GetScheduledQueryRules 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
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.
|
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
Azure SDK for .NET