blob: 8f0ee34812e4ef564f775e048e02bff933da7c24 [file] [log] [blame]
Manojkiran Eda2746fb42021-08-29 10:59:27 +05301// This JSON is tied with BMC's PDRs. Each entry is used to identify a group of
2// composite sensors.
George Liua929dac2020-05-09 17:27:58 +08003{
Patrick Williams36180642022-12-08 06:13:03 -06004 "sensorPDRs": [
George Liua929dac2020-05-09 17:27:58 +08005 {
Patrick Williams36180642022-12-08 06:13:03 -06006 // 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 Liua929dac2020-05-09 17:27:58 +080056 }
Patrick Williams36180642022-12-08 06:13:03 -060057 ]
Manojkiran Eda2746fb42021-08-29 10:59:27 +053058}