forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added 2014-04-01 version (Azure#12707)
* added 2014-04-01 version * fix listAlertRuleBySubscription example reference Co-authored-by: Gregory Chris <[email protected]>
- Loading branch information
1 parent
36ff73a
commit 2123beb
Showing
8 changed files
with
1,178 additions
and
0 deletions.
There are no files selected for viewing
766 changes: 766 additions & 0 deletions
766
...ication/monitor/resource-manager/Microsoft.Insights/stable/2014-04-01/alertRules_API.json
Large diffs are not rendered by default.
Oops, something went wrong.
96 changes: 96 additions & 0 deletions
96
...source-manager/Microsoft.Insights/stable/2014-04-01/examples/createOrUpdateAlertRule.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,96 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", | ||
"resourceGroupName": "Rac46PostSwapRG", | ||
"ruleName": "chiricutin", | ||
"api-version": "2014-04-01", | ||
"parameters": { | ||
"location": "West US", | ||
"tags": {}, | ||
"properties": { | ||
"name": "chiricutin", | ||
"description": "Pura Vida", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 3.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"actions": [] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", | ||
"name": "chiricutin", | ||
"type": "Microsoft.Insights/alertRules", | ||
"location": "West US", | ||
"tags": { | ||
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", | ||
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" | ||
}, | ||
"properties": { | ||
"name": "chiricutin", | ||
"description": "Pura Vida", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 3.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", | ||
"actions": [] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", | ||
"name": "chiricutin", | ||
"type": "Microsoft.Insights/alertRules", | ||
"location": "West US", | ||
"tags": { | ||
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", | ||
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" | ||
}, | ||
"properties": { | ||
"name": "chiricutin", | ||
"description": "Pura Vida", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 3.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", | ||
"actions": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...nitor/resource-manager/Microsoft.Insights/stable/2014-04-01/examples/deleteAlertRule.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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", | ||
"resourceGroupName": "Rac46PostSwapRG", | ||
"ruleName": "chiricutin", | ||
"api-version": "2014-04-01" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
.../monitor/resource-manager/Microsoft.Insights/stable/2014-04-01/examples/getAlertRule.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,42 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", | ||
"resourceGroupName": "Rac46PostSwapRG", | ||
"ruleName": "chiricutin", | ||
"api-version": "2014-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", | ||
"name": "chiricutin", | ||
"type": "Microsoft.Insights/alertRules", | ||
"location": "West US", | ||
"tags": { | ||
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", | ||
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" | ||
}, | ||
"properties": { | ||
"name": "chiricutin", | ||
"description": "Pura Vida", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 3.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"lastUpdatedTime": "2016-11-23T21:23:52.0221265Z", | ||
"actions": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
...monitor/resource-manager/Microsoft.Insights/stable/2014-04-01/examples/listAlertRule.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,83 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", | ||
"resourceGroupName": "Rac46PostSwapRG", | ||
"api-version": "2014-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName", | ||
"name": "myRuleName", | ||
"type": "Microsoft.Insights/alertRules", | ||
"location": "West US", | ||
"tags": { | ||
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", | ||
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" | ||
}, | ||
"properties": { | ||
"name": "myRuleName", | ||
"description": "Pura Vida", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 2.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"lastUpdatedTime": "2016-11-10T21:04:39.0005255Z", | ||
"actions": [ | ||
{ | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", | ||
"sendToServiceOwners": true, | ||
"customEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0", | ||
"name": "chiricutin0", | ||
"type": "Microsoft.Insights/alertRules", | ||
"location": "West US", | ||
"tags": { | ||
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", | ||
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" | ||
}, | ||
"properties": { | ||
"name": "chiricutin0", | ||
"description": "Pura Vida 0", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 2.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"lastUpdatedTime": "2016-11-10T21:04:39.1082596Z", | ||
"actions": [] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
...ce-manager/Microsoft.Insights/stable/2014-04-01/examples/listAlertRuleBySubscription.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,82 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", | ||
"api-version": "2014-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName", | ||
"name": "myRuleName", | ||
"type": "Microsoft.Insights/alertRules", | ||
"location": "West US", | ||
"tags": { | ||
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", | ||
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" | ||
}, | ||
"properties": { | ||
"name": "myRuleName", | ||
"description": "Pura Vida", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 2.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"lastUpdatedTime": "2016-11-10T21:04:39.0005255Z", | ||
"actions": [ | ||
{ | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", | ||
"sendToServiceOwners": true, | ||
"customEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0", | ||
"name": "chiricutin0", | ||
"type": "Microsoft.Insights/alertRules", | ||
"location": "West US", | ||
"tags": { | ||
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage", | ||
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" | ||
}, | ||
"properties": { | ||
"name": "chiricutin0", | ||
"description": "Pura Vida 0", | ||
"isEnabled": true, | ||
"condition": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", | ||
"dataSource": { | ||
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", | ||
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", | ||
"metricName": "Requests" | ||
}, | ||
"operator": "GreaterThan", | ||
"threshold": 2.0, | ||
"windowSize": "PT5M", | ||
"timeAggregation": "Total" | ||
}, | ||
"lastUpdatedTime": "2016-11-10T21:04:39.1082596Z", | ||
"actions": [] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.