blob: 7133271d1503bf08bb22594a72b87465da1284b8 [file] [log] [blame]
Brad Bishopbf066a62016-10-19 08:09:44 -04001description: >
Brad Bishop56907e32017-01-31 14:43:04 -05002 The sample events below serve to illustrate PIM features
3 and are also used by the PIM test suite.
Brad Bishopbf066a62016-10-19 08:09:44 -04004
5events:
Brad Bishop56907e32017-01-31 14:43:04 -05006 - name: setProperty + propertyChangedTo example
Brad Bishopbf066a62016-10-19 08:09:44 -04007 description: >
Brad Bishop22ecacc2016-12-01 08:38:06 -05008 Sets the value of ExampleProperty1 on /changeme
9 when the value of ExampleProperty2 on
Brad Bishop8f868502017-01-23 13:13:58 -050010 /testing/trigger2 changes to yyyxxx.
Brad Bishopbf066a62016-10-19 08:09:44 -040011 type: match
Brad Bishop22cfbe62016-11-30 13:25:10 -050012 signatures:
13 - type: signal
14 interface: org.freedesktop.DBus.Properties
Brad Bishop8f868502017-01-23 13:13:58 -050015 path: /testing/trigger2
Brad Bishop22cfbe62016-11-30 13:25:10 -050016 member: PropertiesChanged
Brad Bishop22ecacc2016-12-01 08:38:06 -050017 filters:
18 - name: propertyChangedTo
Brad Bishopc93bcc92017-01-21 16:23:39 -050019 interface: xyz.openbmc_project.Example.Iface2
20 property: ExampleProperty2
21 value:
22 type: string
23 value: yyyxxx
Brad Bishop22cfbe62016-11-30 13:25:10 -050024 actions:
Brad Bishope2e402f2016-11-30 18:00:17 -050025 - name: setProperty
Brad Bishopc93bcc92017-01-21 16:23:39 -050026 interface: xyz.openbmc_project.Example.Iface1
27 property: ExampleProperty1
Brad Bishop02ca0212017-01-28 23:25:58 -050028 paths:
29 - /changeme
Brad Bishopc93bcc92017-01-21 16:23:39 -050030 value:
31 type: string
32 value: changed
Brad Bishopbf066a62016-10-19 08:09:44 -040033
Brad Bishop56907e32017-01-31 14:43:04 -050034 - name: createObjects + propertyChangedTo example
Brad Bishopeb68a682017-01-22 00:58:54 -050035 description: >
36 Create /createme1 and /createme2 when the value of
37 ExampleProperty2 on /testing/trigger5 changes to abc123.
38 type: match
39 signatures:
40 - type: signal
41 interface: org.freedesktop.DBus.Properties
42 path: /testing/trigger5
43 member: PropertiesChanged
44 filters:
45 - name: propertyChangedTo
46 interface: xyz.openbmc_project.Example.Iface2
47 property: ExampleProperty2
48 value:
49 type: string
50 value: abc123
51 actions:
52 - name: createObjects
53 objs:
54 /createme1:
55 xyz.openbmc_project.Example.Iface1:
56 ExampleProperty1:
57 value: foo
58 type: string
59 xyz.openbmc_project.Example.Iface2:
60 ExampleProperty2:
61 value: bar
62 type: string
63 ExampleProperty3:
64 value: 999
65 type: int64
66 /createme2:
67 xyz.openbmc_project.Example.Iface1:
68 ExampleProperty1:
69 value: bar
70 type: string
71 xyz.openbmc_project.Example.Iface2:
72 ExampleProperty2:
73 value: foo
74 type: string
75 ExampleProperty3:
76 value: 888
77 type: int64
78
Brad Bishop3e4a19a2017-01-21 22:17:09 -050079 - name: startup event example
80 description: >
81 Create /createme3 at startup.
82 type: startup
83 actions:
84 - name: createObjects
85 objs:
86 /createme3:
87 xyz.openbmc_project.Example.Iface1:
88 ExampleProperty1:
89 value: foo
90 type: string
91
Brad Bishopbf066a62016-10-19 08:09:44 -040092# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4