Skip to content

Commit 8ff7d5e

Browse files
authored
Dev cost management microsoft.cost management 2022 06 01 preview (#19450)
* Adds base for updating Microsoft.CostManagement from version preview/2022-04-01-preview to version 2022-06-01-preview * Updates readme * Updates API version in new specs and examples * Update for scheduled action insight alert * Update readme.md * Fix prettier errors * Remove 'Expired' type from enum ScheduledActionStatus * Update InsightAlert enum description * Update decsription
1 parent a7de71e commit 8ff7d5e

17 files changed

+1902
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"checkNameAvailabilityRequest": {
5+
"name": "testName",
6+
"type": "Microsoft.CostManagement/ScheduledActions"
7+
}
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"nameAvailable": false,
13+
"reason": "AlreadyExists",
14+
"message": "A private scheduled action with name 'testName' is already present. Please specify a differnt name."
15+
}
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
5+
"checkNameAvailabilityRequest": {
6+
"name": "testName",
7+
"type": "Microsoft.CostManagement/ScheduledActions"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": true
14+
}
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"name": "monthlyCostByResource",
5+
"scheduledAction": {
6+
"kind": "Email",
7+
"properties": {
8+
"displayName": "Monthly Cost By Resource",
9+
"notification": {
10+
"to": [
11+
12+
13+
],
14+
"subject": "Cost by resource this month"
15+
},
16+
"schedule": {
17+
"frequency": "Monthly",
18+
"weeksOfMonth": [
19+
"First",
20+
"Third"
21+
],
22+
"daysOfWeek": [
23+
"Monday"
24+
],
25+
"hourOfDay": 10,
26+
"startDate": "2020-06-19T22:21:51.1287144Z",
27+
"endDate": "2021-06-19T22:21:51.1287144Z"
28+
},
29+
"status": "Enabled",
30+
"viewId": "/providers/Microsoft.CostManagement/views/swaggerExample"
31+
}
32+
}
33+
},
34+
"responses": {
35+
"201": {
36+
"body": {
37+
"id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource",
38+
"name": "monthlyCostByResource",
39+
"type": "Microsoft.CostManagement/ScheduledActions",
40+
"kind": "Email",
41+
"eTag": "\"1d4ff9fe66f1d10\"",
42+
"systemData": {
43+
"createdBy": "testuser",
44+
"createdByType": "User",
45+
"createdAt": "2020-06-18T22:21:51.1287144Z",
46+
"lastModifiedBy": "testuser",
47+
"lastModifiedByType": "User",
48+
"lastModifiedAt": "2020-06-18T22:21:51.1287144Z"
49+
},
50+
"properties": {
51+
"displayName": "Monthly Cost By Resource",
52+
"notification": {
53+
"to": [
54+
55+
56+
],
57+
"subject": "Cost by resource this month"
58+
},
59+
"schedule": {
60+
"frequency": "Monthly",
61+
"weeksOfMonth": [
62+
"First",
63+
"Third"
64+
],
65+
"daysOfWeek": [
66+
"Monday"
67+
],
68+
"hourOfDay": 10,
69+
"startDate": "2020-06-19T22:21:51.1287144Z",
70+
"endDate": "2021-06-19T22:21:51.1287144Z"
71+
},
72+
"scope": "",
73+
"status": "Enabled",
74+
"viewId": "/providers/Microsoft.CostManagement/views/swaggerExample"
75+
}
76+
}
77+
},
78+
"200": {
79+
"body": {
80+
"id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource",
81+
"name": "monthlyCostByResource",
82+
"type": "Microsoft.CostManagement/ScheduledActions",
83+
"kind": "Email",
84+
"eTag": "\"1d4ff9fe66f1d10\"",
85+
"systemData": {
86+
"createdBy": "testuser",
87+
"createdByType": "User",
88+
"createdAt": "2020-06-18T22:21:51.1287144Z",
89+
"lastModifiedBy": "testuser",
90+
"lastModifiedByType": "User",
91+
"lastModifiedAt": "2020-06-19T22:21:51.1287144Z"
92+
},
93+
"properties": {
94+
"displayName": "Monthly Cost By Resource",
95+
"notification": {
96+
"to": [
97+
98+
99+
],
100+
"subject": "Cost by resource this month"
101+
},
102+
"scope": "",
103+
"status": "Enabled",
104+
"schedule": {
105+
"frequency": "Monthly",
106+
"weeksOfMonth": [
107+
"First",
108+
"Third"
109+
],
110+
"daysOfWeek": [
111+
"Monday"
112+
],
113+
"hourOfDay": 10,
114+
"startDate": "2020-06-19T22:21:51.1287144Z",
115+
"endDate": "2021-06-19T22:21:51.1287144Z"
116+
},
117+
"viewId": "/providers/Microsoft.CostManagement/views/swaggerExample"
118+
}
119+
}
120+
}
121+
}
122+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
5+
"name": "monthlyCostByResource",
6+
"scheduledAction": {
7+
"kind": "Email",
8+
"properties": {
9+
"displayName": "Monthly Cost By Resource",
10+
"fileDestination": {
11+
"fileFormats": [
12+
"Csv"
13+
]
14+
},
15+
"notification": {
16+
"to": [
17+
18+
19+
],
20+
"subject": "Cost by resource this month"
21+
},
22+
"schedule": {
23+
"frequency": "Monthly",
24+
"weeksOfMonth": [
25+
"First",
26+
"Third"
27+
],
28+
"daysOfWeek": [
29+
"Monday"
30+
],
31+
"hourOfDay": 10,
32+
"startDate": "2020-06-19T22:21:51.1287144Z",
33+
"endDate": "2021-06-19T22:21:51.1287144Z"
34+
},
35+
"status": "Enabled",
36+
"viewId": "/providers/Microsoft.CostManagement/views/swaggerExample"
37+
}
38+
}
39+
},
40+
"responses": {
41+
"201": {
42+
"body": {
43+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource",
44+
"name": "monthlyCostByResource",
45+
"type": "Microsoft.CostManagement/ScheduledActions",
46+
"kind": "Email",
47+
"eTag": "\"1d4ff9fe66f1d10\"",
48+
"systemData": {
49+
"createdBy": "testuser",
50+
"createdByType": "User",
51+
"createdAt": "2020-06-18T22:21:51.1287144Z",
52+
"lastModifiedBy": "testuser",
53+
"lastModifiedByType": "User",
54+
"lastModifiedAt": "2020-06-18T22:21:51.1287144Z"
55+
},
56+
"properties": {
57+
"displayName": "Monthly Cost By Resource",
58+
"fileDestination": {
59+
"fileFormats": [
60+
"Csv"
61+
]
62+
},
63+
"notification": {
64+
"to": [
65+
66+
67+
],
68+
"subject": "Cost by resource this month"
69+
},
70+
"schedule": {
71+
"frequency": "Monthly",
72+
"weeksOfMonth": [
73+
"First",
74+
"Third"
75+
],
76+
"daysOfWeek": [
77+
"Monday"
78+
],
79+
"hourOfDay": 10,
80+
"startDate": "2020-06-19T22:21:51.1287144Z",
81+
"endDate": "2021-06-19T22:21:51.1287144Z"
82+
},
83+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
84+
"status": "Enabled",
85+
"viewId": "/providers/Microsoft.CostManagement/views/swaggerExample"
86+
}
87+
}
88+
},
89+
"200": {
90+
"body": {
91+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource",
92+
"name": "monthlyCostByResource",
93+
"type": "Microsoft.CostManagement/ScheduledActions",
94+
"kind": "Email",
95+
"eTag": "\"1d4ff9fe66f1d10\"",
96+
"systemData": {
97+
"createdBy": "testuser",
98+
"createdByType": "User",
99+
"createdAt": "2020-06-18T22:21:51.1287144Z",
100+
"lastModifiedBy": "testuser",
101+
"lastModifiedByType": "User",
102+
"lastModifiedAt": "2020-06-19T22:21:51.1287144Z"
103+
},
104+
"properties": {
105+
"displayName": "Monthly Cost By Resource",
106+
"notification": {
107+
"to": [
108+
109+
110+
],
111+
"subject": "Cost by resource this month"
112+
},
113+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
114+
"schedule": {
115+
"frequency": "Monthly",
116+
"weeksOfMonth": [
117+
"First",
118+
"Third"
119+
],
120+
"daysOfWeek": [
121+
"Monday"
122+
],
123+
"hourOfDay": 10,
124+
"startDate": "2020-06-19T22:21:51.1287144Z",
125+
"endDate": "2021-06-19T22:21:51.1287144Z"
126+
},
127+
"status": "Enabled",
128+
"viewId": "/providers/Microsoft.CostManagement/views/swaggerExample"
129+
}
130+
}
131+
}
132+
}
133+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"name": "monthlyCostByResource"
5+
},
6+
"responses": {
7+
"200": {},
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
5+
"name": "monthlyCostByResource"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"name": "monthlyCostByResource"
5+
},
6+
"responses": {
7+
"200": {}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
5+
"name": "monthlyCostByResource"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01-preview",
4+
"name": "monthlyCostByResource"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "providers/Microsoft.CostManagement/scheduledActions/monthlyCostByResource",
10+
"name": "monthlyCostByResource",
11+
"type": "Microsoft.CostManagement/ScheduledActions",
12+
"kind": "Email",
13+
"eTag": "\"1d4ff9fe66f1d10\"",
14+
"systemData": {
15+
"createdBy": "testuser",
16+
"createdByType": "User",
17+
"createdAt": "2020-06-18T22:21:51.1287144Z",
18+
"lastModifiedBy": "testuser",
19+
"lastModifiedByType": "User",
20+
"lastModifiedAt": "2020-06-18T22:21:51.1287144Z"
21+
},
22+
"properties": {
23+
"displayName": "Monthly Cost By Resource",
24+
"scope": "",
25+
"status": "Enabled",
26+
"viewId": "/providers/Microsoft.CostManagement/views/swaggerExample",
27+
"schedule": {
28+
"frequency": "Monthly",
29+
"weeksOfMonth": [
30+
"First",
31+
"Third"
32+
],
33+
"daysOfWeek": [
34+
"Monday"
35+
],
36+
"hourOfDay": 10,
37+
"startDate": "2020-06-19T22:21:51.1287144Z",
38+
"endDate": "2021-06-19T22:21:51.1287144Z"
39+
},
40+
"notification": {
41+
"to": [
42+
43+
44+
],
45+
"subject": "Cost by resource this month"
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}

0 commit comments

Comments
 (0)