@itentialopensource/adapter-datadog 0.7.4 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SYSTEMINFO.md +8 -1
- package/TAB1.md +5 -0
- package/TAB2.md +45 -3017
- package/metadata.json +19 -5
- package/package.json +4 -6
- package/propertiesSchema.json +5 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +146 -146
- package/report/adapterInfo.json +4 -4
- package/report/sample-openapi.json +156 -0
- package/report/updateReport1714079379399.json +120 -0
- package/sampleProperties.json +1 -0
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +1 -3
- /package/report/{adapter-openapi.yaml → sample-openapi.yaml} +0 -0
package/metadata.json
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
"vendor": "Datadog",
|
|
5
5
|
"product": "Datadog",
|
|
6
6
|
"osVersion": [],
|
|
7
|
-
"apiVersions": [
|
|
7
|
+
"apiVersions": [
|
|
8
|
+
"1.0.0"
|
|
9
|
+
],
|
|
8
10
|
"iapVersions": [
|
|
9
11
|
"2021.1.x",
|
|
10
12
|
"2021.2.x",
|
|
@@ -28,20 +30,32 @@
|
|
|
28
30
|
"isDeprecated": false
|
|
29
31
|
},
|
|
30
32
|
"brokerSince": "",
|
|
33
|
+
"authMethods": [],
|
|
31
34
|
"documentation": {
|
|
32
35
|
"storeLink": "",
|
|
33
36
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-datadog",
|
|
34
37
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/telemetry-analytics/adapter-datadog",
|
|
35
38
|
"docLink": "https://docs.itential.com/opensource/docs/datadog",
|
|
36
39
|
"demoLinks": [],
|
|
37
|
-
"trainingLinks": [
|
|
40
|
+
"trainingLinks": [
|
|
41
|
+
{
|
|
42
|
+
"title": "Itential Academy",
|
|
43
|
+
"link": "https://www.itential.com/itential-academy/"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
38
46
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
39
47
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
40
48
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
41
49
|
"webLink": "https://www.itential.com/adapters/datadog/",
|
|
42
|
-
"vendorLink": "",
|
|
43
|
-
"productLink": "",
|
|
44
|
-
"apiLinks": [
|
|
50
|
+
"vendorLink": "https://www.datadoghq.com/",
|
|
51
|
+
"productLink": "https://www.datadoghq.com/",
|
|
52
|
+
"apiLinks": [
|
|
53
|
+
{
|
|
54
|
+
"title": "API documents for datadog",
|
|
55
|
+
"link": "https://docs.datadoghq.com/api/latest/",
|
|
56
|
+
"public": true
|
|
57
|
+
}
|
|
58
|
+
]
|
|
45
59
|
},
|
|
46
60
|
"assets": [],
|
|
47
61
|
"relatedItems": {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-datadog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "This adapter integrates with system: Datadog.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Datadog",
|
|
7
7
|
"wizardVersion": "2.44.7",
|
|
8
|
-
"engineVersion": "1.67.
|
|
8
|
+
"engineVersion": "1.67.16",
|
|
9
9
|
"adapterType": "http",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
17
17
|
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
18
18
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
19
|
-
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
20
19
|
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
|
21
20
|
"adapter:install": "npm i && node utils/tbScript.js install",
|
|
22
21
|
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
|
@@ -50,10 +49,10 @@
|
|
|
50
49
|
},
|
|
51
50
|
"repository": {
|
|
52
51
|
"type": "git",
|
|
53
|
-
"url": "git@gitlab.com:itentialopensource/adapters/
|
|
52
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-datadog.git"
|
|
54
53
|
},
|
|
55
54
|
"author": "Itential",
|
|
56
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/
|
|
55
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-datadog#readme",
|
|
57
56
|
"dependencies": {
|
|
58
57
|
"@itentialopensource/adapter-utils": "^5.3.10",
|
|
59
58
|
"acorn": "^8.10.0",
|
|
@@ -66,7 +65,6 @@
|
|
|
66
65
|
"mocha": "^10.3.0",
|
|
67
66
|
"mocha-param": "^2.0.1",
|
|
68
67
|
"mongodb": "^4.16.0",
|
|
69
|
-
"nyc": "^15.1.0",
|
|
70
68
|
"ping": "^0.4.4",
|
|
71
69
|
"prompts": "^2.4.2",
|
|
72
70
|
"readline-sync": "^1.4.10",
|
package/propertiesSchema.json
CHANGED
|
@@ -945,6 +945,11 @@
|
|
|
945
945
|
"devicebroker": {
|
|
946
946
|
"type": "object",
|
|
947
947
|
"properties": {
|
|
948
|
+
"enabled": {
|
|
949
|
+
"type": "boolean",
|
|
950
|
+
"description": "Whether or not the device broker calls have been mapped",
|
|
951
|
+
"default": false
|
|
952
|
+
},
|
|
948
953
|
"getDevice": {
|
|
949
954
|
"type": "array",
|
|
950
955
|
"description": "Broker call(s) to getDevice",
|
|
Binary file
|
|
@@ -1,156 +1,156 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
"paths": {
|
|
8
|
-
"": {
|
|
9
|
-
"post": {
|
|
10
|
-
"operationId": "addTagsToAHost",
|
|
11
|
-
"responses": {
|
|
12
|
-
"200": {
|
|
13
|
-
"description": "Successful operation",
|
|
14
|
-
"content": {
|
|
15
|
-
"application/json": {
|
|
16
|
-
"schema": {
|
|
17
|
-
"title": "result",
|
|
18
|
-
"type": "object"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
2
|
+
"openapi": "3.0.2",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "adapter-datadog",
|
|
5
|
+
"version": "1.0.0"
|
|
23
6
|
},
|
|
24
|
-
"
|
|
25
|
-
{
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"title": "applicationKey",
|
|
40
|
-
"type": "string"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"requestBody": {
|
|
45
|
-
"content": {
|
|
46
|
-
"application/json": {
|
|
47
|
-
"schema": {
|
|
48
|
-
"type": "object"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"get": {
|
|
55
|
-
"operationId": "getHostTags",
|
|
56
|
-
"responses": {
|
|
57
|
-
"200": {
|
|
58
|
-
"description": "Successful operation",
|
|
59
|
-
"content": {
|
|
60
|
-
"application/json": {
|
|
61
|
-
"schema": {
|
|
62
|
-
"title": "result",
|
|
63
|
-
"type": "object"
|
|
7
|
+
"paths": {
|
|
8
|
+
"": {
|
|
9
|
+
"post": {
|
|
10
|
+
"operationId": "addTagsToAHost",
|
|
11
|
+
"responses": {
|
|
12
|
+
"200": {
|
|
13
|
+
"description": "Successful operation",
|
|
14
|
+
"content": {
|
|
15
|
+
"application/json": {
|
|
16
|
+
"schema": {
|
|
17
|
+
"title": "result",
|
|
18
|
+
"type": "object"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
64
22
|
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"200": {
|
|
94
|
-
"description": "Successful operation",
|
|
95
|
-
"content": {
|
|
96
|
-
"application/json": {
|
|
97
|
-
"schema": {
|
|
98
|
-
"title": "result",
|
|
99
|
-
"type": "object"
|
|
23
|
+
},
|
|
24
|
+
"parameters": [
|
|
25
|
+
{
|
|
26
|
+
"name": "apiKey",
|
|
27
|
+
"in": "query",
|
|
28
|
+
"required": true,
|
|
29
|
+
"schema": {
|
|
30
|
+
"title": "apiKey",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "applicationKey",
|
|
36
|
+
"in": "query",
|
|
37
|
+
"required": true,
|
|
38
|
+
"schema": {
|
|
39
|
+
"title": "applicationKey",
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"requestBody": {
|
|
45
|
+
"content": {
|
|
46
|
+
"application/json": {
|
|
47
|
+
"schema": {
|
|
48
|
+
"type": "object"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
100
51
|
}
|
|
101
52
|
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
53
|
+
},
|
|
54
|
+
"get": {
|
|
55
|
+
"operationId": "getHostTags",
|
|
56
|
+
"responses": {
|
|
57
|
+
"200": {
|
|
58
|
+
"description": "Successful operation",
|
|
59
|
+
"content": {
|
|
60
|
+
"application/json": {
|
|
61
|
+
"schema": {
|
|
62
|
+
"title": "result",
|
|
63
|
+
"type": "object"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"parameters": [
|
|
70
|
+
{
|
|
71
|
+
"name": "apiKey",
|
|
72
|
+
"in": "query",
|
|
73
|
+
"required": true,
|
|
74
|
+
"schema": {
|
|
75
|
+
"title": "apiKey",
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "applicationKey",
|
|
81
|
+
"in": "query",
|
|
82
|
+
"required": true,
|
|
83
|
+
"schema": {
|
|
84
|
+
"title": "applicationKey",
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"put": {
|
|
91
|
+
"operationId": "sendServices",
|
|
92
|
+
"responses": {
|
|
93
|
+
"200": {
|
|
94
|
+
"description": "Successful operation",
|
|
95
|
+
"content": {
|
|
96
|
+
"application/json": {
|
|
97
|
+
"schema": {
|
|
98
|
+
"title": "result",
|
|
99
|
+
"type": "object"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"requestBody": {
|
|
106
|
+
"content": {
|
|
107
|
+
"application/json": {
|
|
108
|
+
"schema": {
|
|
109
|
+
"type": "object"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
125
112
|
}
|
|
126
113
|
}
|
|
114
|
+
},
|
|
115
|
+
"delete": {
|
|
116
|
+
"operationId": "removeHostTags",
|
|
117
|
+
"responses": {
|
|
118
|
+
"200": {
|
|
119
|
+
"description": "Successful operation",
|
|
120
|
+
"content": {
|
|
121
|
+
"application/json": {
|
|
122
|
+
"schema": {
|
|
123
|
+
"title": "result",
|
|
124
|
+
"type": "object"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"parameters": [
|
|
131
|
+
{
|
|
132
|
+
"name": "apiKey",
|
|
133
|
+
"in": "query",
|
|
134
|
+
"required": true,
|
|
135
|
+
"schema": {
|
|
136
|
+
"title": "apiKey",
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "applicationKey",
|
|
142
|
+
"in": "query",
|
|
143
|
+
"required": true,
|
|
144
|
+
"schema": {
|
|
145
|
+
"title": "applicationKey",
|
|
146
|
+
"type": "string"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
]
|
|
127
150
|
}
|
|
128
151
|
}
|
|
129
152
|
},
|
|
130
|
-
"
|
|
131
|
-
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"required": true,
|
|
135
|
-
"schema": {
|
|
136
|
-
"title": "apiKey",
|
|
137
|
-
"type": "string"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "applicationKey",
|
|
142
|
-
"in": "query",
|
|
143
|
-
"required": true,
|
|
144
|
-
"schema": {
|
|
145
|
-
"title": "applicationKey",
|
|
146
|
-
"type": "string"
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"components": {
|
|
154
|
-
"schemas": {}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
153
|
+
"components": {
|
|
154
|
+
"schemas": {}
|
|
155
|
+
}
|
|
156
|
+
}
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"configLines":
|
|
2
|
+
"version": "0.7.4",
|
|
3
|
+
"configLines": 9391,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 15890,
|
|
6
|
-
"testLines":
|
|
6
|
+
"testLines": 14002,
|
|
7
7
|
"testCases": 749,
|
|
8
|
-
"totalCodeLines":
|
|
8
|
+
"totalCodeLines": 31675,
|
|
9
9
|
"wfTasks": 153
|
|
10
10
|
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.2",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "adapter-datadog",
|
|
5
|
+
"version": "1.0.0"
|
|
6
|
+
},
|
|
7
|
+
"paths": {
|
|
8
|
+
"": {
|
|
9
|
+
"post": {
|
|
10
|
+
"operationId": "addTagsToAHost",
|
|
11
|
+
"responses": {
|
|
12
|
+
"200": {
|
|
13
|
+
"description": "Successful operation",
|
|
14
|
+
"content": {
|
|
15
|
+
"application/json": {
|
|
16
|
+
"schema": {
|
|
17
|
+
"title": "result",
|
|
18
|
+
"type": "object"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"parameters": [
|
|
25
|
+
{
|
|
26
|
+
"name": "apiKey",
|
|
27
|
+
"in": "query",
|
|
28
|
+
"required": true,
|
|
29
|
+
"schema": {
|
|
30
|
+
"title": "apiKey",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "applicationKey",
|
|
36
|
+
"in": "query",
|
|
37
|
+
"required": true,
|
|
38
|
+
"schema": {
|
|
39
|
+
"title": "applicationKey",
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"requestBody": {
|
|
45
|
+
"content": {
|
|
46
|
+
"application/json": {
|
|
47
|
+
"schema": {
|
|
48
|
+
"type": "object"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"get": {
|
|
55
|
+
"operationId": "getHostTags",
|
|
56
|
+
"responses": {
|
|
57
|
+
"200": {
|
|
58
|
+
"description": "Successful operation",
|
|
59
|
+
"content": {
|
|
60
|
+
"application/json": {
|
|
61
|
+
"schema": {
|
|
62
|
+
"title": "result",
|
|
63
|
+
"type": "object"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"parameters": [
|
|
70
|
+
{
|
|
71
|
+
"name": "apiKey",
|
|
72
|
+
"in": "query",
|
|
73
|
+
"required": true,
|
|
74
|
+
"schema": {
|
|
75
|
+
"title": "apiKey",
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "applicationKey",
|
|
81
|
+
"in": "query",
|
|
82
|
+
"required": true,
|
|
83
|
+
"schema": {
|
|
84
|
+
"title": "applicationKey",
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"put": {
|
|
91
|
+
"operationId": "sendServices",
|
|
92
|
+
"responses": {
|
|
93
|
+
"200": {
|
|
94
|
+
"description": "Successful operation",
|
|
95
|
+
"content": {
|
|
96
|
+
"application/json": {
|
|
97
|
+
"schema": {
|
|
98
|
+
"title": "result",
|
|
99
|
+
"type": "object"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"requestBody": {
|
|
106
|
+
"content": {
|
|
107
|
+
"application/json": {
|
|
108
|
+
"schema": {
|
|
109
|
+
"type": "object"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"delete": {
|
|
116
|
+
"operationId": "removeHostTags",
|
|
117
|
+
"responses": {
|
|
118
|
+
"200": {
|
|
119
|
+
"description": "Successful operation",
|
|
120
|
+
"content": {
|
|
121
|
+
"application/json": {
|
|
122
|
+
"schema": {
|
|
123
|
+
"title": "result",
|
|
124
|
+
"type": "object"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"parameters": [
|
|
131
|
+
{
|
|
132
|
+
"name": "apiKey",
|
|
133
|
+
"in": "query",
|
|
134
|
+
"required": true,
|
|
135
|
+
"schema": {
|
|
136
|
+
"title": "apiKey",
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "applicationKey",
|
|
142
|
+
"in": "query",
|
|
143
|
+
"required": true,
|
|
144
|
+
"schema": {
|
|
145
|
+
"title": "applicationKey",
|
|
146
|
+
"type": "string"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"components": {
|
|
154
|
+
"schemas": {}
|
|
155
|
+
}
|
|
156
|
+
}
|