blob: a384ab0de016c595f73ac797a3254a78b727c8a7 [file] [log] [blame]
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +01001description: >
2 Implement to provide triggers management.
3
4methods:
5 - name: AddTrigger
6 description:
7 Create new object that represent Trigger with
8 xyz.openbmc_project.Telemetry.Trigger interface stored in path
9 /xyz/openbmc_project/Telemetry/Triggers/{Domain}/{Name} where
10 Domain and Name are parameters of this method.
11 parameters:
12 - name: name
13 type: string
14 description: >
15 Defines the name of report to be exposed over D-Bus. Service allows
16 to use separator '/' in name to group reports in directory.
Szymon Dompke7e624b62021-09-20 18:45:12 +020017 - name: triggerActions
18 type: array[enum[xyz.openbmc_project.Telemetry.Trigger.TriggerAction]]
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +010019 description: >
Szymon Dompke7e624b62021-09-20 18:45:12 +020020 Defines which actions are taken when threshold conditions are met.
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +010021 - name: sensors
22 type: array[struct[object_path,string]]
23 description: >
24 Array of sensors that is monitored within trigger. Object path
25 points to a sensor in DBus envrionment. String is used as user
26 metadata.
27 - name: reportNames
28 type: array[string]
29 description: >
30 Collection of report names that are updated when threshold
Szymon Dompke7e624b62021-09-20 18:45:12 +020031 conditions are met. This parameter is ignored if triggerActions
32 parameter does not contain 'UpdateReport' action.
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +010033 - name: thresholds
Szymon Dompke7e624b62021-09-20 18:45:12 +020034 type: variant[array[struct[enum[xyz.openbmc_project.Telemetry.Trigger.Type],uint64,enum[xyz.openbmc_project.Telemetry.Trigger.Direction],double]],array[struct[string,enum[xyz.openbmc_project.Telemetry.Trigger.Severity],uint64,string]]]
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +010035 description: >
36 Contains array of numeric or discrete thresholds that are described
37 in xyz.openbmc_project.Telemetry.Trigger interface.
38 returns:
39 - name: triggerPath
40 type: object_path
41 description: >
42 Path to new trigger ->
43 /xyz/openbmc_project/Telemetry/Triggers/{name}.