blob: 31836b07a26477825fd889638155a35909e98a4b [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: destroyObject + propertyChangedTo example
Brad Bishopbf066a62016-10-19 08:09:44 -04007 description: >
Brad Bishop432e3522016-12-01 00:24:14 -05008 Destroys the /deleteme1 and /deleteme2 objects
9 When the value of ExampleProperty2 on
Brad Bishop8f868502017-01-23 13:13:58 -050010 /testing/trigger1 changes to xxxyyy.
Brad Bishopbf066a62016-10-19 08:09:44 -040011 type: match
Brad Bishop22cfbe62016-11-30 13:25:10 -050012 signatures:
13 - type: signal
Brad Bishop8f868502017-01-23 13:13:58 -050014 path: /testing/trigger1
Brad Bishop22cfbe62016-11-30 13:25:10 -050015 interface: org.freedesktop.DBus.Properties
16 member: PropertiesChanged
17 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: xxxyyy
Brad Bishop22cfbe62016-11-30 13:25:10 -050024 actions:
Brad Bishop7b7e7122017-01-21 21:21:46 -050025 - name: destroyObjects
26 paths:
27 - /deleteme1
28 - /deleteme2
Brad Bishop432e3522016-12-01 00:24:14 -050029
Brad Bishop56907e32017-01-31 14:43:04 -050030 - name: destroyObject + propertyChangedTo<int64> example
Brad Bishopfb083c22017-01-19 09:22:04 -050031 description: >
32 Destroys the /deleteme3 object when the value of
33 ExampleProperty3 on /testing/trigger3
34 changes to 10.
35 type: match
36 signatures:
37 - type: signal
38 path: /testing/trigger3
39 interface: org.freedesktop.DBus.Properties
40 member: PropertiesChanged
41 filters:
42 - name: propertyChangedTo
43 interface: xyz.openbmc_project.Example.Iface2
44 property: ExampleProperty3
45 value:
46 value: 10
47 type: int64
48 actions:
49 - name: destroyObjects
50 paths:
51 - /deleteme3
Brad Bishopbf066a62016-10-19 08:09:44 -040052
Brad Bishop56907e32017-01-31 14:43:04 -050053 - name: propertyIs example
Brad Bishopfa51da72017-01-19 11:06:51 -050054 description: >
55 Destroys the /deleteme3 object when the value of
56 ExampleProperty3 on /testing/trigger4 is 99
57 and the value of ExampleProperty2 on /testing/trigger4
58 changes to "123".
59 type: match
60 signatures:
61 - type: signal
62 path: /testing/trigger4
63 interface: org.freedesktop.DBus.Properties
64 member: PropertiesChanged
65 filters:
66 - name: propertyChangedTo
67 interface: xyz.openbmc_project.Example.Iface2
68 property: ExampleProperty2
69 value:
70 value: 123
71 type: string
72 - name: propertyIs
73 path: /testing/trigger4
74 interface: xyz.openbmc_project.Example.Iface2
75 property: ExampleProperty3
76 service: phosphor.inventory.test.example
77 value:
78 value: 99
79 type: int64
80 actions:
81 - name: destroyObjects
82 paths:
83 - /deleteme3
84
Brad Bishopbf066a62016-10-19 08:09:44 -040085# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4