@itentialopensource/adapter-centreon 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 (126) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +170 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +13198 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/AccessControl/action.json +25 -0
  28. package/entities/AccessControl/schema.json +19 -0
  29. package/entities/Acknowledgement/action.json +351 -0
  30. package/entities/Acknowledgement/schema.json +90 -0
  31. package/entities/Administration/action.json +290 -0
  32. package/entities/Administration/mockdatafiles/listonevaultconfigurationbyitsid-default.json +9 -0
  33. package/entities/Administration/schema.json +54 -0
  34. package/entities/Authentication/action.json +126 -0
  35. package/entities/Authentication/mockdatafiles/providersConfigurations-default.json +26 -0
  36. package/entities/Authentication/schema.json +35 -0
  37. package/entities/Check/action.json +124 -0
  38. package/entities/Check/schema.json +57 -0
  39. package/entities/Comment/action.json +24 -0
  40. package/entities/Comment/schema.json +19 -0
  41. package/entities/Downtime/action.json +291 -0
  42. package/entities/Downtime/schema.json +98 -0
  43. package/entities/Gorgone/action.json +45 -0
  44. package/entities/Gorgone/mockdatafiles/gorgonepollerresponsestoken-default.json +398 -0
  45. package/entities/Gorgone/schema.json +42 -0
  46. package/entities/Host/action.json +46 -0
  47. package/entities/Host/schema.json +53 -0
  48. package/entities/HostCategory/action.json +106 -0
  49. package/entities/HostCategory/schema.json +45 -0
  50. package/entities/HostGroup/action.json +107 -0
  51. package/entities/HostGroup/schema.json +78 -0
  52. package/entities/HostSeverity/action.json +65 -0
  53. package/entities/HostSeverity/schema.json +32 -0
  54. package/entities/HostTemplate/action.json +25 -0
  55. package/entities/HostTemplate/schema.json +19 -0
  56. package/entities/Icons/action.json +25 -0
  57. package/entities/Icons/schema.json +19 -0
  58. package/entities/MetaService/action.json +67 -0
  59. package/entities/MetaService/schema.json +43 -0
  60. package/entities/Metrics/action.json +109 -0
  61. package/entities/Metrics/schema.json +56 -0
  62. package/entities/MonitoringServer/action.json +172 -0
  63. package/entities/MonitoringServer/schema.json +48 -0
  64. package/entities/NotificationPolicy/action.json +67 -0
  65. package/entities/NotificationPolicy/schema.json +54 -0
  66. package/entities/Platform/action.json +86 -0
  67. package/entities/Platform/schema.json +22 -0
  68. package/entities/Proxy/action.json +45 -0
  69. package/entities/Proxy/schema.json +20 -0
  70. package/entities/Resource/action.json +67 -0
  71. package/entities/Resource/schema.json +164 -0
  72. package/entities/Service/action.json +67 -0
  73. package/entities/Service/schema.json +54 -0
  74. package/entities/ServiceCategory/action.json +66 -0
  75. package/entities/ServiceCategory/schema.json +21 -0
  76. package/entities/ServiceGroup/action.json +107 -0
  77. package/entities/ServiceGroup/schema.json +89 -0
  78. package/entities/ServiceSeverity/action.json +65 -0
  79. package/entities/ServiceSeverity/schema.json +32 -0
  80. package/entities/Severity/action.json +46 -0
  81. package/entities/Severity/schema.json +31 -0
  82. package/entities/Submit/action.json +84 -0
  83. package/entities/Submit/schema.json +55 -0
  84. package/entities/TimePeriod/action.json +106 -0
  85. package/entities/TimePeriod/schema.json +23 -0
  86. package/entities/Timeline/action.json +46 -0
  87. package/entities/Timeline/schema.json +53 -0
  88. package/entities/Topology/action.json +65 -0
  89. package/entities/Topology/schema.json +32 -0
  90. package/entities/User/action.json +171 -0
  91. package/entities/User/schema.json +48 -0
  92. package/entities/UserFilters/action.json +84 -0
  93. package/entities/UserFilters/schema.json +44 -0
  94. package/error.json +190 -0
  95. package/package.json +87 -0
  96. package/pronghorn.json +9146 -0
  97. package/propertiesDecorators.json +14 -0
  98. package/propertiesSchema.json +1248 -0
  99. package/refs?service=git-upload-pack +0 -0
  100. package/report/Centreon Monitoring tool.yml-OpenApi3Json.json +20770 -0
  101. package/report/creationReport.json +1400 -0
  102. package/sampleProperties.json +195 -0
  103. package/test/integration/adapterTestBasicGet.js +83 -0
  104. package/test/integration/adapterTestConnectivity.js +93 -0
  105. package/test/integration/adapterTestIntegration.js +4456 -0
  106. package/test/unit/adapterBaseTestUnit.js +949 -0
  107. package/test/unit/adapterTestUnit.js +5654 -0
  108. package/utils/adapterInfo.js +206 -0
  109. package/utils/addAuth.js +94 -0
  110. package/utils/artifactize.js +146 -0
  111. package/utils/basicGet.js +50 -0
  112. package/utils/checkMigrate.js +63 -0
  113. package/utils/entitiesToDB.js +178 -0
  114. package/utils/findPath.js +74 -0
  115. package/utils/methodDocumentor.js +225 -0
  116. package/utils/modify.js +154 -0
  117. package/utils/packModificationScript.js +35 -0
  118. package/utils/patches2bundledDeps.js +90 -0
  119. package/utils/pre-commit.sh +32 -0
  120. package/utils/removeHooks.js +20 -0
  121. package/utils/setup.js +33 -0
  122. package/utils/tbScript.js +246 -0
  123. package/utils/tbUtils.js +490 -0
  124. package/utils/testRunner.js +298 -0
  125. package/utils/troubleshootingAdapter.js +195 -0
  126. package/workflows/README.md +3 -0
@@ -0,0 +1,164 @@
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": "listallresourcesincludinghostsandservices",
12
+ "enum": [
13
+ "listallresourcesincludinghostsandservices",
14
+ "getaHostresourcetypedetail",
15
+ "getaServiceresourcetypedetail"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ },
19
+ "sortBy": {
20
+ "type": "object",
21
+ "description": "Sort the resulted data by its properties",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "sort_by"
29
+ },
30
+ "hostgroupNames": {
31
+ "type": "array",
32
+ "description": "Filter the resources by host group names",
33
+ "parse": false,
34
+ "encode": false,
35
+ "encrypt": {
36
+ "type": "AES",
37
+ "key": ""
38
+ },
39
+ "external_name": "hostgroup_names"
40
+ },
41
+ "servicegroupNames": {
42
+ "type": "array",
43
+ "description": "Filter the resources by service group names",
44
+ "parse": false,
45
+ "encode": false,
46
+ "encrypt": {
47
+ "type": "AES",
48
+ "key": ""
49
+ },
50
+ "external_name": "servicegroup_names"
51
+ },
52
+ "serviceCategoryNames": {
53
+ "type": "array",
54
+ "description": "Filter the resources by service category names",
55
+ "parse": false,
56
+ "encode": false,
57
+ "encrypt": {
58
+ "type": "AES",
59
+ "key": ""
60
+ },
61
+ "external_name": "service_category_names"
62
+ },
63
+ "hostCategoryNames": {
64
+ "type": "array",
65
+ "description": "Filter the resources by host category names",
66
+ "parse": false,
67
+ "encode": false,
68
+ "encrypt": {
69
+ "type": "AES",
70
+ "key": ""
71
+ },
72
+ "external_name": "host_category_names"
73
+ },
74
+ "hostSeverityNames": {
75
+ "type": "array",
76
+ "description": "Filter the resources by host severity names",
77
+ "parse": false,
78
+ "encode": false,
79
+ "encrypt": {
80
+ "type": "AES",
81
+ "key": ""
82
+ },
83
+ "external_name": "host_severity_names"
84
+ },
85
+ "serviceSeverityNames": {
86
+ "type": "array",
87
+ "description": "Filter the resources by service severity names",
88
+ "parse": false,
89
+ "encode": false,
90
+ "encrypt": {
91
+ "type": "AES",
92
+ "key": ""
93
+ },
94
+ "external_name": "service_severity_names"
95
+ },
96
+ "hostSeverityLevels": {
97
+ "type": "array",
98
+ "description": "Filter the resources by host severity levels",
99
+ "parse": false,
100
+ "encode": false,
101
+ "encrypt": {
102
+ "type": "AES",
103
+ "key": ""
104
+ },
105
+ "external_name": "host_severity_levels"
106
+ },
107
+ "serviceSeverityLevels": {
108
+ "type": "array",
109
+ "description": "Filter the resources by service severity levels",
110
+ "parse": false,
111
+ "encode": false,
112
+ "encrypt": {
113
+ "type": "AES",
114
+ "key": ""
115
+ },
116
+ "external_name": "service_severity_levels"
117
+ },
118
+ "monitoringServerNames": {
119
+ "type": "array",
120
+ "description": "Filter the resources by monitoring server names",
121
+ "parse": false,
122
+ "encode": false,
123
+ "encrypt": {
124
+ "type": "AES",
125
+ "key": ""
126
+ },
127
+ "external_name": "monitoring_server_names"
128
+ },
129
+ "statusTypes": {
130
+ "type": "array",
131
+ "description": "Filter the resources by status types",
132
+ "parse": false,
133
+ "encode": false,
134
+ "encrypt": {
135
+ "type": "AES",
136
+ "key": ""
137
+ },
138
+ "external_name": "status_types"
139
+ },
140
+ "hostId": {
141
+ "type": "number",
142
+ "description": "ID of the host",
143
+ "parse": false,
144
+ "encode": false,
145
+ "encrypt": {
146
+ "type": "AES",
147
+ "key": ""
148
+ },
149
+ "external_name": "host_id"
150
+ },
151
+ "serviceId": {
152
+ "type": "number",
153
+ "description": "ID of the service",
154
+ "parse": false,
155
+ "encode": false,
156
+ "encrypt": {
157
+ "type": "AES",
158
+ "key": ""
159
+ },
160
+ "external_name": "service_id"
161
+ }
162
+ },
163
+ "definitions": {}
164
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listallservices",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/monitoring/services?{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": "listservicesrelatedtoahost",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/monitoring/hosts/{pathv1}/services?{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": "getaservice",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/monitoring/hosts/{pathv1}/services/{pathv2}?{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
+ }
@@ -0,0 +1,54 @@
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": "listallservices",
12
+ "enum": [
13
+ "listallservices",
14
+ "listservicesrelatedtoahost",
15
+ "getaservice"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ },
19
+ "sortBy": {
20
+ "type": "object",
21
+ "description": "Sort the resulted data by its properties",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "sort_by"
29
+ },
30
+ "hostId": {
31
+ "type": "number",
32
+ "description": "ID of the host",
33
+ "parse": false,
34
+ "encode": false,
35
+ "encrypt": {
36
+ "type": "AES",
37
+ "key": ""
38
+ },
39
+ "external_name": "host_id"
40
+ },
41
+ "serviceId": {
42
+ "type": "number",
43
+ "description": "ID of the service",
44
+ "parse": false,
45
+ "encode": false,
46
+ "encrypt": {
47
+ "type": "AES",
48
+ "key": ""
49
+ },
50
+ "external_name": "service_id"
51
+ }
52
+ },
53
+ "definitions": {}
54
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listservicecategories",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/configuration/services/categories?{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": "createaservicecategory",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/configuration/services/categories?{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": "listallrealTimeservicecategories",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/monitoring/services/categories?{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
+ }
@@ -0,0 +1,21 @@
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": "listservicecategories",
12
+ "enum": [
13
+ "listservicecategories",
14
+ "createaservicecategory",
15
+ "listallrealTimeservicecategories"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listallservicegroups",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/configuration/services/groups?{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": "addaservicegroup",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/configuration/services/groups?{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": "deleteahostgroup1",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/configuration/services/groups/{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": "getservicegroupsbyhostidandserviceid",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/monitoring/hosts/{pathv1}/services/{pathv2}/servicegroups?{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": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "getListallservicegroups",
87
+ "protocol": "REST",
88
+ "method": "GET",
89
+ "entitypath": "{base_path}/{version}/monitoring/servicegroups?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "sendGetBody": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": ""
103
+ }
104
+ ]
105
+ }
106
+ ]
107
+ }
@@ -0,0 +1,89 @@
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": "listallservicegroups",
12
+ "enum": [
13
+ "listallservicegroups",
14
+ "addaservicegroup",
15
+ "deleteahostgroup1",
16
+ "getservicegroupsbyhostidandserviceid",
17
+ "getListallservicegroups"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ },
21
+ "servicegroupId": {
22
+ "type": "number",
23
+ "description": "ID of the service group",
24
+ "parse": false,
25
+ "encode": false,
26
+ "encrypt": {
27
+ "type": "AES",
28
+ "key": ""
29
+ },
30
+ "external_name": "servicegroup_id"
31
+ },
32
+ "hostId": {
33
+ "type": "number",
34
+ "description": "ID of the host",
35
+ "parse": false,
36
+ "encode": false,
37
+ "encrypt": {
38
+ "type": "AES",
39
+ "key": ""
40
+ },
41
+ "external_name": "host_id"
42
+ },
43
+ "serviceId": {
44
+ "type": "number",
45
+ "description": "ID of the service",
46
+ "parse": false,
47
+ "encode": false,
48
+ "encrypt": {
49
+ "type": "AES",
50
+ "key": ""
51
+ },
52
+ "external_name": "service_id"
53
+ },
54
+ "showService": {
55
+ "type": "boolean",
56
+ "description": "Allows to display services belonging to items",
57
+ "parse": false,
58
+ "encode": false,
59
+ "encrypt": {
60
+ "type": "AES",
61
+ "key": ""
62
+ },
63
+ "external_name": "show_service"
64
+ },
65
+ "showHost": {
66
+ "type": "boolean",
67
+ "description": "Allows to display hosts belonging to items",
68
+ "parse": false,
69
+ "encode": false,
70
+ "encrypt": {
71
+ "type": "AES",
72
+ "key": ""
73
+ },
74
+ "external_name": "show_host"
75
+ },
76
+ "sortBy": {
77
+ "type": "object",
78
+ "description": "Sort the resulted data by its properties",
79
+ "parse": false,
80
+ "encode": false,
81
+ "encrypt": {
82
+ "type": "AES",
83
+ "key": ""
84
+ },
85
+ "external_name": "sort_by"
86
+ }
87
+ },
88
+ "definitions": {}
89
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listallserviceseverities",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/configuration/services/severities?{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": "createaserviceseverity",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/configuration/services/severities?{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": "deleteaserviceseverity",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/configuration/services/severities/{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
+ }
@@ -0,0 +1,32 @@
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": "listallserviceseverities",
12
+ "enum": [
13
+ "listallserviceseverities",
14
+ "createaserviceseverity",
15
+ "deleteaserviceseverity"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ },
19
+ "serviceSeverityId": {
20
+ "type": "number",
21
+ "description": "ID of existing service severity configuration",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "service_severity_id"
29
+ }
30
+ },
31
+ "definitions": {}
32
+ }