@itentialopensource/adapter-datadog 0.6.0 → 0.7.1

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.
Files changed (43) hide show
  1. package/CALLS.md +1800 -22
  2. package/CHANGELOG.md +16 -0
  3. package/CONTRIBUTING.md +1 -160
  4. package/ENHANCE.md +2 -2
  5. package/README.md +32 -23
  6. package/adapter.js +161 -333
  7. package/adapterBase.js +549 -879
  8. package/changelogs/CHANGELOG.md +86 -0
  9. package/metadata.json +49 -0
  10. package/package.json +25 -25
  11. package/pronghorn.json +1564 -1225
  12. package/propertiesSchema.json +431 -31
  13. package/refs?service=git-upload-pack +0 -0
  14. package/report/adapter-openapi.json +156 -0
  15. package/report/adapter-openapi.yaml +131 -0
  16. package/report/adapterInfo.json +8 -8
  17. package/report/updateReport1691508986112.json +120 -0
  18. package/report/updateReport1692202301848.json +120 -0
  19. package/report/updateReport1692203389397.json +120 -0
  20. package/report/updateReport1694469996136.json +120 -0
  21. package/report/updateReport1698423169409.json +120 -0
  22. package/sampleProperties.json +64 -3
  23. package/test/integration/adapterTestBasicGet.js +2 -4
  24. package/test/integration/adapterTestConnectivity.js +91 -42
  25. package/test/integration/adapterTestIntegration.js +130 -2
  26. package/test/unit/adapterBaseTestUnit.js +388 -313
  27. package/test/unit/adapterTestUnit.js +338 -112
  28. package/utils/adapterInfo.js +1 -1
  29. package/utils/addAuth.js +1 -1
  30. package/utils/artifactize.js +1 -1
  31. package/utils/checkMigrate.js +1 -1
  32. package/utils/entitiesToDB.js +2 -2
  33. package/utils/findPath.js +1 -1
  34. package/utils/methodDocumentor.js +273 -0
  35. package/utils/modify.js +13 -15
  36. package/utils/packModificationScript.js +1 -1
  37. package/utils/pre-commit.sh +2 -0
  38. package/utils/taskMover.js +309 -0
  39. package/utils/tbScript.js +89 -34
  40. package/utils/tbUtils.js +41 -21
  41. package/utils/testRunner.js +1 -1
  42. package/utils/troubleshootingAdapter.js +9 -6
  43. package/workflows/README.md +0 -3
Binary file
@@ -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,131 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: adapter-datadog
4
+ contact: {}
5
+ version: '1.0.0'
6
+ servers:
7
+ - url: https://{defaultHost}
8
+ variables:
9
+ defaultHost:
10
+ default: www.example.com
11
+ paths:
12
+ /:
13
+ post:
14
+ summary: addTagsToAHost
15
+ description: ''
16
+ operationId: addTagsToAHost
17
+ parameters:
18
+ - name: apiKey
19
+ in: query
20
+ description: ''
21
+ required: true
22
+ style: form
23
+ explode: true
24
+ schema:
25
+ type: string
26
+ - name: applicationKey
27
+ in: query
28
+ description: ''
29
+ required: true
30
+ style: form
31
+ explode: true
32
+ schema:
33
+ type: string
34
+ requestBody:
35
+ description: ''
36
+ content:
37
+ application/json:
38
+ schema:
39
+ type: object
40
+ required: false
41
+ responses:
42
+ '200':
43
+ description: Successful operation
44
+ headers: {}
45
+ content:
46
+ application/json:
47
+ schema:
48
+ type: object
49
+ deprecated: false
50
+ get:
51
+ summary: getHostTags
52
+ description: ''
53
+ operationId: getHostTags
54
+ parameters:
55
+ - name: apiKey
56
+ in: query
57
+ description: ''
58
+ required: true
59
+ style: form
60
+ explode: true
61
+ schema:
62
+ type: string
63
+ - name: applicationKey
64
+ in: query
65
+ description: ''
66
+ required: true
67
+ style: form
68
+ explode: true
69
+ schema:
70
+ type: string
71
+ responses:
72
+ '200':
73
+ description: Successful operation
74
+ headers: {}
75
+ content:
76
+ application/json:
77
+ schema:
78
+ type: object
79
+ deprecated: false
80
+ put:
81
+ summary: sendServices
82
+ description: ''
83
+ operationId: sendServices
84
+ parameters: []
85
+ requestBody:
86
+ description: ''
87
+ content:
88
+ application/json:
89
+ schema:
90
+ type: object
91
+ required: false
92
+ responses:
93
+ '200':
94
+ description: Successful operation
95
+ headers: {}
96
+ content:
97
+ application/json:
98
+ schema:
99
+ type: object
100
+ deprecated: false
101
+ delete:
102
+ summary: removeHostTags
103
+ description: ''
104
+ operationId: removeHostTags
105
+ parameters:
106
+ - name: apiKey
107
+ in: query
108
+ description: ''
109
+ required: true
110
+ style: form
111
+ explode: true
112
+ schema:
113
+ type: string
114
+ - name: applicationKey
115
+ in: query
116
+ description: ''
117
+ required: true
118
+ style: form
119
+ explode: true
120
+ schema:
121
+ type: string
122
+ responses:
123
+ '200':
124
+ description: Successful operation
125
+ headers: {}
126
+ content:
127
+ application/json:
128
+ schema:
129
+ type: object
130
+ deprecated: false
131
+ tags: []
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.5.4",
3
- "configLines": 8647,
4
- "scriptLines": 1707,
5
- "codeLines": 16392,
6
- "testLines": 13527,
7
- "testCases": 719,
8
- "totalCodeLines": 31626,
9
- "wfTasks": 145
2
+ "version": "0.6.0",
3
+ "configLines": 9386,
4
+ "scriptLines": 1783,
5
+ "codeLines": 15890,
6
+ "testLines": 14003,
7
+ "testCases": 749,
8
+ "totalCodeLines": 31676,
9
+ "wfTasks": 153
10
10
  }
@@ -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.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
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": 642
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": 8921
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": 3824
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": 1350
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": 14095
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
+ }
@@ -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.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
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": 642
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": 8921
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": 3824
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": 1350
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": 14095
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
+ }
@@ -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.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
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": 642
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": 8921
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": 3824
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": 1350
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": 14095
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
+ }