blob: a4e98f01b7b15343b36143c91273e5a980a75a16 [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
Brad Bishopfa51da72017-01-19 11:06:51 -050052 - name: Example Match
53 description: >
54 Destroys the /deleteme3 object when the value of
55 ExampleProperty3 on /testing/trigger4 is 99
56 and the value of ExampleProperty2 on /testing/trigger4
57 changes to "123".
58 type: match
59 signatures:
60 - type: signal
61 path: /testing/trigger4
62 interface: org.freedesktop.DBus.Properties
63 member: PropertiesChanged
64 filters:
65 - name: propertyChangedTo
66 interface: xyz.openbmc_project.Example.Iface2
67 property: ExampleProperty2
68 value:
69 value: 123
70 type: string
71 - name: propertyIs
72 path: /testing/trigger4
73 interface: xyz.openbmc_project.Example.Iface2
74 property: ExampleProperty3
75 service: phosphor.inventory.test.example
76 value:
77 value: 99
78 type: int64
79 actions:
80 - name: destroyObjects
81 paths:
82 - /deleteme3
83
Brad Bishopbf066a62016-10-19 08:09:44 -040084# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4