blob: 047462d1e0a96db9402cca5ecbdcc1b0b9ee9886 [file] [log] [blame]
Brad Bishopbf066a62016-10-19 08:09:44 -04001description: >
2 An example inventory match rule.
3
4events:
Brad Bishopfb083c22017-01-19 09:22:04 -05005 - name: Example Match
Brad Bishopbf066a62016-10-19 08:09:44 -04006 description: >
Brad Bishop432e3522016-12-01 00:24:14 -05007 Destroys the /deleteme1 and /deleteme2 objects
8 When the value of ExampleProperty2 on
Brad Bishop8f868502017-01-23 13:13:58 -05009 /testing/trigger1 changes to xxxyyy.
Brad Bishopbf066a62016-10-19 08:09:44 -040010 type: match
Brad Bishop22cfbe62016-11-30 13:25:10 -050011 signatures:
12 - type: signal
Brad Bishop8f868502017-01-23 13:13:58 -050013 path: /testing/trigger1
Brad Bishop22cfbe62016-11-30 13:25:10 -050014 interface: org.freedesktop.DBus.Properties
15 member: PropertiesChanged
16 filters:
17 - name: propertyChangedTo
Brad Bishopc93bcc92017-01-21 16:23:39 -050018 interface: xyz.openbmc_project.Example.Iface2
19 property: ExampleProperty2
20 value:
21 type: string
22 value: xxxyyy
Brad Bishop22cfbe62016-11-30 13:25:10 -050023 actions:
Brad Bishop7b7e7122017-01-21 21:21:46 -050024 - name: destroyObjects
25 paths:
26 - /deleteme1
27 - /deleteme2
Brad Bishop432e3522016-12-01 00:24:14 -050028
Brad Bishopfb083c22017-01-19 09:22:04 -050029 - name: Example Match
30 description: >
31 Destroys the /deleteme3 object when the value of
32 ExampleProperty3 on /testing/trigger3
33 changes to 10.
34 type: match
35 signatures:
36 - type: signal
37 path: /testing/trigger3
38 interface: org.freedesktop.DBus.Properties
39 member: PropertiesChanged
40 filters:
41 - name: propertyChangedTo
42 interface: xyz.openbmc_project.Example.Iface2
43 property: ExampleProperty3
44 value:
45 value: 10
46 type: int64
47 actions:
48 - name: destroyObjects
49 paths:
50 - /deleteme3
Brad Bishopbf066a62016-10-19 08:09:44 -040051
52# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4