Skip to content

Commit

Permalink
[Datadog] Add 2021-03-01 stable version (Azure#13330)
Browse files Browse the repository at this point in the history
* [Datadog] Add 2021-03-01 stable version

* Update readme

* Fix

* Update

* Fix

* Update

* Prettier

* Revert preview version

* Update versions

* Update

* Add validation for monitor resource name

* Fix LintDiff

* Revert
  • Loading branch information
limingu authored and mkarmark committed Jul 20, 2021
1 parent 6c7d0ad commit d0e7870
Show file tree
Hide file tree
Showing 29 changed files with 2,807 additions and 4 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"createdBy": "john@example.com",
"name": "<API_KEY_NAME>",
"key": "1111111111111111aaaaaaaaaaaaaaaa",
"created": "2019-04-05 09:20:30"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"createdBy": "john@example.com",
"name": "<API_KEY_NAME>",
"key": "1111111111111111aaaaaaaaaaaaaaaa",
"created": "2019-04-05 09:20:30"
},
{
"createdBy": "jane@example.com",
"name": "<API_KEY_NAME_2>",
"key": "2111111111111111aaaaaaaaaaaaaaaa",
"created": "2019-04-05 09:19:53"
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"requestBody": {
"key": "1111111111111111aaaaaaaaaaaaaaaa"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "vm1",
"aliases": [
"vm1",
"65f2dd83-95ae-4f56-b6aa-a5dafc05f4cd"
],
"apps": [
"ntp",
"agent"
],
"meta": {
"agentVersion": "7.19.2",
"installMethod": {
"tool": "install_script",
"toolVersion": "install_script",
"installerVersion": "install_script-1.0.0"
},
"logsAgent": {
"transport": ""
}
}
},
{
"name": "vm2",
"aliases": [
"vm2",
"df631d9a-8178-4580-bf60-c697a5e8df4d"
],
"apps": [
"infra",
"agent"
],
"meta": {
"agentVersion": "7.18.1",
"installMethod": {
"tool": "install_script",
"toolVersion": "install_script",
"installerVersion": "install_script-1.0.0"
},
"logsAgent": {
"transport": "HTTP"
}
}
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"requestBody": {
"properties": {
"accepted": true
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default",
"name": "default",
"type": "Microsoft.Datadog/agreements",
"properties": {
"publisher": "pubid1",
"product": "offid1",
"plan": "planid1",
"licenseTextLink": "test.licenseLink1",
"privacyPolicyLink": "test.privacyPolicyLink1",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1",
"name": "planid1",
"type": "Microsoft.Datadog/agreements",
"properties": {
"publisher": "pubid1",
"product": "offid1",
"plan": "planid1",
"licenseTextLink": "test.licenseLink1",
"privacyPolicyLink": "test.privacyPolicyLink1",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": false
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2",
"name": "planid2",
"type": "Microsoft.Datadog/agreements",
"properties": {
"publisher": "pubid2",
"product": "offid2",
"plan": "planid2",
"licenseTextLink": "test.licenseLin2k",
"privacyPolicyLink": "test.privacyPolicyLink2",
"retrieveDatetime": "2017-08-14T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": false
}
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault",
"sendingMetrics": true,
"reasonForMetricsStatus": "CapturedByRules",
"sendingLogs": true,
"reasonForLogsStatus": "CapturedByRules"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"requestBody": {
"name": "myMonitor",
"sku": {
"name": "free_Monthly"
},
"properties": {
"monitoringStatus": "Enabled",
"datadogOrganizationProperties": {
"name": "myOrg",
"subscription": "pro",
"linkingAuthCode": "someAuthCode",
"linkingClientId": "00000000-0000-0000-0000-000000000000",
"enterpriseAppId": "00000000-0000-0000-0000-000000000000"
},
"userInfo": {
"name": "Alice",
"emailAddress": "alice@microsoft.com",
"phoneNumber": "123-456-7890"
}
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Datadog/monitors",
"sku": {
"name": "free_Monthly"
},
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled",
"datadogOrganizationProperties": {
"name": "myOrg",
"id": "myOrg123",
"linkingAuthCode": null,
"linkingClientId": null,
"enterpriseAppId": null
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 1
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Datadog/monitors",
"sku": {
"name": "free_Monthly"
},
"properties": {
"provisioningState": "Accepted",
"monitoringStatus": "Enabled",
"datadogOrganizationProperties": {
"name": "myOrg",
"id": "myOrg123"
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 1
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2021-03-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Datadog/monitors",
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled",
"datadogOrganizationProperties": {
"name": "myOrg",
"id": "myOrg123",
"linkingAuthCode": null,
"linkingClientId": null,
"enterpriseAppId": null
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 1
},
"tags": {
"Environment": "Dev"
},
"location": "West US"
}
}
}
}
Loading

0 comments on commit d0e7870

Please sign in to comment.