SmartGroupCollection Class

Definition

A class representing a collection of SmartGroupResource and their operations. Each SmartGroupResource in the collection will belong to the same instance of SubscriptionResource. To get a SmartGroupCollection instance call the GetSmartGroups method from an instance of SubscriptionResource.

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

Constructors

SmartGroupCollection()

Initializes a new instance of the SmartGroupCollection 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

Exists(Guid, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}
  • Operation Id: SmartGroups_GetById
ExistsAsync(Guid, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}
  • Operation Id: SmartGroups_GetById
Get(Guid, CancellationToken)

Get information related to a specific Smart Group.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}
  • Operation Id: SmartGroups_GetById
GetAll(SmartGroupCollectionGetAllOptions, CancellationToken)

List all the Smart Groups within a specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
  • Operation Id: SmartGroups_GetAll
GetAll(String, String, String, Nullable<MonitorServiceSourceForAlert>, Nullable<MonitorCondition>, Nullable<ServiceAlertSeverity>, Nullable<ServiceAlertState>, Nullable<TimeRangeFilter>, Nullable<Int64>, Nullable<SmartGroupsSortByField>, Nullable<AlertsManagementQuerySortOrder>, CancellationToken)

List all the Smart Groups within a specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
  • Operation Id: SmartGroups_GetAll
GetAllAsync(SmartGroupCollectionGetAllOptions, CancellationToken)

List all the Smart Groups within a specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
  • Operation Id: SmartGroups_GetAll
GetAllAsync(String, String, String, Nullable<MonitorServiceSourceForAlert>, Nullable<MonitorCondition>, Nullable<ServiceAlertSeverity>, Nullable<ServiceAlertState>, Nullable<TimeRangeFilter>, Nullable<Int64>, Nullable<SmartGroupsSortByField>, Nullable<AlertsManagementQuerySortOrder>, CancellationToken)

List all the Smart Groups within a specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
  • Operation Id: SmartGroups_GetAll
GetAsync(Guid, CancellationToken)

Get information related to a specific Smart Group.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}
  • Operation Id: SmartGroups_GetById
GetIfExists(Guid, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}
  • Operation Id: SmartGroups_GetById
GetIfExistsAsync(Guid, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}
  • Operation Id: SmartGroups_GetById
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<SmartGroupResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SmartGroupResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to