blob: 84b28f110b3167a530f93830d8623a881da44ad0 [file] [log] [blame]
Brad Bishopbf066a62016-10-19 08:09:44 -04001description: >
2 An example inventory match rule.
3
4events:
5 - name: Example Match(2)
6 description: >
Brad Bishop432e3522016-12-01 00:24:14 -05007 Destroys the /deleteme1 and /deleteme2 objects
8 When the value of ExampleProperty2 on
9 /testing/inventory/trigger 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 Bishop432e3522016-12-01 00:24:14 -050013 path: /testing/inventory/trigger1
Brad Bishop22cfbe62016-11-30 13:25:10 -050014 interface: org.freedesktop.DBus.Properties
15 member: PropertiesChanged
16 filters:
17 - name: propertyChangedTo
18 args:
Brad Bishop432e3522016-12-01 00:24:14 -050019 interface: xyz.openbmc_project.Example.Iface2
20 property: ExampleProperty2
Brad Bishop22cfbe62016-11-30 13:25:10 -050021 value:
22 type: string
Brad Bishop432e3522016-12-01 00:24:14 -050023 value: xxxyyy
Brad Bishop22cfbe62016-11-30 13:25:10 -050024 actions:
25 - name: destroyObject
26 args:
Brad Bishop432e3522016-12-01 00:24:14 -050027 path: /deleteme1
28 - name: destroyObject
29 args:
30 path: /deleteme2
31
Brad Bishopbf066a62016-10-19 08:09:44 -040032
33# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4