-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Insights to add version …
…stable/2022-06-15 (#19652) * Adds base for updating Microsoft.Insights from version stable/2021-08-01 to version 2022-06-15 * Updates readme * Updates API version in new specs and examples * Fixed package tag naming conflict * Separated SQR into package-2022-06-15-only * Fixed default package tag * Adding SQR 2022-06-15 version as part of package-2022-06 * Fixed default tag to be package-2022-06 * Added lenient-model-deduplication flag * Replaced common-types references to Resource,ErrorResponse with local definitions with different name * Renamed ErrorAdditionalInfo to ErrorResponseAdditionalInfo to avoid conflicts * Removed lenient-model-deduplication flag Co-authored-by: Avi Jerafi <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,812 additions
and
6 deletions.
There are no files selected for viewing
200 changes: 200 additions & 0 deletions
200
...nager/Microsoft.Insights/stable/2022-06-15/examples/createOrUpdateScheduledQueryRule.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "dd4bfc94-a096-412b-9c43-4bd13e35afbc", | ||
"resourceGroupName": "QueryResourceGroupName", | ||
"ruleName": "perf", | ||
"api-version": "2022-06-15", | ||
"parameters": { | ||
"location": "eastus", | ||
"properties": { | ||
"description": "Performance rule", | ||
"severity": 4, | ||
"enabled": true, | ||
"evaluationFrequency": "PT5M", | ||
"scopes": [ | ||
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1" | ||
], | ||
"windowSize": "PT10M", | ||
"criteria": { | ||
"allOf": [ | ||
{ | ||
"query": "Perf | where ObjectName == \"Processor\"", | ||
"timeAggregation": "Average", | ||
"metricMeasureColumn": "% Processor Time", | ||
"resourceIdColumn": "resourceId", | ||
"dimensions": [ | ||
{ | ||
"name": "ComputerIp", | ||
"operator": "Exclude", | ||
"values": [ | ||
"192.168.1.1" | ||
] | ||
}, | ||
{ | ||
"name": "OSType", | ||
"operator": "Include", | ||
"values": [ | ||
"*" | ||
] | ||
} | ||
], | ||
"operator": "GreaterThan", | ||
"threshold": 70, | ||
"failingPeriods": { | ||
"numberOfEvaluationPeriods": 1, | ||
"minFailingPeriodsToAlert": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"muteActionsDuration": "PT30M", | ||
"actions": { | ||
"actionGroups": [ | ||
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup" | ||
], | ||
"customProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
}, | ||
"autoMitigate": true, | ||
"checkWorkspaceAlertsStorageConfigured": true, | ||
"skipQueryValidation": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf", | ||
"name": "perf", | ||
"type": "microsoft.insights/scheduledqueryrules", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"description": "Performance rule", | ||
"severity": 4, | ||
"enabled": true, | ||
"evaluationFrequency": "PT5M", | ||
"scopes": [ | ||
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1" | ||
], | ||
"windowSize": "PT10M", | ||
"criteria": { | ||
"allOf": [ | ||
{ | ||
"query": "Perf | where ObjectName == \"Processor\"", | ||
"timeAggregation": "Average", | ||
"metricMeasureColumn": "% Processor Time", | ||
"resourceIdColumn": "resourceId", | ||
"dimensions": [ | ||
{ | ||
"name": "ComputerIp", | ||
"operator": "Exclude", | ||
"values": [ | ||
"192.168.1.1" | ||
] | ||
}, | ||
{ | ||
"name": "OSType", | ||
"operator": "Include", | ||
"values": [ | ||
"*" | ||
] | ||
} | ||
], | ||
"operator": "GreaterThan", | ||
"threshold": 70, | ||
"failingPeriods": { | ||
"numberOfEvaluationPeriods": 1, | ||
"minFailingPeriodsToAlert": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"muteActionsDuration": "PT30M", | ||
"actions": { | ||
"actionGroups": [ | ||
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup" | ||
], | ||
"customProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
}, | ||
"autoMitigate": true, | ||
"isWorkspaceAlertsStorageConfigured": true, | ||
"checkWorkspaceAlertsStorageConfigured": true, | ||
"skipQueryValidation": true | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/perf", | ||
"name": "perf", | ||
"type": "microsoft.insights/scheduledqueryrules", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"description": "Performance rule", | ||
"severity": 4, | ||
"enabled": true, | ||
"evaluationFrequency": "PT5M", | ||
"scopes": [ | ||
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1" | ||
], | ||
"windowSize": "PT10M", | ||
"criteria": { | ||
"allOf": [ | ||
{ | ||
"query": "Perf | where ObjectName == \"Processor\"", | ||
"timeAggregation": "Average", | ||
"metricMeasureColumn": "% Processor Time", | ||
"resourceIdColumn": "resourceId", | ||
"dimensions": [ | ||
{ | ||
"name": "ComputerIp", | ||
"operator": "Exclude", | ||
"values": [ | ||
"192.168.1.1" | ||
] | ||
}, | ||
{ | ||
"name": "OSType", | ||
"operator": "Include", | ||
"values": [ | ||
"*" | ||
] | ||
} | ||
], | ||
"operator": "GreaterThan", | ||
"threshold": 70, | ||
"failingPeriods": { | ||
"numberOfEvaluationPeriods": 1, | ||
"minFailingPeriodsToAlert": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"muteActionsDuration": "PT30M", | ||
"actions": { | ||
"actionGroups": [ | ||
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup" | ||
], | ||
"customProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
}, | ||
"autoMitigate": true, | ||
"isWorkspaceAlertsStorageConfigured": true, | ||
"checkWorkspaceAlertsStorageConfigured": true, | ||
"skipQueryValidation": true | ||
} | ||
} | ||
} | ||
} | ||
} |
158 changes: 158 additions & 0 deletions
158
...ft.Insights/stable/2022-06-15/examples/createOrUpdateScheduledQueryRuleResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "dd4bfc94-a096-412b-9c43-4bd13e35afbc", | ||
"resourceGroupName": "QueryResourceGroupName", | ||
"ruleName": "heartbeat", | ||
"api-version": "2022-06-15", | ||
"parameters": { | ||
"location": "eastus", | ||
"properties": { | ||
"description": "Health check rule", | ||
"severity": 4, | ||
"enabled": true, | ||
"evaluationFrequency": "PT5M", | ||
"scopes": [ | ||
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1" | ||
], | ||
"targetResourceTypes": [ | ||
"Microsoft.Compute/virtualMachines" | ||
], | ||
"windowSize": "PT10M", | ||
"criteria": { | ||
"allOf": [ | ||
{ | ||
"query": "Heartbeat", | ||
"timeAggregation": "Count", | ||
"dimensions": [], | ||
"operator": "GreaterThan", | ||
"threshold": 360, | ||
"failingPeriods": { | ||
"numberOfEvaluationPeriods": 1, | ||
"minFailingPeriodsToAlert": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"muteActionsDuration": "PT30M", | ||
"actions": { | ||
"actionGroups": [ | ||
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup" | ||
], | ||
"customProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
}, | ||
"autoMitigate": true, | ||
"checkWorkspaceAlertsStorageConfigured": true, | ||
"skipQueryValidation": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat", | ||
"name": "heartbeat", | ||
"type": "microsoft.insights/scheduledqueryrules", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"description": "Health check rule", | ||
"severity": 4, | ||
"enabled": true, | ||
"evaluationFrequency": "PT5M", | ||
"scopes": [ | ||
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1" | ||
], | ||
"targetResourceTypes": [ | ||
"Microsoft.Compute/virtualMachines" | ||
], | ||
"windowSize": "PT10M", | ||
"criteria": { | ||
"allOf": [ | ||
{ | ||
"query": "Heartbeat", | ||
"timeAggregation": "Count", | ||
"dimensions": [], | ||
"operator": "GreaterThan", | ||
"threshold": 360, | ||
"failingPeriods": { | ||
"numberOfEvaluationPeriods": 1, | ||
"minFailingPeriodsToAlert": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"muteActionsDuration": "PT30M", | ||
"actions": { | ||
"actionGroups": [ | ||
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup" | ||
], | ||
"customProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
}, | ||
"autoMitigate": true, | ||
"isWorkspaceAlertsStorageConfigured": true, | ||
"checkWorkspaceAlertsStorageConfigured": true, | ||
"skipQueryValidation": true | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourcegroups/QueryResourceGroupName/providers/microsoft.insights/scheduledqueryrules/heartbeat", | ||
"name": "heartbeat", | ||
"type": "microsoft.insights/scheduledqueryrules", | ||
"location": "eastus", | ||
"tags": {}, | ||
"properties": { | ||
"description": "Health check rule", | ||
"severity": 4, | ||
"enabled": true, | ||
"evaluationFrequency": "PT5M", | ||
"scopes": [ | ||
"/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1" | ||
], | ||
"targetResourceTypes": [ | ||
"Microsoft.Compute/virtualMachines" | ||
], | ||
"windowSize": "PT10M", | ||
"criteria": { | ||
"allOf": [ | ||
{ | ||
"query": "Heartbeat", | ||
"timeAggregation": "Count", | ||
"dimensions": [], | ||
"operator": "GreaterThan", | ||
"threshold": 360, | ||
"failingPeriods": { | ||
"numberOfEvaluationPeriods": 1, | ||
"minFailingPeriodsToAlert": 1 | ||
} | ||
} | ||
] | ||
}, | ||
"muteActionsDuration": "PT30M", | ||
"actions": { | ||
"actionGroups": [ | ||
"/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup" | ||
], | ||
"customProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
}, | ||
"autoMitigate": true, | ||
"isWorkspaceAlertsStorageConfigured": true, | ||
"checkWorkspaceAlertsStorageConfigured": true, | ||
"skipQueryValidation": true | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.