blob: c0d2a86e09225a2e484af48af50bb3174262303f [file] [log] [blame]
sebdet723de7f2020-03-12 14:38:07 -07001tosca_definitions_version: tosca_simple_yaml_1_0_0
2policy_types:
3 onap.policies.Monitoring:
4 derived_from: tosca.policies.Root
5 description: a base policy type for all policies that governs monitoring provisioning
6 onap.policies.monitoring.cdap.tca.hi.lo.app:
7 derived_from: onap.policies.Monitoring
8 version: 1.0.0
9 properties:
10 tca_policy:
11 type: map
12 description: TCA Policy JSON
13 entry_schema:
14 type: onap.datatypes.monitoring.tca_policy
15 metadata:
16 policy_model_type: onap.policies.monitoring.cdap.tca.hi.lo.app
17 acronym: tca
18
19data_types:
20 onap.datatypes.monitoring.metricsPerEventName:
21 derived_from: tosca.datatypes.Root
22 properties:
23 controlLoopSchemaType:
24 type: string
25 required: true
26 description: Specifies Control Loop Schema Type for the event Name e.g. VNF, VM
27 constraints:
28 - valid_values:
29 - VM
30 - VNF
31 eventName:
32 type: string
33 required: true
34 description: Event name to which thresholds need to be applied
35 policyName:
36 type: string
37 required: true
38 description: TCA Policy Scope Name
39 policyScope:
40 type: string
41 required: true
42 description: TCA Policy Scope
43 policyVersion:
44 type: string
45 required: true
46 description: TCA Policy Scope Version
47 thresholds:
48 type: list
49 required: true
50 description: Thresholds associated with eventName
51 entry_schema:
52 type: onap.datatypes.monitoring.thresholds
53 context:
54 type: string
55 required: true
56 description: TCA Policy Dummy Context
57 metadata:
58 clamp_possible_values: "Dictionary:Context"
59
60 signature:
61 type: onap.datatypes.monitoring.Dummy_Signature
62 description: Signature
63 required: true
64
65 onap.datatypes.monitoring.Dummy_Signature:
66 derived_from: tosca.datatypes.Root
67 properties:
68 filter_clause:
69 type: string
70 description: Filter Clause
71 required: true
72 metadata:
73 clamp_possible_values: "Dictionary:EventDictionary#Operators"
74
75 onap.datatypes.monitoring.tca_policy:
76 derived_from: tosca.datatypes.Root
77 properties:
78 domain:
79 type: string
80 required: true
81 description: Domain name to which TCA needs to be applied
82 default: measurementsForVfScaling
83 constraints:
84 - equal: measurementsForVfScaling
85 metricsPerEventName:
86 type: list
87 required: true
88 description: Contains eventName and threshold details that need to be applied to given eventName
89 entry_schema:
90 type: onap.datatypes.monitoring.metricsPerEventName
91 onap.datatypes.monitoring.thresholds:
92 derived_from: tosca.datatypes.Root
93 properties:
94 closedLoopControlName:
95 type: string
96 required: true
97 description: Closed Loop Control Name associated with the threshold
98 closedLoopEventStatus:
99 type: string
100 required: true
101 description: Closed Loop Event Status of the threshold
102 constraints:
103 - valid_values:
104 - ONSET
105 - ABATED
106 direction:
107 type: string
108 required: true
109 description: Direction of the threshold
110 constraints:
111 - valid_values:
112 - LESS
113 - LESS_OR_EQUAL
114 - GREATER
115 - GREATER_OR_EQUAL
116 - EQUAL
117 fieldPath:
118 type: string
119 required: true
120 description: Json field Path as per CEF message which needs to be analyzed for TCA
121 constraints:
122 - valid_values:
123 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta
124 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta
125 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta
126 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta
127 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta
128 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta
129 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta
130 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated
131 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated
132 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated
133 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated
134 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated
135 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated
136 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated
137 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta
138 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta
139 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta
140 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta
141 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta
142 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta
143 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta
144 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated
145 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated
146 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated
147 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated
148 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated
149 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated
150 - $.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated
151 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle
152 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt
153 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice
154 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq
155 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal
156 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem
157 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait
158 - $.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage
159 - $.event.measurementsForVfScalingFields.meanRequestLatency
160 - $.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered
161 - $.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached
162 - $.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured
163 - $.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree
164 - $.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed
165 - $.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value
166 severity:
167 type: string
168 required: true
169 description: Threshold Event Severity
170 constraints:
171 - valid_values:
172 - CRITICAL
173 - MAJOR
174 - MINOR
175 - WARNING
176 - NORMAL
177 thresholdValue:
178 type: integer
179 required: true
180 description: Threshold value for the field Path inside CEF message
181 version:
182 type: string
183 required: true
184 description: Version number associated with the threshold