blob: 10a3d5fe43af22250ab636f3147779d5dddd7da6 [file] [log] [blame]
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +01001description: >
2 Implement this interface to provide trigger inspection features. An
Szymon Dompke7e624b62021-09-20 18:45:12 +02003 implementation service should additionally implement
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +01004 xyz.openbmc_project.Object.Delete for deletion of individual trigger.
5
6properties:
Patrick Williams8da396c2022-03-14 14:21:02 -05007 - name: Discrete
8 type: boolean
9 description: >
10 If true than trigger uses discrete thresholds as threshold conditions.
11 Otherwise numeric thresholds is used.
12 flags:
13 - const
14 - name: TriggerActions
15 type: array[enum[self.TriggerAction]]
16 description: >
17 Defines actions which are taken when threshold conditions are met.
18 flags:
19 - const
20 - name: Persistent
21 type: boolean
22 description: Defines if Trigger is stored in non volatile memory.
Michal Orzel4f9c0912022-08-01 10:20:46 +020023 - name: Reports
24 type: array[object_path]
Patrick Williams8da396c2022-03-14 14:21:02 -050025 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020026 Collection of Report objects that are updated when threshold
27 conditions are met. List is ignored if TriggerActions property does
28 not contain 'UpdateReport' action.
Patrick Williams8da396c2022-03-14 14:21:02 -050029 - name: Sensors
Michal Orzel4f9c0912022-08-01 10:20:46 +020030 type: array[dict[object_path,string]]
Patrick Williams8da396c2022-03-14 14:21:02 -050031 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020032 Map of sensors that is monitored within trigger. D-Bus sensor path is
Patrick Williamsa1347412022-12-06 10:56:22 -060033 used as map's key. Its value is a metadata that is used to store user
34 data about sensor. In Redfish, metadata will be set to endpoint
35 corresponding to that sensor.
Ed Tanous2faed8a2024-11-27 10:59:57 -080036 - name: numericThresholds
37 type: array[struct[enum[self.Type],uint64,enum[self.Direction],double]]
Patrick Williams8da396c2022-03-14 14:21:02 -050038 description: >
Ed Tanous2faed8a2024-11-27 10:59:57 -080039 A collection of numeric thresholds that has following fields - type,
40 dwell time, direction and threshold value. Array is limited by Type
41 enumeration, only 4 elements are allowed. Dwell time specifies for how
42 long condition has to persist to trigger an action.
43 - name: discreteThresholds
44 type: array[struct[string,enum[self.Severity],uint64,string]]
45 description: >
46 A collection of discrete thresholds that contains following fields -
47 user id, severity, dwell time and threshold value. Discrete value does
48 not need to be a number. Array size is not limited. If discrete
Michal Orzel4f9c0912022-08-01 10:20:46 +020049 threshold array is empty then every value change is taken into account
50 of threshold condition. Dwell time specifies for how long condition
51 has to persist to trigger an action.
52 - name: Name
53 type: string
54 description: >
55 Defines the name of trigger to be exposed over D-Bus.
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +010056
57enumerations:
Patrick Williams8da396c2022-03-14 14:21:02 -050058 - name: TriggerAction
59 description: >
60 Defines a action which is taken once threshold condition is met.
61 values:
Michal Orzel4f9c0912022-08-01 10:20:46 +020062 - name: LogToJournal
Patrick Williams8da396c2022-03-14 14:21:02 -050063 description: Trigger will log to journal.
Michal Orzel4f9c0912022-08-01 10:20:46 +020064 - name: LogToRedfishEventLog
Patrick Williams8da396c2022-03-14 14:21:02 -050065 description: Trigger will log Redfish message.
66 - name: UpdateReport
67 description: >
68 Trigger will update reports. Reports that will be updated are
69 specified in ReportNames property.
70 - name: Type
71 description: >
72 Defines a context of a message that is logged when numeric threshold
73 condition is met.
74 values:
75 - name: LowerCritical
76 - name: LowerWarning
77 - name: UpperWarning
78 - name: UpperCritical
79 - name: Direction
80 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020081 Defines in which direction threshold value is crossed to fulfill
82 numeric threshold condition.
Patrick Williams8da396c2022-03-14 14:21:02 -050083 values:
84 - name: Either
85 description: >
86 Crossing threshold value fulfill numeric threshold condition.
87 - name: Decreasing
88 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020089 If threshold value is crossed and previous sensor value was
90 greater then threshold value then numeric threshold condition is
91 met.
Patrick Williams8da396c2022-03-14 14:21:02 -050092 - name: Increasing
93 description: >
94 If threshold value is crossed and previous sensor value was less
95 then threshold value then numeric threshold condition is met.
96 - name: Severity
97 description: >
98 Defines a context of a message that is logged when discrete threshold
99 condition is met.
100 values:
101 - name: OK
102 - name: Warning
103 - name: Critical