Skip to content

Commit 2e48c10

Browse files
Updated DatadogOrganizationProperties for reduce onboarding friction story | Datadog (#20022)
* initial commit * updated new api version 2022-06-01 in all examples and datadog.json * updated 2 parameters of 'DatadogOrganizationProperties' to mandatory: - Name : Name of the Datadog organization - Id : Id of the Datadog organization * added datadogOrgID in 'datadogOrganizationProperties' In Request send for Create Monitor * added New Tag version details in all readme(s) wherever required * Change Mutability for DatadogOrganizationProperties => Id & Name (added read to x-ms-mutability) * reverted back changes from readme.go.md as these were used to serve track 1 SDK. Now latest api-version will not have track 1 Go SDK, but it will have track 2 SDK.
1 parent e24bbf6 commit 2e48c10

26 files changed

+2839
-2
lines changed

specification/datadog/resource-manager/Microsoft.Datadog/stable/2022-06-01/datadog.json

Lines changed: 2016 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "myMonitor"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"createdBy": "john@example.com",
12+
"name": "<API_KEY_NAME>",
13+
"key": "1111111111111111aaaaaaaaaaaaaaaa",
14+
"created": "2019-04-05 09:20:30"
15+
}
16+
}
17+
}
18+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "myMonitor"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"createdBy": "john@example.com",
14+
"name": "<API_KEY_NAME>",
15+
"key": "1111111111111111aaaaaaaaaaaaaaaa",
16+
"created": "2019-04-05 09:20:30"
17+
},
18+
{
19+
"createdBy": "jane@example.com",
20+
"name": "<API_KEY_NAME_2>",
21+
"key": "2111111111111111aaaaaaaaaaaaaaaa",
22+
"created": "2019-04-05 09:19:53"
23+
}
24+
],
25+
"nextLink": null
26+
}
27+
}
28+
}
29+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "myMonitor",
7+
"requestBody": {
8+
"key": "1111111111111111aaaaaaaaaaaaaaaa"
9+
}
10+
},
11+
"responses": {
12+
"200": {}
13+
}
14+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "myMonitor"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"name": "vm1",
14+
"aliases": [
15+
"vm1",
16+
"65f2dd83-95ae-4f56-b6aa-a5dafc05f4cd"
17+
],
18+
"apps": [
19+
"ntp",
20+
"agent"
21+
],
22+
"meta": {
23+
"agentVersion": "7.19.2",
24+
"installMethod": {
25+
"tool": "install_script",
26+
"toolVersion": "install_script",
27+
"installerVersion": "install_script-1.0.0"
28+
},
29+
"logsAgent": {
30+
"transport": ""
31+
}
32+
}
33+
},
34+
{
35+
"name": "vm2",
36+
"aliases": [
37+
"vm2",
38+
"df631d9a-8178-4580-bf60-c697a5e8df4d"
39+
],
40+
"apps": [
41+
"infra",
42+
"agent"
43+
],
44+
"meta": {
45+
"agentVersion": "7.18.1",
46+
"installMethod": {
47+
"tool": "install_script",
48+
"toolVersion": "install_script",
49+
"installerVersion": "install_script-1.0.0"
50+
},
51+
"logsAgent": {
52+
"transport": "HTTP"
53+
}
54+
}
55+
}
56+
],
57+
"nextLink": null
58+
}
59+
}
60+
}
61+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "myMonitor"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor"
14+
}
15+
]
16+
}
17+
}
18+
}
19+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"requestBody": {
6+
"properties": {
7+
"accepted": true
8+
}
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default",
15+
"name": "default",
16+
"type": "Microsoft.Datadog/agreements",
17+
"properties": {
18+
"publisher": "pubid1",
19+
"product": "offid1",
20+
"plan": "planid1",
21+
"licenseTextLink": "test.licenseLink1",
22+
"privacyPolicyLink": "test.privacyPolicyLink1",
23+
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
24+
"signature": "ASDFSDAFWEFASDGWERLWER",
25+
"accepted": true
26+
}
27+
}
28+
}
29+
}
30+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1",
12+
"name": "planid1",
13+
"type": "Microsoft.Datadog/agreements",
14+
"properties": {
15+
"publisher": "pubid1",
16+
"product": "offid1",
17+
"plan": "planid1",
18+
"licenseTextLink": "test.licenseLink1",
19+
"privacyPolicyLink": "test.privacyPolicyLink1",
20+
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
21+
"signature": "ASDFSDAFWEFASDGWERLWER",
22+
"accepted": false
23+
}
24+
},
25+
{
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2",
27+
"name": "planid2",
28+
"type": "Microsoft.Datadog/agreements",
29+
"properties": {
30+
"publisher": "pubid2",
31+
"product": "offid2",
32+
"plan": "planid2",
33+
"licenseTextLink": "test.licenseLin2k",
34+
"privacyPolicyLink": "test.privacyPolicyLink2",
35+
"retrieveDatetime": "2017-08-14T11:33:07.12132Z",
36+
"signature": "ASDFSDAFWEFASDGWERLWER",
37+
"accepted": false
38+
}
39+
}
40+
],
41+
"nextLink": null
42+
}
43+
}
44+
}
45+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "myMonitor"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault",
14+
"sendingMetrics": true,
15+
"reasonForMetricsStatus": "CapturedByRules",
16+
"sendingLogs": true,
17+
"reasonForLogsStatus": "CapturedByRules"
18+
}
19+
]
20+
}
21+
}
22+
}
23+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-06-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "myMonitor",
7+
"requestBody": {
8+
"name": "myMonitor",
9+
"sku": {
10+
"name": "free_Monthly"
11+
},
12+
"properties": {
13+
"monitoringStatus": "Enabled",
14+
"datadogOrganizationProperties": {
15+
"name": "myOrg",
16+
"id": "myOrg123",
17+
"subscription": "pro",
18+
"linkingAuthCode": "someAuthCode",
19+
"linkingClientId": "00000000-0000-0000-0000-000000000000",
20+
"enterpriseAppId": "00000000-0000-0000-0000-000000000000"
21+
},
22+
"userInfo": {
23+
"name": "Alice",
24+
"emailAddress": "alice@microsoft.com",
25+
"phoneNumber": "123-456-7890"
26+
}
27+
},
28+
"tags": {
29+
"Environment": "Dev"
30+
},
31+
"location": "West US"
32+
}
33+
},
34+
"responses": {
35+
"200": {
36+
"body": {
37+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
38+
"name": "myMonitor",
39+
"type": "Microsoft.Datadog/monitors",
40+
"sku": {
41+
"name": "free_Monthly"
42+
},
43+
"properties": {
44+
"provisioningState": "Succeeded",
45+
"monitoringStatus": "Enabled",
46+
"datadogOrganizationProperties": {
47+
"name": "myOrg",
48+
"id": "myOrg123",
49+
"linkingAuthCode": null,
50+
"linkingClientId": null,
51+
"enterpriseAppId": null
52+
},
53+
"liftrResourceCategory": "MonitorLogs",
54+
"liftrResourcePreference": 1
55+
},
56+
"tags": {
57+
"Environment": "Dev"
58+
},
59+
"location": "West US"
60+
}
61+
},
62+
"201": {
63+
"body": {
64+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
65+
"name": "myMonitor",
66+
"type": "Microsoft.Datadog/monitors",
67+
"sku": {
68+
"name": "free_Monthly"
69+
},
70+
"properties": {
71+
"provisioningState": "Accepted",
72+
"monitoringStatus": "Enabled",
73+
"datadogOrganizationProperties": {
74+
"name": "myOrg",
75+
"id": "myOrg123"
76+
},
77+
"liftrResourceCategory": "MonitorLogs",
78+
"liftrResourcePreference": 1
79+
},
80+
"tags": {
81+
"Environment": "Dev"
82+
},
83+
"location": "West US"
84+
}
85+
}
86+
}
87+
}

0 commit comments

Comments
 (0)