Description | : Creates or updates a classic metric alert rule. |
Reference | : Link ¶ |
⚼ Request
PUT:
/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
{
resourceGroupName:
string
,
ruleName:
string
,
api-version:
string
,
parameters:
{
,
properties:
}
{
,
name:
string
,
description:
string
,
provisioningState:
string
,
isEnabled:
boolean
,
condition:
{
,
odata.type:
string
,
dataSource:
}
{
,
odata.type:
string
,
resourceUri:
string
,
legacyResourceId:
string
,
resourceLocation:
string
,
metricNamespace:
string
,
}
action:
{
,
odata.type:
string
,
}
actions:
[
]
,
{
,
odata.type:
string
,
}
lastUpdatedTime:
string
,
}
subscriptionId:
string
,
}
⚐ Response (default)
{
code:
string
,
message:
string
,
}
⚐ Response (200)
{
properties:
}
{
,
name:
string
,
description:
string
,
provisioningState:
string
,
isEnabled:
boolean
,
condition:
{
,
odata.type:
string
,
dataSource:
}
{
,
odata.type:
string
,
resourceUri:
string
,
legacyResourceId:
string
,
resourceLocation:
string
,
metricNamespace:
string
,
}
action:
{
,
odata.type:
string
,
}
actions:
[
]
,
{
,
odata.type:
string
,
}
lastUpdatedTime:
string
,
}
⚐ Response (201)
{
properties:
}
{
,
name:
string
,
description:
string
,
provisioningState:
string
,
isEnabled:
boolean
,
condition:
{
,
odata.type:
string
,
dataSource:
}
{
,
odata.type:
string
,
resourceUri:
string
,
legacyResourceId:
string
,
resourceLocation:
string
,
metricNamespace:
string
,
}
action:
{
,
odata.type:
string
,
}
actions:
[
]
,
{
,
odata.type:
string
,
}
lastUpdatedTime:
string
,
}