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": [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            ]
56        }
57    ]
58}
59