Microsoft.Insights (preview:2024-03-01)

2025/09/10 • 8 new methods

MetricAlerts_ListBySubscription (new)
Description Retrieve alert rule definitions in a subscription.
Reference Link ¶

⚼ 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 ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
actions:
[
{
actionGroupId: string ,
webHookProperties: object ,
}
,
]
,
lastUpdatedTime: string ,
isMigrated: boolean ,
customProperties: object ,
actionProperties: object ,
}
,
}
,
]
,
}

⚐ 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 ,
}
,
]
,
}
,
}
MetricAlerts_ListByResourceGroup (new)
Description Retrieve alert rule definitions in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts
{
subscriptionId: string ,
resourceGroupName: 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 ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
actions:
[
{
actionGroupId: string ,
webHookProperties: object ,
}
,
]
,
lastUpdatedTime: string ,
isMigrated: boolean ,
customProperties: object ,
actionProperties: object ,
}
,
}
,
]
,
}

⚐ 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 ,
}
,
]
,
}
,
}
MetricAlerts_Get (new)
Description Retrieve an alert rule definition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
description: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
targetResourceType: string ,
targetResourceRegion: string ,
criteria:
{
odata.type: enum ,
}
,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
actions:
[
{
actionGroupId: string ,
webHookProperties: object ,
}
,
]
,
lastUpdatedTime: string ,
isMigrated: boolean ,
customProperties: object ,
actionProperties: object ,
}
,
}

⚐ 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 ,
}
,
]
,
}
,
}
MetricAlerts_CreateOrUpdate (new)
Description Create or update an metric alert definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
parameters:
{
properties:
{
description: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
targetResourceType: string ,
targetResourceRegion: string ,
criteria:
{
odata.type: enum ,
}
,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
actions:
[
{
actionGroupId: string ,
webHookProperties: object ,
}
,
]
,
lastUpdatedTime: string ,
isMigrated: boolean ,
customProperties: object ,
actionProperties: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
targetResourceType: string ,
targetResourceRegion: string ,
criteria:
{
odata.type: enum ,
}
,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
actions:
[
{
actionGroupId: string ,
webHookProperties: object ,
}
,
]
,
lastUpdatedTime: string ,
isMigrated: boolean ,
customProperties: object ,
actionProperties: object ,
}
,
}

⚐ 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 ,
}
,
]
,
}
,
}
MetricAlerts_Update (new)
Description Update an metric alert definition.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
parameters:
{
tags: object ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
properties:
{
description: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
targetResourceType: string ,
targetResourceRegion: string ,
criteria:
{
odata.type: enum ,
}
,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
actions:
[
{
actionGroupId: string ,
webHookProperties: object ,
}
,
]
,
lastUpdatedTime: string ,
isMigrated: boolean ,
customProperties: object ,
actionProperties: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
targetResourceType: string ,
targetResourceRegion: string ,
criteria:
{
odata.type: enum ,
}
,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
actions:
[
{
actionGroupId: string ,
webHookProperties: object ,
}
,
]
,
lastUpdatedTime: string ,
isMigrated: boolean ,
customProperties: object ,
actionProperties: object ,
}
,
}

⚐ 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 ,
}
,
]
,
}
,
}
MetricAlerts_Delete (new)
Description Delete an alert rule definition.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ 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 ,
}
,
]
,
}
,
}
MetricAlertsStatus_List (new)
Description Retrieve an alert rule status.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
id: string ,
type: string ,
properties:
{
dimensions: object ,
status: string ,
timestamp: string ,
}
,
}
,
]
,
}

⚐ 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 ,
}
,
]
,
}
,
}
MetricAlertsStatus_ListByName (new)
Description Retrieve an alert rule status.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
statusName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
id: string ,
type: string ,
properties:
{
dimensions: object ,
status: string ,
timestamp: string ,
}
,
}
,
]
,
}

⚐ 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 ,
}
,
]
,
}
,
}