@itentialopensource/adapter-datadog 0.7.4 → 0.8.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/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.7.4",
3
+ "version": "0.8.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.14",
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",
@@ -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",
@@ -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
- "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
- }
2
+ "openapi": "3.0.2",
3
+ "info": {
4
+ "title": "adapter-datadog",
5
+ "version": "1.0.0"
23
6
  },
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"
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
- "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"
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
- "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"
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
- "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
- }
153
+ "components": {
154
+ "schemas": {}
155
+ }
156
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.6.0",
3
- "configLines": 9386,
2
+ "version": "0.7.4",
3
+ "configLines": 9391,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 15890,
6
- "testLines": 14003,
6
+ "testLines": 14002,
7
7
  "testCases": 749,
8
- "totalCodeLines": 31676,
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
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 17
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.3.10"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 78
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 344
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 647
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 8927
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 542
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 3825
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 137
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1453
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 14205
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 679
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }