@itentialopensource/adapter-paragon_insights 0.1.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 (180) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +2925 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +46322 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/Administration/action.json +24 -0
  33. package/entities/Administration/schema.json +19 -0
  34. package/entities/Authentication/action.json +64 -0
  35. package/entities/Authentication/schema.json +21 -0
  36. package/entities/Config/action.json +4586 -0
  37. package/entities/Config/mockdatafiles/createHealthbotDynamicTagging-default.json +6 -0
  38. package/entities/Config/mockdatafiles/createHealthbotIngestSettingsTaggingProfiles-default.json +4 -0
  39. package/entities/Config/mockdatafiles/createHealthbotIngestTaggingProfiles-default.json +3 -0
  40. package/entities/Config/mockdatafiles/retrieveConfigurationJobs-default.json +22 -0
  41. package/entities/Config/mockdatafiles/retrieveFilesHelperFiles-default.json +4 -0
  42. package/entities/Config/mockdatafiles/retrieveHealthbotDynamicTagging-default.json +3 -0
  43. package/entities/Config/mockdatafiles/retrieveHealthbotIngestByoiDefaultPluginTliveKafkas-default.json +3 -0
  44. package/entities/Config/mockdatafiles/retrieveHealthbotIngestByoiIngestMappings-default.json +4 -0
  45. package/entities/Config/mockdatafiles/retrieveHealthbotIngestFrequencyProfile-default.json +6 -0
  46. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSettingsByoiDefaultPluginTliveKafkas-default.json +4 -0
  47. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSettingsByoiIngestMappings-default.json +4 -0
  48. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSettingsFrequencyProfile-default.json +4 -0
  49. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSettingsTaggingProfiles-default.json +5 -0
  50. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSnmpNotificationV3UsmUsernames-default.json +6 -0
  51. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSnmpNotificationV3UsmUsers-default.json +604 -0
  52. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSyslogHeaderPatternIds-default.json +4 -0
  53. package/entities/Config/mockdatafiles/retrieveHealthbotIngestSyslogHeaderPatterns-default.json +44 -0
  54. package/entities/Config/mockdatafiles/retrieveHealthbotIngestTaggingProfiles-default.json +4 -0
  55. package/entities/Config/mockdatafiles/retrieveHealthbotOrganizationOrganization-default.json +5 -0
  56. package/entities/Config/mockdatafiles/retrieveHealthbotTopicResourceResource-default.json +4 -0
  57. package/entities/Config/mockdatafiles/retrieveIcebergIngestFlowTemplateIds-default.json +6 -0
  58. package/entities/Config/mockdatafiles/retrieveIcebergIngestSettingsFlowTemplateIds-default.json +4 -0
  59. package/entities/Config/mockdatafiles/retrieveIcebergIngestSettingsSyslogPatternIds-default.json +6 -0
  60. package/entities/Config/mockdatafiles/retrieveIcebergIngestSettingsSyslogPatternSetIds-default.json +5 -0
  61. package/entities/Config/mockdatafiles/retrieveIcebergIngestSettingsSyslogPatternSets-default.json +12 -0
  62. package/entities/Config/mockdatafiles/retrieveIcebergIngestSettingsSyslogPatterns-default.json +113 -0
  63. package/entities/Config/mockdatafiles/retrieveIcebergIngestSyslogPatternIds-default.json +3 -0
  64. package/entities/Config/mockdatafiles/retrieveIcebergIngestSyslogPatternSetIds-default.json +6 -0
  65. package/entities/Config/mockdatafiles/retrieveIcebergIngestSyslogPatternSets-default.json +27 -0
  66. package/entities/Config/mockdatafiles/retrieveIcebergIngestSyslogPatterns-default.json +151 -0
  67. package/entities/Config/mockdatafiles/retrieveIcebergProfileSecurityCaProfiles-default.json +5 -0
  68. package/entities/Config/mockdatafiles/retrieveIcebergProfileSecurityLocalCertificates-default.json +4 -0
  69. package/entities/Config/mockdatafiles/retrieveIcebergProfileSecuritySshKeyProfiles-default.json +3 -0
  70. package/entities/Config/mockdatafiles/retrieveSensors-default.json +4 -0
  71. package/entities/Config/mockdatafiles/updateHealthbotDynamicTagging-default.json +5 -0
  72. package/entities/Config/mockdatafiles/updateHealthbotIngestSettingsTaggingProfiles-default.json +4 -0
  73. package/entities/Config/mockdatafiles/updateHealthbotIngestTaggingProfiles-default.json +4 -0
  74. package/entities/Config/schema.json +452 -0
  75. package/entities/Configuration/action.json +2948 -0
  76. package/entities/Configuration/mockdatafiles/retrieveIcebergDeviceDevice-default.json +4 -0
  77. package/entities/Configuration/mockdatafiles/retrieveIcebergDeviceGroupDeviceGroup-default.json +4 -0
  78. package/entities/Configuration/mockdatafiles/retrieveIcebergNetworkGroupNetworkGroup-default.json +4 -0
  79. package/entities/Configuration/mockdatafiles/retrieveIcebergNotificationNotification-default.json +4 -0
  80. package/entities/Configuration/mockdatafiles/retrieveIcebergPlaybookPlaybook-default.json +4 -0
  81. package/entities/Configuration/mockdatafiles/retrieveIcebergRetentionPolicyRetentionPolicy-default.json +4 -0
  82. package/entities/Configuration/mockdatafiles/retrieveIcebergTopicRuleRule-default.json +4 -0
  83. package/entities/Configuration/mockdatafiles/retrieveIcebergTopicTopic-default.json +4 -0
  84. package/entities/Configuration/schema.json +361 -0
  85. package/entities/Data/action.json +67 -0
  86. package/entities/Data/mockdatafiles/retrieveDataDatabaseTable-default.json +8 -0
  87. package/entities/Data/mockdatafiles/retrieveDataDatabaseTableColumnByTableName-default.json +4 -0
  88. package/entities/Data/mockdatafiles/retrieveDataDatabaseTagsByTableName-default.json +4 -0
  89. package/entities/Data/schema.json +76 -0
  90. package/entities/DataStore/action.json +85 -0
  91. package/entities/DataStore/schema.json +33 -0
  92. package/entities/Debug/action.json +65 -0
  93. package/entities/Debug/mockdatafiles/retrieveDebugForScenario-default.json +14 -0
  94. package/entities/Debug/mockdatafiles/retrieveDebugJobs-default.json +10 -0
  95. package/entities/Debug/schema.json +43 -0
  96. package/entities/DeployedDeviceDetails/action.json +24 -0
  97. package/entities/DeployedDeviceDetails/schema.json +19 -0
  98. package/entities/Documentation/action.json +46 -0
  99. package/entities/Documentation/schema.json +20 -0
  100. package/entities/Event/action.json +130 -0
  101. package/entities/Event/mockdatafiles/retrieveEvent-default.json +20 -0
  102. package/entities/Event/mockdatafiles/retrieveEventByEventName-default.json +8 -0
  103. package/entities/Event/mockdatafiles/retrieveEventByEventNameDeviceGroup-default.json +14 -0
  104. package/entities/Event/mockdatafiles/retrieveEventByEventNameNetworkGroup-default.json +14 -0
  105. package/entities/Event/mockdatafiles/retrieveEventDeviceGroup-default.json +14 -0
  106. package/entities/Event/mockdatafiles/retrieveEventNetworkGroup-default.json +14 -0
  107. package/entities/Event/schema.json +101 -0
  108. package/entities/Events/action.json +25 -0
  109. package/entities/Events/mockdatafiles/retrieveEvents-default.json +26 -0
  110. package/entities/Events/schema.json +41 -0
  111. package/entities/Facts/action.json +67 -0
  112. package/entities/Facts/schema.json +43 -0
  113. package/entities/FieldCapture/action.json +25 -0
  114. package/entities/FieldCapture/schema.json +19 -0
  115. package/entities/Grafana/action.json +66 -0
  116. package/entities/Grafana/schema.json +32 -0
  117. package/entities/Health/action.json +25 -0
  118. package/entities/Health/schema.json +19 -0
  119. package/entities/HealthTree/action.json +67 -0
  120. package/entities/HealthTree/schema.json +54 -0
  121. package/entities/Inspect/action.json +24 -0
  122. package/entities/Inspect/schema.json +19 -0
  123. package/entities/InstanceScheduleState/action.json +45 -0
  124. package/entities/InstanceScheduleState/schema.json +42 -0
  125. package/entities/License/action.json +189 -0
  126. package/entities/License/mockdatafiles/createIcebergAddLicenseFromFile-default.json +3 -0
  127. package/entities/License/mockdatafiles/retrieveIcebergGetAllLicenseId-default.json +4 -0
  128. package/entities/License/mockdatafiles/updateIcebergReplaceLicense-default.json +3 -0
  129. package/entities/License/schema.json +49 -0
  130. package/entities/Logs/action.json +88 -0
  131. package/entities/Logs/schema.json +66 -0
  132. package/entities/Organization/action.json +166 -0
  133. package/entities/Organization/schema.json +59 -0
  134. package/entities/Services/action.json +126 -0
  135. package/entities/Services/mockdatafiles/retrieveServicesDeviceGroupsDeviceGroupDeviceGroup-default.json +4 -0
  136. package/entities/Services/mockdatafiles/retrieveServicesNetworkGroup-default.json +4 -0
  137. package/entities/Services/schema.json +46 -0
  138. package/entities/System/action.json +150 -0
  139. package/entities/System/schema.json +47 -0
  140. package/entities/Workflow/action.json +187 -0
  141. package/entities/Workflow/mockdatafiles/retrieveHealthbotWorkflowWorkflow-default.json +6 -0
  142. package/entities/Workflow/schema.json +38 -0
  143. package/entities/WorkflowInstance/action.json +146 -0
  144. package/entities/WorkflowInstance/schema.json +47 -0
  145. package/entities/WorkflowStatistics/action.json +25 -0
  146. package/entities/WorkflowStatistics/schema.json +19 -0
  147. package/error.json +190 -0
  148. package/package.json +87 -0
  149. package/pronghorn.json +21194 -0
  150. package/propertiesDecorators.json +14 -0
  151. package/propertiesSchema.json +1248 -0
  152. package/refs?service=git-upload-pack +0 -0
  153. package/report/adapterInfo.json +10 -0
  154. package/report/creationReport.json +2565 -0
  155. package/report/insightsopneapi.json +42358 -0
  156. package/sampleProperties.json +195 -0
  157. package/test/integration/adapterTestBasicGet.js +83 -0
  158. package/test/integration/adapterTestConnectivity.js +93 -0
  159. package/test/integration/adapterTestIntegration.js +12269 -0
  160. package/test/unit/adapterBaseTestUnit.js +949 -0
  161. package/test/unit/adapterTestUnit.js +14656 -0
  162. package/utils/adapterInfo.js +206 -0
  163. package/utils/addAuth.js +94 -0
  164. package/utils/artifactize.js +146 -0
  165. package/utils/basicGet.js +50 -0
  166. package/utils/checkMigrate.js +63 -0
  167. package/utils/entitiesToDB.js +178 -0
  168. package/utils/findPath.js +74 -0
  169. package/utils/methodDocumentor.js +225 -0
  170. package/utils/modify.js +154 -0
  171. package/utils/packModificationScript.js +35 -0
  172. package/utils/patches2bundledDeps.js +90 -0
  173. package/utils/pre-commit.sh +32 -0
  174. package/utils/removeHooks.js +20 -0
  175. package/utils/setup.js +33 -0
  176. package/utils/tbScript.js +246 -0
  177. package/utils/tbUtils.js +490 -0
  178. package/utils/testRunner.js +298 -0
  179. package/utils/troubleshootingAdapter.js +195 -0
  180. package/workflows/README.md +3 -0
@@ -0,0 +1,126 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrieveServicesDeviceGroupsDeviceGroupDeviceGroup",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/config/services/device-group/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/retrieveServicesDeviceGroupsDeviceGroupDeviceGroup-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "deleteServicesDeviceGroupsDeviceGroupByDeviceGroupName",
26
+ "protocol": "REST",
27
+ "method": "DELETE",
28
+ "entitypath": "{base_path}/{version}/config/services/device-group/{pathv1}/?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "createServicesDeviceGroupsDeviceGroupByDeviceGroupName",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/config/services/device-group/{pathv1}/?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "retrieveServicesNetworkGroup",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/config/services/network-group/?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": "mockdatafiles/retrieveServicesNetworkGroup-default.json"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "deleteServicesNetworkGroupByNetworkGroupName",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/config/services/network-group/{pathv1}/?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "createServicesNetworkGroupByNetworkGroupName",
107
+ "protocol": "REST",
108
+ "method": "POST",
109
+ "entitypath": "{base_path}/{version}/config/services/network-group/{pathv1}/?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ }
@@ -0,0 +1,4 @@
1
+ [
2
+ "network-group-1",
3
+ "network-group-2"
4
+ ]
@@ -0,0 +1,46 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "retrieveServicesDeviceGroupsDeviceGroupDeviceGroup",
12
+ "enum": [
13
+ "retrieveServicesDeviceGroupsDeviceGroupDeviceGroup",
14
+ "deleteServicesDeviceGroupsDeviceGroupByDeviceGroupName",
15
+ "createServicesDeviceGroupsDeviceGroupByDeviceGroupName",
16
+ "retrieveServicesNetworkGroup",
17
+ "deleteServicesNetworkGroupByNetworkGroupName",
18
+ "createServicesNetworkGroupByNetworkGroupName"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ },
22
+ "deviceGroupName": {
23
+ "type": "string",
24
+ "description": "Name of device group",
25
+ "parse": false,
26
+ "encode": false,
27
+ "encrypt": {
28
+ "type": "AES",
29
+ "key": ""
30
+ },
31
+ "external_name": "device_group_name"
32
+ },
33
+ "networkGroupName": {
34
+ "type": "string",
35
+ "description": "Name of network group",
36
+ "parse": false,
37
+ "encode": false,
38
+ "encrypt": {
39
+ "type": "AES",
40
+ "key": ""
41
+ },
42
+ "external_name": "network_group_name"
43
+ }
44
+ },
45
+ "definitions": {}
46
+ }
@@ -0,0 +1,150 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrieveAvailableNodes",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/nodes/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "retrieveTsdbCounters",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/tsdb-counters/?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": ""
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "queryTsdb",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/tsdb/query?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": ""
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "queryTsdbPost",
68
+ "protocol": "REST",
69
+ "method": "POST",
70
+ "entitypath": "{base_path}/{version}/tsdb/query?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": ""
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "generateResourceDependencies",
88
+ "protocol": "REST",
89
+ "method": "GET",
90
+ "entitypath": "{base_path}/{version}/config/rca/generate-resource-dependencies?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "sendGetBody": false,
96
+ "requestDatatype": "JSON",
97
+ "responseDatatype": "JSON",
98
+ "headers": {},
99
+ "responseObjects": [
100
+ {
101
+ "type": "default",
102
+ "key": "",
103
+ "mockFile": ""
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "name": "retrieveSensorDeviceGroup",
109
+ "protocol": "REST",
110
+ "method": "GET",
111
+ "entitypath": "{base_path}/{version}/config/sensor/device-group/{pathv1}/?{query}",
112
+ "requestSchema": "schema.json",
113
+ "responseSchema": "schema.json",
114
+ "timeout": 0,
115
+ "sendEmpty": false,
116
+ "sendGetBody": false,
117
+ "requestDatatype": "JSON",
118
+ "responseDatatype": "JSON",
119
+ "headers": {},
120
+ "responseObjects": [
121
+ {
122
+ "type": "default",
123
+ "key": "",
124
+ "mockFile": ""
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "retrieveSystemDetails",
130
+ "protocol": "REST",
131
+ "method": "GET",
132
+ "entitypath": "{base_path}/{version}/system-details/?{query}",
133
+ "requestSchema": "schema.json",
134
+ "responseSchema": "schema.json",
135
+ "timeout": 0,
136
+ "sendEmpty": false,
137
+ "sendGetBody": false,
138
+ "requestDatatype": "JSON",
139
+ "responseDatatype": "JSON",
140
+ "headers": {},
141
+ "responseObjects": [
142
+ {
143
+ "type": "default",
144
+ "key": "",
145
+ "mockFile": ""
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "retrieveAvailableNodes",
12
+ "enum": [
13
+ "retrieveAvailableNodes",
14
+ "retrieveTsdbCounters",
15
+ "queryTsdb",
16
+ "queryTsdbPost",
17
+ "generateResourceDependencies",
18
+ "retrieveSensorDeviceGroup",
19
+ "retrieveSystemDetails"
20
+ ],
21
+ "external_name": "ph_request_type"
22
+ },
23
+ "deviceGroupName": {
24
+ "type": "string",
25
+ "description": "Device Group",
26
+ "parse": false,
27
+ "encode": false,
28
+ "encrypt": {
29
+ "type": "AES",
30
+ "key": ""
31
+ },
32
+ "external_name": "device_group_name"
33
+ },
34
+ "serviceName": {
35
+ "type": "string",
36
+ "description": "service name takes in the name of the service for which details are required.",
37
+ "parse": false,
38
+ "encode": false,
39
+ "encrypt": {
40
+ "type": "AES",
41
+ "key": ""
42
+ },
43
+ "external_name": "service_name"
44
+ }
45
+ },
46
+ "definitions": {}
47
+ }
@@ -0,0 +1,187 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrieveHealthbotWorkflowWorkflow",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/config/workflow/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/retrieveHealthbotWorkflowWorkflow-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "deleteHealthbotWorkflowWorkflowById",
26
+ "protocol": "REST",
27
+ "method": "DELETE",
28
+ "entitypath": "{base_path}/{version}/config/workflow/{pathv1}/?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "retrieveHealthbotWorkflowWorkflowById",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/config/workflow/{pathv1}/?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "createHealthbotWorkflowWorkflowById",
67
+ "protocol": "REST",
68
+ "method": "POST",
69
+ "entitypath": "{base_path}/{version}/config/workflow/{pathv1}/?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "updateHealthbotWorkflowWorkflowById",
87
+ "protocol": "REST",
88
+ "method": "PUT",
89
+ "entitypath": "{base_path}/{version}/config/workflow/{pathv1}/?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "deleteHealthbotWorkflowsWorkflowById",
107
+ "protocol": "REST",
108
+ "method": "DELETE",
109
+ "entitypath": "{base_path}/{version}/config/workflows/?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "retrieveHealthbotWorkflowsWorkflowById",
127
+ "protocol": "REST",
128
+ "method": "GET",
129
+ "entitypath": "{base_path}/{version}/config/workflows/?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "sendGetBody": false,
135
+ "requestDatatype": "JSON",
136
+ "responseDatatype": "JSON",
137
+ "headers": {},
138
+ "responseObjects": [
139
+ {
140
+ "type": "default",
141
+ "key": "",
142
+ "mockFile": ""
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "name": "createHealthbotWorkflowsWorkflowById",
148
+ "protocol": "REST",
149
+ "method": "POST",
150
+ "entitypath": "{base_path}/{version}/config/workflows/?{query}",
151
+ "requestSchema": "schema.json",
152
+ "responseSchema": "schema.json",
153
+ "timeout": 0,
154
+ "sendEmpty": false,
155
+ "requestDatatype": "JSON",
156
+ "responseDatatype": "JSON",
157
+ "headers": {},
158
+ "responseObjects": [
159
+ {
160
+ "type": "default",
161
+ "key": "",
162
+ "mockFile": ""
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "name": "updateHealthbotWorkflowsWorkflowById",
168
+ "protocol": "REST",
169
+ "method": "PUT",
170
+ "entitypath": "{base_path}/{version}/config/workflows/?{query}",
171
+ "requestSchema": "schema.json",
172
+ "responseSchema": "schema.json",
173
+ "timeout": 0,
174
+ "sendEmpty": false,
175
+ "requestDatatype": "JSON",
176
+ "responseDatatype": "JSON",
177
+ "headers": {},
178
+ "responseObjects": [
179
+ {
180
+ "type": "default",
181
+ "key": "",
182
+ "mockFile": ""
183
+ }
184
+ ]
185
+ }
186
+ ]
187
+ }
@@ -0,0 +1,6 @@
1
+ [
2
+ "string",
3
+ "string",
4
+ "string",
5
+ "string"
6
+ ]
@@ -0,0 +1,38 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "retrieveHealthbotWorkflowWorkflow",
12
+ "enum": [
13
+ "retrieveHealthbotWorkflowWorkflow",
14
+ "deleteHealthbotWorkflowWorkflowById",
15
+ "retrieveHealthbotWorkflowWorkflowById",
16
+ "createHealthbotWorkflowWorkflowById",
17
+ "updateHealthbotWorkflowWorkflowById",
18
+ "deleteHealthbotWorkflowsWorkflowById",
19
+ "retrieveHealthbotWorkflowsWorkflowById",
20
+ "createHealthbotWorkflowsWorkflowById",
21
+ "updateHealthbotWorkflowsWorkflowById"
22
+ ],
23
+ "external_name": "ph_request_type"
24
+ },
25
+ "workflowName": {
26
+ "type": "string",
27
+ "description": "ID of workflow-name",
28
+ "parse": false,
29
+ "encode": false,
30
+ "encrypt": {
31
+ "type": "AES",
32
+ "key": ""
33
+ },
34
+ "external_name": "workflow_name"
35
+ }
36
+ },
37
+ "definitions": {}
38
+ }