다음을 통해 공유


AlertProcessingRuleCollection Class

Definition

A class representing a collection of AlertProcessingRuleResource and their operations. Each AlertProcessingRuleResource in the collection will belong to the same instance of ResourceGroupResource. To get an AlertProcessingRuleCollection instance call the GetAlertProcessingRules method from an instance of ResourceGroupResource.

public class AlertProcessingRuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.AlertsManagement.AlertProcessingRuleResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AlertsManagement.AlertProcessingRuleResource>
type AlertProcessingRuleCollection = class
    inherit ArmCollection
    interface seq<AlertProcessingRuleResource>
    interface IEnumerable
    interface IAsyncEnumerable<AlertProcessingRuleResource>
Public Class AlertProcessingRuleCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of AlertProcessingRuleResource), IEnumerable(Of AlertProcessingRuleResource)
Inheritance
AlertProcessingRuleCollection
Implements

Constructors

AlertProcessingRuleCollection()

Initializes a new instance of the AlertProcessingRuleCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, AlertProcessingRuleData, CancellationToken)

Create or update an alert processing rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, AlertProcessingRuleData, CancellationToken)

Create or update an alert processing rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_CreateOrUpdate
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_GetByName
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_GetByName
Get(String, CancellationToken)

Get an alert processing rule by name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_GetByName
GetAll(CancellationToken)

List all alert processing rules in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules
  • Operation Id: AlertProcessingRules_ListByResourceGroup
GetAllAsync(CancellationToken)

List all alert processing rules in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules
  • Operation Id: AlertProcessingRules_ListByResourceGroup
GetAsync(String, CancellationToken)

Get an alert processing rule by name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_GetByName
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_GetByName
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
  • Operation Id: AlertProcessingRules_GetByName
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<AlertProcessingRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<AlertProcessingRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to