SmartGroupsOperationsExtensions.GetAllAsync 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.
Get all Smart Groups within a specified subscription
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup>> GetAllAsync (this Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations operations, string targetResource = default, string targetResourceGroup = default, string targetResourceType = default, string monitorService = default, string monitorCondition = default, string severity = default, string smartGroupState = default, string timeRange = default, long? pageCount = default, string sortBy = default, string sortOrder = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAllAsync : Microsoft.Azure.Management.AlertsManagement.ISmartGroupsOperations * string * string * string * string * string * string * string * string * Nullable<int64> * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup>>
<Extension()>
Public Function GetAllAsync (operations As ISmartGroupsOperations, Optional targetResource As String = Nothing, Optional targetResourceGroup As String = Nothing, Optional targetResourceType As String = Nothing, Optional monitorService As String = Nothing, Optional monitorCondition As String = Nothing, Optional severity As String = Nothing, Optional smartGroupState As String = Nothing, Optional timeRange As String = Nothing, Optional pageCount As Nullable(Of Long) = Nothing, Optional sortBy As String = Nothing, Optional sortOrder As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of SmartGroup))
Parameters
- operations
- ISmartGroupsOperations
The operations group for this extension method.
- targetResource
- String
Filter by target resource( which is full ARM ID) Default value is select all.
- targetResourceGroup
- String
Filter by target resource group name. Default value is select all.
- targetResourceType
- String
Filter by target resource type. Default value is select all.
- monitorService
- String
Filter by monitor service which generates the alert instance. Default value is select all. Possible values include: 'Application Insights', 'ActivityLog Administrative', 'ActivityLog Security', 'ActivityLog Recommendation', 'ActivityLog Policy', 'ActivityLog Autoscale', 'Log Analytics', 'Nagios', 'Platform', 'SCOM', 'ServiceHealth', 'SmartDetector', 'VM Insights', 'Zabbix'
- monitorCondition
- String
Filter by monitor condition which is either 'Fired' or 'Resolved'. Default value is to select all. Possible values include: 'Fired', 'Resolved'
- severity
- String
Filter by severity. Default value is select all. Possible values include: 'Sev0', 'Sev1', 'Sev2', 'Sev3', 'Sev4'
- smartGroupState
- String
Filter by state of the smart group. Default value is to select all. Possible values include: 'New', 'Acknowledged', 'Closed'
- timeRange
- String
Filter by time range by below listed values. Default value is 1 day. Possible values include: '1h', '1d', '7d', '30d'
Determines number of alerts returned per page in response. Permissible value is between 1 to 250. When the "includeContent" filter is selected, maximum value allowed is 25. Default value is 25.
- sortBy
- String
Sort the query results by input field. Default value is sort by 'lastModifiedDateTime'. Possible values include: 'alertsCount', 'state', 'severity', 'startDateTime', 'lastModifiedDateTime'
- sortOrder
- String
Sort the query results order in either ascending or descending. Default value is 'desc' for time fields and 'asc' for others. Possible values include: 'asc', 'desc'
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
List all the Smart Groups within a specified subscription.
Applies to
Azure SDK for .NET