blob: 0d536571c2ddb495a5520c3a38ab5e4f7b2f9158 [file] [log] [blame]
Brad Bishopbf066a62016-10-19 08:09:44 -04001description: >
2 An example inventory match rule.
3
4events:
Brad Bishopeb68a682017-01-22 00:58:54 -05005 - name: Example Match
Brad Bishopbf066a62016-10-19 08:09:44 -04006 description: >
Brad Bishop22ecacc2016-12-01 08:38:06 -05007 Sets the value of ExampleProperty1 on /changeme
8 when the value of ExampleProperty2 on
Brad Bishop8f868502017-01-23 13:13:58 -05009 /testing/trigger2 changes to yyyxxx.
Brad Bishopbf066a62016-10-19 08:09:44 -040010 type: match
Brad Bishop22cfbe62016-11-30 13:25:10 -050011 signatures:
12 - type: signal
13 interface: org.freedesktop.DBus.Properties
Brad Bishop8f868502017-01-23 13:13:58 -050014 path: /testing/trigger2
Brad Bishop22cfbe62016-11-30 13:25:10 -050015 member: PropertiesChanged
Brad Bishop22ecacc2016-12-01 08:38:06 -050016 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: yyyxxx
Brad Bishop22cfbe62016-11-30 13:25:10 -050023 actions:
Brad Bishope2e402f2016-11-30 18:00:17 -050024 - name: setProperty
Brad Bishopc93bcc92017-01-21 16:23:39 -050025 interface: xyz.openbmc_project.Example.Iface1
26 property: ExampleProperty1
27 path: /changeme
28 value:
29 type: string
30 value: changed
Brad Bishopbf066a62016-10-19 08:09:44 -040031
Brad Bishopeb68a682017-01-22 00:58:54 -050032 - name: Example Match
33 description: >
34 Create /createme1 and /createme2 when the value of
35 ExampleProperty2 on /testing/trigger5 changes to abc123.
36 type: match
37 signatures:
38 - type: signal
39 interface: org.freedesktop.DBus.Properties
40 path: /testing/trigger5
41 member: PropertiesChanged
42 filters:
43 - name: propertyChangedTo
44 interface: xyz.openbmc_project.Example.Iface2
45 property: ExampleProperty2
46 value:
47 type: string
48 value: abc123
49 actions:
50 - name: createObjects
51 objs:
52 /createme1:
53 xyz.openbmc_project.Example.Iface1:
54 ExampleProperty1:
55 value: foo
56 type: string
57 xyz.openbmc_project.Example.Iface2:
58 ExampleProperty2:
59 value: bar
60 type: string
61 ExampleProperty3:
62 value: 999
63 type: int64
64 /createme2:
65 xyz.openbmc_project.Example.Iface1:
66 ExampleProperty1:
67 value: bar
68 type: string
69 xyz.openbmc_project.Example.Iface2:
70 ExampleProperty2:
71 value: foo
72 type: string
73 ExampleProperty3:
74 value: 888
75 type: int64
76
Brad Bishopbf066a62016-10-19 08:09:44 -040077# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4