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