George Liu | a929dac | 2020-05-09 17:27:58 +0800 | [diff] [blame] | 1 | # This JSON is tied with BMC's PDRs. Each entry is used to identify a group of |
| 2 | # composite sensors. |
| 3 | { |
| 4 | "sensorPDRs": [ |
| 5 | { |
| 6 | # StateSensorPDR |
| 7 | # Each sensor in each group of composite sensors has a separate entry and the |
| 8 | # supported event states, up to eight. |
| 9 | # The "dbus" section contains information about the corresponding D-Bus |
| 10 | # property for the sensor and "property_values" are the D-Bus property values |
| 11 | # for each corresponding entry in the "states". |
| 12 | "pdrType": 4 |
| 13 | "entries": [ |
| 14 | { |
| 15 | "type": 5, |
| 16 | "instance": 0, |
| 17 | "container": 0, |
| 18 | "sensors": [ |
| 19 | { |
| 20 | "set": { |
| 21 | "id": 1, |
| 22 | "size": 1, |
| 23 | "states": [ |
| 24 | 0, |
| 25 | 5 |
| 26 | ] |
| 27 | }, |
| 28 | "dbus": { |
| 29 | "path": "/foo/bar", |
| 30 | "interface": "xyz.openbmc_project.Foo.Bar", |
| 31 | "property_name": "propertyName", |
| 32 | "property_type": "string", |
| 33 | "property_values": [ |
| 34 | "xyz.openbmc_project.Foo.Bar.V0", |
| 35 | "xyz.openbmc_project.Foo.Bar.V5" |
| 36 | ] |
| 37 | } |
| 38 | } |
| 39 | ] |
| 40 | } |
| 41 | ] |
| 42 | } |
| 43 | ] |
| 44 | } |