Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 1 | // This JSON is tied with BMC's PDRs. Each entry is used to identify a group of |
| 2 | // composite sensors. |
George Liu | a929dac | 2020-05-09 17:27:58 +0800 | [diff] [blame] | 3 | { |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame^] | 4 | "sensorPDRs": [ |
George Liu | a929dac | 2020-05-09 17:27:58 +0800 | [diff] [blame] | 5 | { |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame^] | 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": [0, 5] |
| 24 | }, |
| 25 | "dbus": { |
| 26 | "path": "/foo/bar", |
| 27 | "interface": "xyz.openbmc_project.Foo.Bar", |
| 28 | "property_name": "propertyName", |
| 29 | "property_type": "string", |
| 30 | "property_values": [ |
| 31 | "xyz.openbmc_project.Foo.Bar.V0", |
| 32 | "xyz.openbmc_project.Foo.Bar.V5" |
| 33 | ] |
| 34 | } |
| 35 | }, |
| 36 | { |
| 37 | "set": { |
| 38 | "id": 2, |
| 39 | "size": 1, |
| 40 | "states": [2, 3] |
| 41 | }, |
| 42 | "dbus": { |
| 43 | "path": "/foo/bar", |
| 44 | "interface": "xyz.openbmc_project.Foo.Bar", |
| 45 | "property_name": "propertyName", |
| 46 | "property_type": "string", |
| 47 | "property_values": [ |
| 48 | "xyz.openbmc_project.Foo.Bar.V2", |
| 49 | "xyz.openbmc_project.Foo.Bar.V3" |
| 50 | ] |
| 51 | } |
| 52 | } |
| 53 | ] |
| 54 | } |
| 55 | ] |
George Liu | a929dac | 2020-05-09 17:27:58 +0800 | [diff] [blame] | 56 | } |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame^] | 57 | ] |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 58 | } |