Delen via


ISmartGroupsOperations.GetAllWithHttpMessagesAsync Method

Definition

Get all Smart Groups within a specified subscription

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup>>> GetAllWithHttpMessagesAsync (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.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllWithHttpMessagesAsync : string * string * string * string * string * string * string * string * Nullable<int64> * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.AlertsManagement.Models.SmartGroup>>>
Public Function GetAllWithHttpMessagesAsync (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 customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of SmartGroup)))

Parameters

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'

pageCount
Nullable<Int64>

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'

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Remarks

List all the Smart Groups within a specified subscription.

Applies to