@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,33 @@
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": "deleteDataStore",
12
+ "enum": [
13
+ "deleteDataStore",
14
+ "retrieveDataStore",
15
+ "createDataStore",
16
+ "updateDataStore"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ },
20
+ "groupName": {
21
+ "type": "string",
22
+ "description": "Group name",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "group_name"
30
+ }
31
+ },
32
+ "definitions": {}
33
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrieveDebugForScenario",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/debug/scenario/{pathv1}/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/retrieveDebugForScenario-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "healthbotDebugGenerateConfiguration",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/debug/configuration/?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "retrieveDebugJobs",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "{base_path}/{version}/debug/jobs/?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "sendGetBody": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": "mockdatafiles/retrieveDebugJobs-default.json"
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ }
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "detail": "string",
4
+ "url": "string"
5
+ },
6
+ {
7
+ "detail": "string",
8
+ "url": "string"
9
+ },
10
+ {
11
+ "detail": "string",
12
+ "url": "string"
13
+ }
14
+ ]
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "job-id": "string",
4
+ "job-status": null,
5
+ "job-details": "string",
6
+ "debug-data": "string",
7
+ "debug-type": null,
8
+ "debug-name": "string"
9
+ }
10
+ ]
@@ -0,0 +1,43 @@
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": "retrieveDebugForScenario",
12
+ "enum": [
13
+ "retrieveDebugForScenario",
14
+ "healthbotDebugGenerateConfiguration",
15
+ "retrieveDebugJobs"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ },
19
+ "scenarioName": {
20
+ "type": "string",
21
+ "description": "Scenario name",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "scenario_name"
29
+ },
30
+ "jobId": {
31
+ "type": "string",
32
+ "description": "Id of Job",
33
+ "parse": false,
34
+ "encode": false,
35
+ "encrypt": {
36
+ "type": "AES",
37
+ "key": ""
38
+ },
39
+ "external_name": "job_id"
40
+ }
41
+ },
42
+ "definitions": {}
43
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrieveHealthbotDeviceDetailsByUuids",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/deployed-device-details/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "retrieveHealthbotDeviceDetailsByUuids",
12
+ "enum": [
13
+ "retrieveHealthbotDeviceDetailsByUuids"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "get",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/?{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": "retrieveInsightsApi",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/insights/?{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
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "get",
12
+ "enum": [
13
+ "get",
14
+ "retrieveInsightsApi"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrieveEvent",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/event/?{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/retrieveEvent-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "retrieveEventDeviceGroup",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/event/device-group/?{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": "mockdatafiles/retrieveEventDeviceGroup-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "retrieveEventByEventNameDeviceGroup",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/event/device-group/{pathv1}/?{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": "mockdatafiles/retrieveEventByEventNameDeviceGroup-default.json"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "retrieveEventNetworkGroup",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/event/network-group/?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": "mockdatafiles/retrieveEventNetworkGroup-default.json"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "retrieveEventByEventNameNetworkGroup",
89
+ "protocol": "REST",
90
+ "method": "GET",
91
+ "entitypath": "{base_path}/{version}/event/network-group/{pathv1}/?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "sendGetBody": false,
97
+ "requestDatatype": "JSON",
98
+ "responseDatatype": "JSON",
99
+ "headers": {},
100
+ "responseObjects": [
101
+ {
102
+ "type": "default",
103
+ "key": "",
104
+ "mockFile": "mockdatafiles/retrieveEventByEventNameNetworkGroup-default.json"
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "name": "retrieveEventByEventName",
110
+ "protocol": "REST",
111
+ "method": "GET",
112
+ "entitypath": "{base_path}/{version}/event/{pathv1}/?{query}",
113
+ "requestSchema": "schema.json",
114
+ "responseSchema": "schema.json",
115
+ "timeout": 0,
116
+ "sendEmpty": false,
117
+ "sendGetBody": false,
118
+ "requestDatatype": "JSON",
119
+ "responseDatatype": "JSON",
120
+ "headers": {},
121
+ "responseObjects": [
122
+ {
123
+ "type": "default",
124
+ "key": "",
125
+ "mockFile": "mockdatafiles/retrieveEventByEventName-default.json"
126
+ }
127
+ ]
128
+ }
129
+ ]
130
+ }
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "color": null,
4
+ "event_name": "string",
5
+ "frequency": 7,
6
+ "timestamp": "string"
7
+ },
8
+ {
9
+ "color": null,
10
+ "event_name": "string",
11
+ "frequency": 5,
12
+ "timestamp": "string"
13
+ },
14
+ {
15
+ "color": null,
16
+ "event_name": "string",
17
+ "frequency": 1,
18
+ "timestamp": "string"
19
+ }
20
+ ]
@@ -0,0 +1,8 @@
1
+ [
2
+ {
3
+ "color": null,
4
+ "event_name": "string",
5
+ "frequency": 4,
6
+ "timestamp": "string"
7
+ }
8
+ ]
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "color": null,
4
+ "event_name": "string",
5
+ "frequency": 10,
6
+ "timestamp": "string"
7
+ },
8
+ {
9
+ "color": null,
10
+ "event_name": "string",
11
+ "frequency": 1,
12
+ "timestamp": "string"
13
+ }
14
+ ]
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "color": null,
4
+ "event_name": "string",
5
+ "frequency": 4,
6
+ "timestamp": "string"
7
+ },
8
+ {
9
+ "color": null,
10
+ "event_name": "string",
11
+ "frequency": 8,
12
+ "timestamp": "string"
13
+ }
14
+ ]
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "color": null,
4
+ "event_name": "string",
5
+ "frequency": 7,
6
+ "timestamp": "string"
7
+ },
8
+ {
9
+ "color": null,
10
+ "event_name": "string",
11
+ "frequency": 3,
12
+ "timestamp": "string"
13
+ }
14
+ ]
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "color": null,
4
+ "event_name": "string",
5
+ "frequency": 4,
6
+ "timestamp": "string"
7
+ },
8
+ {
9
+ "color": null,
10
+ "event_name": "string",
11
+ "frequency": 6,
12
+ "timestamp": "string"
13
+ }
14
+ ]
@@ -0,0 +1,101 @@
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": "retrieveEvent",
12
+ "enum": [
13
+ "retrieveEvent",
14
+ "retrieveEventDeviceGroup",
15
+ "retrieveEventByEventNameDeviceGroup",
16
+ "retrieveEventNetworkGroup",
17
+ "retrieveEventByEventNameNetworkGroup",
18
+ "retrieveEventByEventName"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ },
22
+ "fromTimestamp": {
23
+ "type": "string",
24
+ "description": "Starting timestamp",
25
+ "parse": false,
26
+ "encode": false,
27
+ "encrypt": {
28
+ "type": "AES",
29
+ "key": ""
30
+ },
31
+ "external_name": "from_timestamp"
32
+ },
33
+ "deviceId": {
34
+ "type": "string",
35
+ "description": "device-id of the device for which events are requested",
36
+ "parse": false,
37
+ "encode": false,
38
+ "encrypt": {
39
+ "type": "AES",
40
+ "key": ""
41
+ },
42
+ "external_name": "device_id"
43
+ },
44
+ "toTimestamp": {
45
+ "type": "string",
46
+ "description": "Ending timestamp",
47
+ "parse": false,
48
+ "encode": false,
49
+ "encrypt": {
50
+ "type": "AES",
51
+ "key": ""
52
+ },
53
+ "external_name": "to_timestamp"
54
+ },
55
+ "deviceGroupName": {
56
+ "type": "string",
57
+ "description": "device-group-name of which the device is part",
58
+ "parse": false,
59
+ "encode": false,
60
+ "encrypt": {
61
+ "type": "AES",
62
+ "key": ""
63
+ },
64
+ "external_name": "device_group_name"
65
+ },
66
+ "eventName": {
67
+ "type": "string",
68
+ "description": "Name of event",
69
+ "parse": false,
70
+ "encode": false,
71
+ "encrypt": {
72
+ "type": "AES",
73
+ "key": ""
74
+ },
75
+ "external_name": "event_name"
76
+ },
77
+ "networkGroupName": {
78
+ "type": "string",
79
+ "description": "network_group_name of the network-group for which events are requested",
80
+ "parse": false,
81
+ "encode": false,
82
+ "encrypt": {
83
+ "type": "AES",
84
+ "key": ""
85
+ },
86
+ "external_name": "network_group_name"
87
+ },
88
+ "color" : {
89
+ "type": "string",
90
+ "description" : "Color of events",
91
+ "parse": false,
92
+ "encode": false,
93
+ "encrypt" : {
94
+ "type" : "AES",
95
+ "key": ""
96
+ },
97
+ "external_name" : "color"
98
+ }
99
+ },
100
+ "definitions": {}
101
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrieveEvents",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/events/?{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/retrieveEvents-default.json"
21
+ }
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "color": null,
4
+ "event_name": "string",
5
+ "frequency": 9,
6
+ "timestamp": "string"
7
+ },
8
+ {
9
+ "color": null,
10
+ "event_name": "string",
11
+ "frequency": 10,
12
+ "timestamp": "string"
13
+ },
14
+ {
15
+ "color": null,
16
+ "event_name": "string",
17
+ "frequency": 9,
18
+ "timestamp": "string"
19
+ },
20
+ {
21
+ "color": null,
22
+ "event_name": "string",
23
+ "frequency": 7,
24
+ "timestamp": "string"
25
+ }
26
+ ]