Description | : Retrieve alert rule definitions in a subscription. |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "MetricAlerts_ListBySubscription", "$responses": { "default": { "$properties": { "@added_76fd0d8acef842e3bc29007fdd1dc399": { "#name": "error", "Required": false, "Type": "object", "$properties": [ { "#name": "code", "Description": "Unlocalized string which can be used to programmatically identify the error.", "Required": false, "Type": "string" }, { "#name": "message", "Description": "Describes the error in detail and provides debugging information. If Accept-Language is set in the request, it must be localized to that language.", "Required": false, "Type": "string" }, { "#name": "target", "Description": "The target of the particular error (for example, the name of the property in error).", "Required": false, "Type": "string" }, { "#name": "details", "Description": "An array of additional nested error response info objects, as described by this contract.", "Required": false, "Type": "array", "$items": { "Description": "Describes details of an error response.", "Type": "object", "$properties": [ { "#name": "code", "Description": "Unlocalized string which can be used to programmatically identify the error.", "Required": false, "Type": "string" }, { "#name": "message", "Description": "Describes the error in detail and provides debugging information.", "Required": false, "Type": "string" }, { "#name": "target", "Description": "The target of the particular error (for example, the name of the property in error).", "Required": false, "Type": "string" }, { "#name": "additionalInfo", "Description": "An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.", "Required": false, "Type": "array", "$items": { "Type": "object", "$properties": [ { "#name": "type", "Description": "The type of additional information.", "Required": false, "Type": "string" }, { "#name": "info", "Description": "The additional information specific to the type.", "Required": false, "Type": "object" } ] } } ] } }, { "#name": "additionalInfo", "Description": "An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.", "Required": false, "Type": "array", "$items": { "Type": "object", "$properties": [ { "#name": "type", "Description": "The type of additional information.", "Required": false, "Type": "string" }, { "#name": "info", "Description": "The additional information specific to the type.", "Required": false, "Type": "object" } ] } } ] }, "@removed_d96d4dee5669490896a0d5ceb1155be4": { "#name": "code", "Description": "Error code", "Required": false, "Type": "string" }, "@removed_a3fd173da1c24fadb7c267f702387bbe": { "#name": "message", "Description": "Error message indicating why the operation failed.", "Required": false, "Type": "string" } } } } }
⚼ Request
GET:
/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts
{
subscriptionId:
string
,
api-version:
string
,
}
⚐ Response (200)
{
value:
}
[
]
,
{
,
properties:
}
{
,
description:
string
,
severity:
integer
,
enabled:
boolean
,
scopes:
[
,
string
,
]
evaluationFrequency:
string
,
windowSize:
string
,
targetResourceType:
string
,
targetResourceRegion:
string
,
criteria:
{
,
odata.type:
enum
,
}
autoMitigate:
boolean
,
actions:
[
]
,
{
,
actionGroupId:
string
,
webHookProperties:
object
,
}
lastUpdatedTime:
string
,
isMigrated:
boolean
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
]
,
{
,
code:
string
,
message:
string
,
target:
string
,
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}