blob: f4d30c7ac2f174928251d62686f5b0eb4f23942e [file] [log] [blame]
Tomáš Pecka6a2334b2022-07-12 13:57:54 +02001module velia-alarms {
2 yang-version 1.1;
3 namespace "http://czechlight.cesnet.cz/yang/velia-alarms";
4 prefix ve-al;
5
6 import ietf-alarms {
7 prefix al;
8 }
9
10 revision 2022-07-12 {
11 description
12 "Initial version.";
13 }
14
15 identity velia-alarm {
16 base al:alarm-type-id;
17 }
18
19 identity systemd-unit-failure {
20 base velia-alarm;
21 }
Tomáš Pecka2117ce52023-05-12 11:28:34 +020022
23 identity sensor-alarm {
24 base velia-alarm;
25 description "Abstract base for hardware sensor related alarms.";
26 }
27
28 identity sensor-missing-alarm {
29 base sensor-alarm;
30 description "Alarm to model that sensor is missing.";
31 }
32
33 identity sensor-threshold-crossing-alarm {
34 base sensor-alarm;
35 description "Abstract base for sensor threshold crossing.";
36 }
37
38 identity sensor-low-value-alarm {
39 base sensor-threshold-crossing-alarm;
40 description "Sensor value is too low.";
41 }
42
43 identity sensor-high-value-alarm {
44 base sensor-threshold-crossing-alarm;
45 description "Sensor value is too high.";
46 }
Tomáš Pecka6a2334b2022-07-12 13:57:54 +020047}
48