blob: b6965fa8a2e4d1147316533896fe56e45c654f24 [file] [log] [blame]
Wludzik, Jozefb2bbac72021-01-21 12:52:01 +01001description: >
2 Implement to provide triggers management.
3
4methods:
Patrick Williams8da396c2022-03-14 14:21:02 -05005 - name: AddTrigger
Michal Orzel4f9c0912022-08-01 10:20:46 +02006 description: >
7 Create new object that represents Trigger with
Patrick Williams8da396c2022-03-14 14:21:02 -05008 xyz.openbmc_project.Telemetry.Trigger interface stored in path
Michal Orzel4f9c0912022-08-01 10:20:46 +02009 /xyz/openbmc_project/Telemetry/Triggers/{id} where id is parameter of
10 this method.
Patrick Williams8da396c2022-03-14 14:21:02 -050011 parameters:
Michal Orzel4f9c0912022-08-01 10:20:46 +020012 - name: id
13 type: string
14 description: >
15 Defines unique identifier of created Trigger object to be
16 exposed over D-Bus. Acceptable formats are: "{Id}",
17 "{Prefix}/{SubId}", "{Prefix}/". If the last variant is used,
18 service will generate unique SubId value by itself.
Patrick Williams8da396c2022-03-14 14:21:02 -050019 - name: name
20 type: string
21 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020022 Defines user friendly name of created Trigger object.
Patrick Williams8da396c2022-03-14 14:21:02 -050023 - name: triggerActions
24 type: array[enum[xyz.openbmc_project.Telemetry.Trigger.TriggerAction]]
25 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020026 Defines which actions are taken when threshold conditions are
27 met.
Patrick Williams8da396c2022-03-14 14:21:02 -050028 - name: sensors
Michal Orzel4f9c0912022-08-01 10:20:46 +020029 type: array[dict[object_path,string]]
Patrick Williams8da396c2022-03-14 14:21:02 -050030 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020031 Map of sensors that is monitored within trigger. D-Bus sensor
32 path is used as map's key. Its value is a metadata that is used
33 to store user data about sensor. In Redfish, metadata will be
34 set to endpoint corresponding to that sensor.
35 - name: reports
36 type: array[object_path]
Patrick Williams8da396c2022-03-14 14:21:02 -050037 description: >
38 Collection of report names that are updated when threshold
39 conditions are met. This parameter is ignored if triggerActions
40 parameter does not contain 'UpdateReport' action.
41 - name: thresholds
42 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]]]
43 description: >
Michal Orzel4f9c0912022-08-01 10:20:46 +020044 Contains array of numeric or discrete thresholds that are
45 described in xyz.openbmc_project.Telemetry.Trigger interface.
Patrick Williams8da396c2022-03-14 14:21:02 -050046 returns:
47 - name: triggerPath
48 type: object_path
49 description: >
50 Path to new trigger ->
Michal Orzel4f9c0912022-08-01 10:20:46 +020051 /xyz/openbmc_project/Telemetry/Triggers/{id}.