Metric Alerts Status - List By Name

Retrieve an alert rule status.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}?api-version=2018-03-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

ruleName
path True

string

The name of the rule.

statusName
path True

string

The name of the status.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

MetricAlertStatusCollection

Successful request for a list of metric alerts

Other Status Codes

ErrorResponse

BadRequest

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Get an alert rule status

Sample Request

GET https://management.azure.com/subscriptions/009f6022-67ec-423e-9aa7-691182870588/resourceGroups/EastUs/providers/Microsoft.Insights/metricAlerts/custom1/status/cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l?api-version=2018-03-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/009f6022-67ec-423e-9aa7-691182870588/resourceGroups/EastUs/providers/microsoft.insights/metricAlerts/custom1",
      "name": "cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l",
      "type": "Microsoft.Insights/metricAlerts/status",
      "properties": {
        "dimensions": {
          "resourceId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"
        },
        "status": "Healthy",
        "timestamp": "2018-01-17T20:17:25.6293237Z"
      }
    }
  ]
}

Definitions

Name Description
ErrorResponse

Describes the format of Error response.

MetricAlertStatus

An alert status.

MetricAlertStatusCollection

Represents a collection of alert rule resources.

MetricAlertStatusProperties

An alert status properties.

ErrorResponse

Describes the format of Error response.

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

MetricAlertStatus

An alert status.

Name Type Description
id

string

The alert rule arm id.

name

string

The status name.

properties

MetricAlertStatusProperties

The alert status properties of the metric alert status.

type

string

The extended resource type name.

MetricAlertStatusCollection

Represents a collection of alert rule resources.

Name Type Description
value

MetricAlertStatus[]

the values for the alert rule resources.

MetricAlertStatusProperties

An alert status properties.

Name Type Description
dimensions

object

An object describing the type of the dimensions.

status

string

status value

timestamp

string

UTC time when the status was checked.