@itentialopensource/adapter-nokia_nsp_network_management 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 (179) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +38 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +206 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +646 -0
  13. package/README.md +343 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +22 -0
  16. package/TAB1.md +14 -0
  17. package/TAB2.md +321 -0
  18. package/TROUBLESHOOT.md +47 -0
  19. package/adapter.js +11110 -0
  20. package/adapterBase.js +1452 -0
  21. package/entities/.generic/action.json +214 -0
  22. package/entities/.generic/schema.json +28 -0
  23. package/entities/.system/action.json +52 -0
  24. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  25. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  26. package/entities/.system/schema.json +19 -0
  27. package/entities/.system/schemaTokenReq.json +53 -0
  28. package/entities/.system/schemaTokenResp.json +31 -0
  29. package/entities/AddressPool/action.json +65 -0
  30. package/entities/AddressPool/mockdatafiles/getIPv4AddressPool-default.json +47 -0
  31. package/entities/AddressPool/mockdatafiles/obtainValueFromPool-default.json +23 -0
  32. package/entities/AddressPool/schema.json +32 -0
  33. package/entities/AuditAndAlignment/action.json +165 -0
  34. package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationDeployment-default.json +6 -0
  35. package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationTemplateAllDeployments-default.json +7 -0
  36. package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationTemplateMisalignedDeployments-default.json +7 -0
  37. package/entities/AuditAndAlignment/mockdatafiles/auditDeployment-default.json +7 -0
  38. package/entities/AuditAndAlignment/mockdatafiles/auditNodeDeployments-default.json +6 -0
  39. package/entities/AuditAndAlignment/mockdatafiles/auditTemplate-default.json +7 -0
  40. package/entities/AuditAndAlignment/mockdatafiles/checkAuditStatusCount-default.json +15 -0
  41. package/entities/AuditAndAlignment/mockdatafiles/getAuditDetails-default.json +9 -0
  42. package/entities/AuditAndAlignment/schema.json +26 -0
  43. package/entities/BaselineOperationsRestconfAPI/action.json +207 -0
  44. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/createBaselineDetector-default.json +35 -0
  45. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getAllBaselines-default.json +44 -0
  46. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getBaseline-default.json +24 -0
  47. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getBaselineDetector-default.json +15 -0
  48. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/patchBaselineDetector-default.json +13 -0
  49. package/entities/BaselineOperationsRestconfAPI/schema.json +39 -0
  50. package/entities/Brownfield/action.json +24 -0
  51. package/entities/Brownfield/mockdatafiles/discoverDeployments-default.json +7 -0
  52. package/entities/Brownfield/schema.json +19 -0
  53. package/entities/ConfigurationDeployments/action.json +207 -0
  54. package/entities/ConfigurationDeployments/mockdatafiles/createDeployment-default.json +7 -0
  55. package/entities/ConfigurationDeployments/mockdatafiles/createPortGroup-default.json +18 -0
  56. package/entities/ConfigurationDeployments/mockdatafiles/createPortGroupDirectory-default.json +16 -0
  57. package/entities/ConfigurationDeployments/mockdatafiles/deleteDeployments-default.json +7 -0
  58. package/entities/ConfigurationDeployments/mockdatafiles/getDeployments-default.json +322 -0
  59. package/entities/ConfigurationDeployments/mockdatafiles/getPortGroupFDN-default.json +18 -0
  60. package/entities/ConfigurationDeployments/mockdatafiles/getSpecificDeployment-default.json +43 -0
  61. package/entities/ConfigurationDeployments/mockdatafiles/replaceDeployment-default.json +7 -0
  62. package/entities/ConfigurationDeployments/mockdatafiles/updateDeploymentConfiguration-default.json +7 -0
  63. package/entities/ConfigurationDeployments/schema.json +28 -0
  64. package/entities/ConfigurationTemplates/action.json +85 -0
  65. package/entities/ConfigurationTemplates/mockdatafiles/createTemplate-default.json +4 -0
  66. package/entities/ConfigurationTemplates/mockdatafiles/getTemplates-default.json +195 -0
  67. package/entities/ConfigurationTemplates/schema.json +22 -0
  68. package/entities/DataTablesRetention/action.json +86 -0
  69. package/entities/DataTablesRetention/mockdatafiles/getBaselineAgeoutPolicySettings-default.json +22 -0
  70. package/entities/DataTablesRetention/mockdatafiles/getIndicatorAgeoutPolicySettings-default.json +16 -0
  71. package/entities/DataTablesRetention/schema.json +22 -0
  72. package/entities/IETFL2Model/action.json +67 -0
  73. package/entities/IETFL2Model/mockdatafiles/getL2TopologyAttributes-default.json +5 -0
  74. package/entities/IETFL2Model/mockdatafiles/getL2TopologyNodeTerminationPoints-default.json +69 -0
  75. package/entities/IETFL2Model/schema.json +21 -0
  76. package/entities/IETFL3Model/action.json +277 -0
  77. package/entities/IETFL3Model/mockdatafiles/getAllNodesInANetwork-default.json +207 -0
  78. package/entities/IETFL3Model/mockdatafiles/getL3TopologyAttribute-default.json +8 -0
  79. package/entities/IETFL3Model/mockdatafiles/getNetworkType-default.json +7 -0
  80. package/entities/IETFL3Model/mockdatafiles/getSpecificLinkInANetwork-default.json +67 -0
  81. package/entities/IETFL3Model/mockdatafiles/getSpecificNetwork-default.json +498 -0
  82. package/entities/IETFL3Model/mockdatafiles/getSpecificNodeInANetwork-default.json +56 -0
  83. package/entities/IETFL3Model/mockdatafiles/getSpecificTerminationPointsOfANode-default.json +17 -0
  84. package/entities/IETFL3Model/mockdatafiles/getSupportingLink-default.json +8 -0
  85. package/entities/IETFL3Model/mockdatafiles/getSupportingNetwork-default.json +7 -0
  86. package/entities/IETFL3Model/mockdatafiles/getSupportingTerminationPoint-default.json +9 -0
  87. package/entities/IETFL3Model/mockdatafiles/l3GETSRTopologyLinkAttributes-default.json +41 -0
  88. package/entities/IETFL3Model/mockdatafiles/l3GETSRTopologyNodeAttributes-default.json +16 -0
  89. package/entities/IETFL3Model/schema.json +42 -0
  90. package/entities/IETFLogicalInventoryRestconfAPI/action.json +235 -0
  91. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesConfig-default.json +14 -0
  92. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesUnnumbered-default.json +28 -0
  93. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesUnnumberedIntf-default.json +21 -0
  94. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesConfig-default.json +16 -0
  95. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesIPv4Addresses-default.json +39 -0
  96. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesIPv6Addresses-default.json +38 -0
  97. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesState-default.json +15 -0
  98. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicyNodeVersionEntity-default.json +797 -0
  99. package/entities/IETFLogicalInventoryRestconfAPI/schema.json +51 -0
  100. package/entities/IETFSAPTopology/action.json +67 -0
  101. package/entities/IETFSAPTopology/mockdatafiles/getIETFNetworkFromSpecificNode-default.json +483 -0
  102. package/entities/IETFSAPTopology/mockdatafiles/getSAPNetwork-default.json +9 -0
  103. package/entities/IETFSAPTopology/mockdatafiles/getSAPsOnASpecificNodeOfSpecificServiceType-default.json +153 -0
  104. package/entities/IETFSAPTopology/schema.json +21 -0
  105. package/entities/IndicatorRules/action.json +106 -0
  106. package/entities/IndicatorRules/mockdatafiles/getAllIndicatorRules-default.json +818 -0
  107. package/entities/IndicatorRules/mockdatafiles/getSpecificIndicatorRule-default.json +119 -0
  108. package/entities/IndicatorRules/schema.json +23 -0
  109. package/entities/IndicatorTemplates/action.json +106 -0
  110. package/entities/IndicatorTemplates/mockdatafiles/avgCPUAllNodesAllActions-default.json +105 -0
  111. package/entities/IndicatorTemplates/mockdatafiles/getAllIndicatorTemplates-default.json +512 -0
  112. package/entities/IndicatorTemplates/mockdatafiles/getSpecificIndicatorTemplate-default.json +88 -0
  113. package/entities/IndicatorTemplates/mockdatafiles/uPDATEIndicatorTemplate-default.json +48 -0
  114. package/entities/IndicatorTemplates/schema.json +23 -0
  115. package/entities/Intent/action.json +105 -0
  116. package/entities/Intent/mockdatafiles/getIntent-default.json +161 -0
  117. package/entities/Intent/mockdatafiles/synchronizeIntent-default.json +6 -0
  118. package/entities/Intent/schema.json +23 -0
  119. package/entities/IntentTypeManagement/action.json +65 -0
  120. package/entities/IntentTypeManagement/mockdatafiles/getIntentTypes-default.json +482 -0
  121. package/entities/IntentTypeManagement/mockdatafiles/importIntentTypeFromIntentManager-default.json +6 -0
  122. package/entities/IntentTypeManagement/mockdatafiles/removeIntentType-default.json +7 -0
  123. package/entities/IntentTypeManagement/schema.json +21 -0
  124. package/entities/LogicalInventoryRestconfAPI/action.json +107 -0
  125. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/nspInventoryFindWithFilter-default.json +528 -0
  126. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicy-default.json +4189 -0
  127. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicyNEAndVersionSpecific-default.json +1083 -0
  128. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPollingPolicyNESpecific-default.json +1113 -0
  129. package/entities/LogicalInventoryRestconfAPI/schema.json +34 -0
  130. package/entities/ManageZTPListFromDeviceAdministrator/action.json +85 -0
  131. package/entities/ManageZTPListFromDeviceAdministrator/mockdatafiles/getZTPListFromDeviceAdministrator-default.json +114 -0
  132. package/entities/ManageZTPListFromDeviceAdministrator/schema.json +33 -0
  133. package/entities/RouterNECorrelationMappingService/action.json +147 -0
  134. package/entities/RouterNECorrelationMappingService/mockdatafiles/getCorrelationPolicy-default.json +38 -0
  135. package/entities/RouterNECorrelationMappingService/mockdatafiles/getRouterNeMapping-default.json +32 -0
  136. package/entities/RouterNECorrelationMappingService/mockdatafiles/getSpecificMappingPolicy-default.json +32 -0
  137. package/entities/RouterNECorrelationMappingService/schema.json +47 -0
  138. package/entities/TemplateMigration/action.json +44 -0
  139. package/entities/TemplateMigration/mockdatafiles/cloneTemplate-default.json +7 -0
  140. package/entities/TemplateMigration/mockdatafiles/migrateDeployments-default.json +7 -0
  141. package/entities/TemplateMigration/schema.json +20 -0
  142. package/entities/UploadMappingFiles/action.json +45 -0
  143. package/entities/UploadMappingFiles/mockdatafiles/getIETFMappingFiles-default.json +953 -0
  144. package/entities/UploadMappingFiles/schema.json +31 -0
  145. package/error.json +190 -0
  146. package/metadata.json +61 -0
  147. package/package.json +81 -0
  148. package/pronghorn.json +5141 -0
  149. package/propertiesDecorators.json +14 -0
  150. package/propertiesSchema.json +1666 -0
  151. package/refs?service=git-upload-pack +0 -0
  152. package/report/creationReport.json +657 -0
  153. package/report/update-postman.json-OpenApi3Json.json +112049 -0
  154. package/report/updateReport1718639512342.json +120 -0
  155. package/sampleProperties.json +268 -0
  156. package/test/integration/adapterTestBasicGet.js +83 -0
  157. package/test/integration/adapterTestConnectivity.js +142 -0
  158. package/test/integration/adapterTestIntegration.js +3836 -0
  159. package/test/unit/adapterBaseTestUnit.js +1024 -0
  160. package/test/unit/adapterTestUnit.js +5403 -0
  161. package/utils/adapterInfo.js +206 -0
  162. package/utils/addAuth.js +94 -0
  163. package/utils/artifactize.js +146 -0
  164. package/utils/basicGet.js +50 -0
  165. package/utils/checkMigrate.js +63 -0
  166. package/utils/entitiesToDB.js +179 -0
  167. package/utils/findPath.js +74 -0
  168. package/utils/methodDocumentor.js +273 -0
  169. package/utils/modify.js +152 -0
  170. package/utils/packModificationScript.js +35 -0
  171. package/utils/patches2bundledDeps.js +90 -0
  172. package/utils/pre-commit.sh +32 -0
  173. package/utils/removeHooks.js +20 -0
  174. package/utils/setup.js +33 -0
  175. package/utils/taskMover.js +309 -0
  176. package/utils/tbScript.js +239 -0
  177. package/utils/tbUtils.js +489 -0
  178. package/utils/testRunner.js +298 -0
  179. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,512 @@
1
+ {
2
+ "nsp-indicator:rta-indicator-templates": {
3
+ "@": {
4
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates",
5
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates"
6
+ },
7
+ "template": [
8
+ {
9
+ "@": {
10
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template",
11
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']"
12
+ },
13
+ "name": "AvgCpuAllNodesAllActionsTemplate",
14
+ "description": "avg cpu from all nodes template",
15
+ "units-name": "%",
16
+ "telemetry-type": "telemetry:/base/system-info/system",
17
+ "formula": "avg({cpu-usage_avg})",
18
+ "counters": [
19
+ {
20
+ "@": {
21
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
22
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/counters[name='cpu-usage'][function='avg']"
23
+ },
24
+ "name": "cpu-usage",
25
+ "function": "avg"
26
+ }
27
+ ],
28
+ "thresholds": [
29
+ {
30
+ "@": {
31
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
32
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']"
33
+ },
34
+ "threshold-value-decimal": "20",
35
+ "direction": "increasing",
36
+ "actions": [
37
+ {
38
+ "@": {
39
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
40
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_kafka_action']"
41
+ },
42
+ "name": "template_threshold_20_increasing_kafka_action",
43
+ "type": "kafka",
44
+ "kafka": {
45
+ "@": {
46
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
47
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_kafka_action']/kafka"
48
+ },
49
+ "topic-name": "nsp-act-action-event",
50
+ "topic-content": "CPU is a rising"
51
+ }
52
+ },
53
+ {
54
+ "@": {
55
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
56
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_alarm_action']"
57
+ },
58
+ "name": "template_threshold_20_increasing_alarm_action",
59
+ "type": "alarm",
60
+ "alarm": {
61
+ "@": {
62
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/alarm",
63
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_alarm_action']/alarm"
64
+ },
65
+ "severity": "major"
66
+ }
67
+ },
68
+ {
69
+ "@": {
70
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
71
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_email_action']"
72
+ },
73
+ "name": "template_threshold_20_increasing_email_action",
74
+ "type": "email",
75
+ "email": {
76
+ "@": {
77
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/email",
78
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_email_action']/email"
79
+ },
80
+ "email-address": "userid@user.com",
81
+ "email-subject": "Hmmmmm, It's getting hot",
82
+ "email-content": "Your temperature is rising.",
83
+ "aggregation": false,
84
+ "period": 5,
85
+ "number-events": 5
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "@": {
94
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template",
95
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']"
96
+ },
97
+ "name": "MaxTempNfmp10.10.10.4Template",
98
+ "description": "\"max\" temp on '10.10.10.4' template",
99
+ "units-name": "deg C",
100
+ "telemetry-type": "telemetry:/base/hardware/temperature",
101
+ "formula": "max({temperature_avg})",
102
+ "counters": [
103
+ {
104
+ "@": {
105
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
106
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/counters[name='temperature'][function='avg']"
107
+ },
108
+ "name": "temperature",
109
+ "function": "avg"
110
+ }
111
+ ],
112
+ "thresholds": [
113
+ {
114
+ "@": {
115
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
116
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='60'][direction='increasing']"
117
+ },
118
+ "threshold-value-decimal": "60",
119
+ "direction": "increasing",
120
+ "actions": [
121
+ {
122
+ "@": {
123
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
124
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='60'][direction='increasing']/actions[name='template_threshold_60_increasing_kafka_action']"
125
+ },
126
+ "name": "template_threshold_60_increasing_kafka_action",
127
+ "type": "kafka",
128
+ "kafka": {
129
+ "@": {
130
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
131
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='60'][direction='increasing']/actions[name='template_threshold_60_increasing_kafka_action']/kafka"
132
+ },
133
+ "topic-name": "nsp-act-action-event",
134
+ "topic-content": "Temperature is a rising on 10.10.10.4"
135
+ }
136
+ },
137
+ {
138
+ "@": {
139
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
140
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='60'][direction='increasing']/actions[name='template_threshold_60_increasing_alarm_action']"
141
+ },
142
+ "name": "template_threshold_60_increasing_alarm_action",
143
+ "type": "alarm",
144
+ "alarm": {
145
+ "@": {
146
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/alarm",
147
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='60'][direction='increasing']/actions[name='template_threshold_60_increasing_alarm_action']/alarm"
148
+ },
149
+ "severity": "critical"
150
+ }
151
+ },
152
+ {
153
+ "@": {
154
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
155
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='60'][direction='increasing']/actions[name='template_threshold_60_increasing_email_action']"
156
+ },
157
+ "name": "template_threshold_60_increasing_email_action",
158
+ "type": "email",
159
+ "email": {
160
+ "@": {
161
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/email",
162
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MaxTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='60'][direction='increasing']/actions[name='template_threshold_60_increasing_email_action']/email"
163
+ },
164
+ "email-address": "userid@user.com",
165
+ "email-subject": "Hmmmmm, It's getting hot 10.10.10.4",
166
+ "email-content": "Your temperature is rising 10.10.10.4.",
167
+ "aggregation": false,
168
+ "period": 5,
169
+ "number-events": 5
170
+ }
171
+ }
172
+ ]
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "@": {
178
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template",
179
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']"
180
+ },
181
+ "name": "MinTempNfmp10.10.10.4Template",
182
+ "description": "min' temp\" on 10.10.10.4 template",
183
+ "units-name": "CELSIUS",
184
+ "telemetry-type": "telemetry:/base/hardware/temperature",
185
+ "formula": "min({temperature_avg})",
186
+ "counters": [
187
+ {
188
+ "@": {
189
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
190
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/counters[name='temperature'][function='avg']"
191
+ },
192
+ "name": "temperature",
193
+ "function": "avg"
194
+ }
195
+ ],
196
+ "thresholds": [
197
+ {
198
+ "@": {
199
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
200
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='50'][direction='increasing']"
201
+ },
202
+ "threshold-value-decimal": "50",
203
+ "direction": "increasing",
204
+ "actions": [
205
+ {
206
+ "@": {
207
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
208
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='50'][direction='increasing']/actions[name='template_threshold_50_increasing_kafka_action']"
209
+ },
210
+ "name": "template_threshold_50_increasing_kafka_action",
211
+ "type": "kafka",
212
+ "kafka": {
213
+ "@": {
214
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
215
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='50'][direction='increasing']/actions[name='template_threshold_50_increasing_kafka_action']/kafka"
216
+ },
217
+ "topic-name": "nsp-act-action-event",
218
+ "topic-content": "Temperature is a rising 10.10.10.4"
219
+ }
220
+ },
221
+ {
222
+ "@": {
223
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
224
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='50'][direction='increasing']/actions[name='template_threshold_50_increasing_alarm_action']"
225
+ },
226
+ "name": "template_threshold_50_increasing_alarm_action",
227
+ "type": "alarm",
228
+ "alarm": {
229
+ "@": {
230
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/alarm",
231
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='50'][direction='increasing']/actions[name='template_threshold_50_increasing_alarm_action']/alarm"
232
+ },
233
+ "severity": "major"
234
+ }
235
+ },
236
+ {
237
+ "@": {
238
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
239
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='50'][direction='increasing']/actions[name='template_threshold_50_increasing_email_action']"
240
+ },
241
+ "name": "template_threshold_50_increasing_email_action",
242
+ "type": "email",
243
+ "email": {
244
+ "@": {
245
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/email",
246
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='MinTempNfmp10.10.10.4Template']/thresholds[threshold-value-decimal='50'][direction='increasing']/actions[name='template_threshold_50_increasing_email_action']/email"
247
+ },
248
+ "email-address": "userid@user.com",
249
+ "email-subject": "Hmmmmm, It's getting hot 10.10.10.4",
250
+ "email-content": "Your temperature is rising 10.10.10.4",
251
+ "aggregation": false,
252
+ "period": 5,
253
+ "number-events": 5
254
+ }
255
+ }
256
+ ]
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "@": {
262
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template",
263
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']"
264
+ },
265
+ "name": "AvgTempNfmp10.10.10.5Template",
266
+ "description": "avg temp on 10.10.10.5 template",
267
+ "units-name": "deg C",
268
+ "telemetry-type": "telemetry:/base/hardware/temperature",
269
+ "formula": "avg({temperature_avg})",
270
+ "counters": [
271
+ {
272
+ "@": {
273
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
274
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/counters[name='temperature'][function='avg']"
275
+ },
276
+ "name": "temperature",
277
+ "function": "avg"
278
+ }
279
+ ],
280
+ "thresholds": [
281
+ {
282
+ "@": {
283
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
284
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/thresholds[threshold-value-decimal='40'][direction='increasing']"
285
+ },
286
+ "threshold-value-decimal": "40",
287
+ "direction": "increasing",
288
+ "actions": [
289
+ {
290
+ "@": {
291
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
292
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/thresholds[threshold-value-decimal='40'][direction='increasing']/actions[name='template_threshold_40_increasing_kafka_action']"
293
+ },
294
+ "name": "template_threshold_40_increasing_kafka_action",
295
+ "type": "kafka",
296
+ "kafka": {
297
+ "@": {
298
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
299
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/thresholds[threshold-value-decimal='40'][direction='increasing']/actions[name='template_threshold_40_increasing_kafka_action']/kafka"
300
+ },
301
+ "topic-name": "nsp-act-action-event",
302
+ "topic-content": "Temperature is a rising 10.10.10.5"
303
+ }
304
+ },
305
+ {
306
+ "@": {
307
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
308
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/thresholds[threshold-value-decimal='40'][direction='increasing']/actions[name='template_threshold_40_increasing_alarm_action']"
309
+ },
310
+ "name": "template_threshold_40_increasing_alarm_action",
311
+ "type": "alarm",
312
+ "alarm": {
313
+ "@": {
314
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/alarm",
315
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/thresholds[threshold-value-decimal='40'][direction='increasing']/actions[name='template_threshold_40_increasing_alarm_action']/alarm"
316
+ },
317
+ "severity": "minor"
318
+ }
319
+ },
320
+ {
321
+ "@": {
322
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
323
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/thresholds[threshold-value-decimal='40'][direction='increasing']/actions[name='template_threshold_40_increasing_email_action']"
324
+ },
325
+ "name": "template_threshold_40_increasing_email_action",
326
+ "type": "email",
327
+ "email": {
328
+ "@": {
329
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/email",
330
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgTempNfmp10.10.10.5Template']/thresholds[threshold-value-decimal='40'][direction='increasing']/actions[name='template_threshold_40_increasing_email_action']/email"
331
+ },
332
+ "email-address": "userid@user.com",
333
+ "email-subject": "Hmmmmm, It\"s getting hot 10.10.10.5",
334
+ "email-content": "Your temperature is rising 10.10.10.5",
335
+ "aggregation": true,
336
+ "period": 3,
337
+ "number-events": 4
338
+ }
339
+ }
340
+ ]
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "@": {
346
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template",
347
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']"
348
+ },
349
+ "name": "SumOctets 10.10.10.5 Template",
350
+ "description": "sum tx, rx of all ports on 10.10.10.5 template",
351
+ "units-name": "Total octets",
352
+ "telemetry-type": "telemetry:/base/interfaces/interface",
353
+ "formula": "sum({transmitted-octets-periodic_sum} + {received-octets-periodic_sum})",
354
+ "counters": [
355
+ {
356
+ "@": {
357
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
358
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/counters[name='transmitted-octets-periodic'][function='sum']"
359
+ },
360
+ "name": "transmitted-octets-periodic",
361
+ "function": "sum"
362
+ },
363
+ {
364
+ "@": {
365
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
366
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/counters[name='received-octets-periodic'][function='sum']"
367
+ },
368
+ "name": "received-octets-periodic",
369
+ "function": "sum"
370
+ }
371
+ ],
372
+ "thresholds": [
373
+ {
374
+ "@": {
375
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
376
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/thresholds[threshold-value-decimal='100000'][direction='increasing']"
377
+ },
378
+ "threshold-value-decimal": "100000",
379
+ "direction": "increasing",
380
+ "actions": [
381
+ {
382
+ "@": {
383
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
384
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/thresholds[threshold-value-decimal='100000'][direction='increasing']/actions[name='template_threshold_100000_increasing_kafka_action']"
385
+ },
386
+ "name": "template_threshold_100000_increasing_kafka_action",
387
+ "type": "kafka",
388
+ "kafka": {
389
+ "@": {
390
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
391
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/thresholds[threshold-value-decimal='100000'][direction='increasing']/actions[name='template_threshold_100000_increasing_kafka_action']/kafka"
392
+ },
393
+ "topic-name": "nsp-act-action-event",
394
+ "topic-content": "10.10.10.5 sum(tx+rx) increasing"
395
+ }
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "@": {
401
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
402
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/thresholds[threshold-value-decimal='1000'][direction='decreasing']"
403
+ },
404
+ "threshold-value-decimal": "1000",
405
+ "direction": "decreasing",
406
+ "actions": [
407
+ {
408
+ "@": {
409
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
410
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/thresholds[threshold-value-decimal='1000'][direction='decreasing']/actions[name='template_threshold_1000_decreasing_kafka_action']"
411
+ },
412
+ "name": "template_threshold_1000_decreasing_kafka_action",
413
+ "type": "kafka",
414
+ "kafka": {
415
+ "@": {
416
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
417
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.5 Template']/thresholds[threshold-value-decimal='1000'][direction='decreasing']/actions[name='template_threshold_1000_decreasing_kafka_action']/kafka"
418
+ },
419
+ "topic-name": "nsp-act-action-event",
420
+ "topic-content": "10.10.10.5 sum(tx+rx) decreasing"
421
+ }
422
+ }
423
+ ]
424
+ }
425
+ ]
426
+ },
427
+ {
428
+ "@": {
429
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template",
430
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']"
431
+ },
432
+ "name": "SumOctets 10.10.10.4 Two Ports Template",
433
+ "description": "sum tx, rx of port 1/1/1 and 1/1/2 on 10.10.10.4 template",
434
+ "units-name": "Total octets",
435
+ "telemetry-type": "telemetry:/base/interfaces/interface",
436
+ "formula": "sum({received-octets-periodic_sum}+{transmitted-octets-periodic_sum})",
437
+ "counters": [
438
+ {
439
+ "@": {
440
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
441
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/counters[name='transmitted-octets-periodic'][function='sum']"
442
+ },
443
+ "name": "transmitted-octets-periodic",
444
+ "function": "sum"
445
+ },
446
+ {
447
+ "@": {
448
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
449
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/counters[name='received-octets-periodic'][function='sum']"
450
+ },
451
+ "name": "received-octets-periodic",
452
+ "function": "sum"
453
+ }
454
+ ],
455
+ "thresholds": [
456
+ {
457
+ "@": {
458
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
459
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/thresholds[threshold-value-decimal='200000'][direction='increasing']"
460
+ },
461
+ "threshold-value-decimal": "200000",
462
+ "direction": "increasing",
463
+ "actions": [
464
+ {
465
+ "@": {
466
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
467
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/thresholds[threshold-value-decimal='200000'][direction='increasing']/actions[name='template_threshold_200000_increasing_kafka_action']"
468
+ },
469
+ "name": "template_threshold_200000_increasing_kafka_action",
470
+ "type": "kafka",
471
+ "kafka": {
472
+ "@": {
473
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
474
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/thresholds[threshold-value-decimal='200000'][direction='increasing']/actions[name='template_threshold_200000_increasing_kafka_action']/kafka"
475
+ },
476
+ "topic-name": "nsp-act-action-event",
477
+ "topic-content": "Total octets above 200000 threshold setting 10.10.10.4 1/1/1 and 1/1/2"
478
+ }
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ "@": {
484
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
485
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/thresholds[threshold-value-decimal='20000'][direction='decreasing']"
486
+ },
487
+ "threshold-value-decimal": "20000",
488
+ "direction": "decreasing",
489
+ "actions": [
490
+ {
491
+ "@": {
492
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
493
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/thresholds[threshold-value-decimal='20000'][direction='decreasing']/actions[name='template_threshold_20000_decreasing_kafka_action']"
494
+ },
495
+ "name": "template_threshold_20000_decreasing_kafka_action",
496
+ "type": "kafka",
497
+ "kafka": {
498
+ "@": {
499
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
500
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='SumOctets 10.10.10.4 Two Ports Template']/thresholds[threshold-value-decimal='20000'][direction='decreasing']/actions[name='template_threshold_20000_decreasing_kafka_action']/kafka"
501
+ },
502
+ "topic-name": "nsp-act-action-event",
503
+ "topic-content": "Total octets below 20000 threshold setting 10.10.10.4 1/1/1 and 1/1/2"
504
+ }
505
+ }
506
+ ]
507
+ }
508
+ ]
509
+ }
510
+ ]
511
+ }
512
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "nsp-indicator:template": [
3
+ {
4
+ "@": {
5
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template",
6
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']"
7
+ },
8
+ "name": "AvgCpuAllNodesAllActionsTemplate",
9
+ "description": "avg cpu from all nodes template",
10
+ "units-name": "%",
11
+ "telemetry-type": "telemetry:/base/system-info/system",
12
+ "formula": "avg({cpu-usage_avg})",
13
+ "counters": [
14
+ {
15
+ "@": {
16
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/counters",
17
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/counters[name='cpu-usage'][function='avg']"
18
+ },
19
+ "name": "cpu-usage",
20
+ "function": "avg"
21
+ }
22
+ ],
23
+ "thresholds": [
24
+ {
25
+ "@": {
26
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds",
27
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']"
28
+ },
29
+ "threshold-value-decimal": "20",
30
+ "direction": "increasing",
31
+ "actions": [
32
+ {
33
+ "@": {
34
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
35
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_kafka_action']"
36
+ },
37
+ "name": "template_threshold_20_increasing_kafka_action",
38
+ "type": "kafka",
39
+ "kafka": {
40
+ "@": {
41
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/kafka",
42
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_kafka_action']/kafka"
43
+ },
44
+ "topic-name": "nsp-act-action-event",
45
+ "topic-content": "CPU is a rising"
46
+ }
47
+ },
48
+ {
49
+ "@": {
50
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
51
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_alarm_action']"
52
+ },
53
+ "name": "template_threshold_20_increasing_alarm_action",
54
+ "type": "alarm",
55
+ "alarm": {
56
+ "@": {
57
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/alarm",
58
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_alarm_action']/alarm"
59
+ },
60
+ "severity": "major"
61
+ }
62
+ },
63
+ {
64
+ "@": {
65
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions",
66
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_email_action']"
67
+ },
68
+ "name": "template_threshold_20_increasing_email_action",
69
+ "type": "email",
70
+ "email": {
71
+ "@": {
72
+ "nsp-model:schema-nodeid": "/nsp-indicator:rta-indicator-templates/template/thresholds/actions/email",
73
+ "nsp-model:identifier": "/nsp-indicator:rta-indicator-templates/template[name='AvgCpuAllNodesAllActionsTemplate']/thresholds[threshold-value-decimal='20'][direction='increasing']/actions[name='template_threshold_20_increasing_email_action']/email"
74
+ },
75
+ "email-address": "userid@user.com",
76
+ "email-subject": "Hmmmmm, It's getting hot",
77
+ "email-content": "Your temperature is rising.",
78
+ "aggregation": false,
79
+ "period": 5,
80
+ "number-events": 5
81
+ }
82
+ }
83
+ ]
84
+ }
85
+ ]
86
+ }
87
+ ]
88
+ }