Microsoft.Insights (preview:2025-01-01)

2025/03/03 • 6 new methods

ScheduledQueryRules_ListBySubscription (new)
Description Retrieve a scheduled query rule definitions in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
location: string ,
kind: enum ,
etag: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledQueryRules_ListByResourceGroup (new)
Description Retrieve scheduled query rule definitions in a resource group.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
location: string ,
kind: enum ,
etag: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledQueryRules_Get (new)
Description Retrieve an scheduled query rule definition.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
location: string ,
kind: enum ,
etag: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledQueryRules_CreateOrUpdate (new)
Description Creates or updates a scheduled query rule.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
location: string ,
kind: enum ,
etag: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
location: string ,
kind: enum ,
etag: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
type: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
location: string ,
kind: enum ,
etag: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledQueryRules_Update (new)
Description Update a scheduled query rule.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
parameters:
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
location: string ,
kind: enum ,
etag: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
createdWithApiVersion: string ,
isLegacyLogAnalyticsRule: boolean ,
description: string ,
displayName: string ,
severity: integer ,
enabled: boolean ,
scopes:
[
string ,
]
,
evaluationFrequency: string ,
windowSize: string ,
overrideQueryTimeRange: string ,
targetResourceTypes:
[
string ,
]
,
criteria:
{
allOf:
[
{
criterionType: enum ,
query: string ,
timeAggregation: enum ,
metricMeasureColumn: string ,
resourceIdColumn: string ,
dimensions:
[
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
]
,
operator: enum ,
threshold: number ,
alertSensitivity: string ,
ignoreDataBefore: string ,
failingPeriods:
{
numberOfEvaluationPeriods: integer ,
minFailingPeriodsToAlert: integer ,
}
,
metricName: string ,
minRecurrenceCount: integer ,
}
,
]
,
}
,
muteActionsDuration: string ,
actions:
{
actionGroups:
[
string ,
]
,
customProperties: object ,
actionProperties: object ,
}
,
isWorkspaceAlertsStorageConfigured: boolean ,
checkWorkspaceAlertsStorageConfigured: boolean ,
skipQueryValidation: boolean ,
autoMitigate: boolean ,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledQueryRules_Delete (new)
Description Deletes a scheduled query rule.
Reference Link ¶

⚼ Request

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}

⚐ Response (200)

{}

⚐ Response (204)

{}