Skip to content

Commit 2123beb

Browse files
added 2014-04-01 version (#12707)
* added 2014-04-01 version * fix listAlertRuleBySubscription example reference Co-authored-by: Gregory Chris <sgchris@gmail.com>
1 parent 36ff73a commit 2123beb

File tree

8 files changed

+1178
-0
lines changed

8 files changed

+1178
-0
lines changed

specification/monitor/resource-manager/Microsoft.Insights/stable/2014-04-01/alertRules_API.json

Lines changed: 766 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3",
4+
"resourceGroupName": "Rac46PostSwapRG",
5+
"ruleName": "chiricutin",
6+
"api-version": "2014-04-01",
7+
"parameters": {
8+
"location": "West US",
9+
"tags": {},
10+
"properties": {
11+
"name": "chiricutin",
12+
"description": "Pura Vida",
13+
"isEnabled": true,
14+
"condition": {
15+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
16+
"dataSource": {
17+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
18+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
19+
"metricName": "Requests"
20+
},
21+
"operator": "GreaterThan",
22+
"threshold": 3.0,
23+
"windowSize": "PT5M",
24+
"timeAggregation": "Total"
25+
},
26+
"actions": []
27+
}
28+
}
29+
},
30+
"responses": {
31+
"200": {
32+
"headers": {},
33+
"body": {
34+
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin",
35+
"name": "chiricutin",
36+
"type": "Microsoft.Insights/alertRules",
37+
"location": "West US",
38+
"tags": {
39+
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage",
40+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
41+
},
42+
"properties": {
43+
"name": "chiricutin",
44+
"description": "Pura Vida",
45+
"isEnabled": true,
46+
"condition": {
47+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
48+
"dataSource": {
49+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
50+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
51+
"metricName": "Requests"
52+
},
53+
"operator": "GreaterThan",
54+
"threshold": 3.0,
55+
"windowSize": "PT5M",
56+
"timeAggregation": "Total"
57+
},
58+
"lastUpdatedTime": "2016-11-23T21:23:52.0221265Z",
59+
"actions": []
60+
}
61+
}
62+
},
63+
"201": {
64+
"headers": {},
65+
"body": {
66+
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin",
67+
"name": "chiricutin",
68+
"type": "Microsoft.Insights/alertRules",
69+
"location": "West US",
70+
"tags": {
71+
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage",
72+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
73+
},
74+
"properties": {
75+
"name": "chiricutin",
76+
"description": "Pura Vida",
77+
"isEnabled": true,
78+
"condition": {
79+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
80+
"dataSource": {
81+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
82+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
83+
"metricName": "Requests"
84+
},
85+
"operator": "GreaterThan",
86+
"threshold": 3.0,
87+
"windowSize": "PT5M",
88+
"timeAggregation": "Total"
89+
},
90+
"lastUpdatedTime": "2016-11-23T21:23:52.0221265Z",
91+
"actions": []
92+
}
93+
}
94+
}
95+
}
96+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3",
4+
"resourceGroupName": "Rac46PostSwapRG",
5+
"ruleName": "chiricutin",
6+
"api-version": "2014-04-01"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3",
4+
"resourceGroupName": "Rac46PostSwapRG",
5+
"ruleName": "chiricutin",
6+
"api-version": "2014-04-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin",
13+
"name": "chiricutin",
14+
"type": "Microsoft.Insights/alertRules",
15+
"location": "West US",
16+
"tags": {
17+
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage",
18+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
19+
},
20+
"properties": {
21+
"name": "chiricutin",
22+
"description": "Pura Vida",
23+
"isEnabled": true,
24+
"condition": {
25+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
26+
"dataSource": {
27+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
28+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
29+
"metricName": "Requests"
30+
},
31+
"operator": "GreaterThan",
32+
"threshold": 3.0,
33+
"windowSize": "PT5M",
34+
"timeAggregation": "Total"
35+
},
36+
"lastUpdatedTime": "2016-11-23T21:23:52.0221265Z",
37+
"actions": []
38+
}
39+
}
40+
}
41+
}
42+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3",
4+
"resourceGroupName": "Rac46PostSwapRG",
5+
"api-version": "2014-04-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName",
14+
"name": "myRuleName",
15+
"type": "Microsoft.Insights/alertRules",
16+
"location": "West US",
17+
"tags": {
18+
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage",
19+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
20+
},
21+
"properties": {
22+
"name": "myRuleName",
23+
"description": "Pura Vida",
24+
"isEnabled": true,
25+
"condition": {
26+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
27+
"dataSource": {
28+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
29+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
30+
"metricName": "Requests"
31+
},
32+
"operator": "GreaterThan",
33+
"threshold": 2.0,
34+
"windowSize": "PT5M",
35+
"timeAggregation": "Total"
36+
},
37+
"lastUpdatedTime": "2016-11-10T21:04:39.0005255Z",
38+
"actions": [
39+
{
40+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
41+
"sendToServiceOwners": true,
42+
"customEmails": [
43+
"gu@ms.com",
44+
"su@ms.net"
45+
]
46+
}
47+
]
48+
}
49+
},
50+
{
51+
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0",
52+
"name": "chiricutin0",
53+
"type": "Microsoft.Insights/alertRules",
54+
"location": "West US",
55+
"tags": {
56+
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage",
57+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
58+
},
59+
"properties": {
60+
"name": "chiricutin0",
61+
"description": "Pura Vida 0",
62+
"isEnabled": true,
63+
"condition": {
64+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
65+
"dataSource": {
66+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
67+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
68+
"metricName": "Requests"
69+
},
70+
"operator": "GreaterThan",
71+
"threshold": 2.0,
72+
"windowSize": "PT5M",
73+
"timeAggregation": "Total"
74+
},
75+
"lastUpdatedTime": "2016-11-10T21:04:39.1082596Z",
76+
"actions": []
77+
}
78+
}
79+
]
80+
}
81+
}
82+
}
83+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3",
4+
"api-version": "2014-04-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/myRuleName",
13+
"name": "myRuleName",
14+
"type": "Microsoft.Insights/alertRules",
15+
"location": "West US",
16+
"tags": {
17+
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage",
18+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
19+
},
20+
"properties": {
21+
"name": "myRuleName",
22+
"description": "Pura Vida",
23+
"isEnabled": true,
24+
"condition": {
25+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
26+
"dataSource": {
27+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
28+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
29+
"metricName": "Requests"
30+
},
31+
"operator": "GreaterThan",
32+
"threshold": 2.0,
33+
"windowSize": "PT5M",
34+
"timeAggregation": "Total"
35+
},
36+
"lastUpdatedTime": "2016-11-10T21:04:39.0005255Z",
37+
"actions": [
38+
{
39+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
40+
"sendToServiceOwners": true,
41+
"customEmails": [
42+
"gu@ms.com",
43+
"su@ms.net"
44+
]
45+
}
46+
]
47+
}
48+
},
49+
{
50+
"id": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin0",
51+
"name": "chiricutin0",
52+
"type": "Microsoft.Insights/alertRules",
53+
"location": "West US",
54+
"tags": {
55+
"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage",
56+
"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource"
57+
},
58+
"properties": {
59+
"name": "chiricutin0",
60+
"description": "Pura Vida 0",
61+
"isEnabled": true,
62+
"condition": {
63+
"odata.type": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
64+
"dataSource": {
65+
"odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
66+
"resourceUri": "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest",
67+
"metricName": "Requests"
68+
},
69+
"operator": "GreaterThan",
70+
"threshold": 2.0,
71+
"windowSize": "PT5M",
72+
"timeAggregation": "Total"
73+
},
74+
"lastUpdatedTime": "2016-11-10T21:04:39.1082596Z",
75+
"actions": []
76+
}
77+
}
78+
]
79+
}
80+
}
81+
}
82+
}

0 commit comments

Comments
 (0)