summaryrefslogtreecommitdiffstats
path: root/example/events.d/match2.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'example/events.d/match2.yaml')
-rw-r--r--example/events.d/match2.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/example/events.d/match2.yaml b/example/events.d/match2.yaml
index 047462d..a4e98f0 100644
--- a/example/events.d/match2.yaml
+++ b/example/events.d/match2.yaml
@@ -49,4 +49,36 @@ events:
paths:
- /deleteme3
+ - name: Example Match
+ description: >
+ Destroys the /deleteme3 object when the value of
+ ExampleProperty3 on /testing/trigger4 is 99
+ and the value of ExampleProperty2 on /testing/trigger4
+ changes to "123".
+ type: match
+ signatures:
+ - type: signal
+ path: /testing/trigger4
+ interface: org.freedesktop.DBus.Properties
+ member: PropertiesChanged
+ filters:
+ - name: propertyChangedTo
+ interface: xyz.openbmc_project.Example.Iface2
+ property: ExampleProperty2
+ value:
+ value: 123
+ type: string
+ - name: propertyIs
+ path: /testing/trigger4
+ interface: xyz.openbmc_project.Example.Iface2
+ property: ExampleProperty3
+ service: phosphor.inventory.test.example
+ value:
+ value: 99
+ type: int64
+ actions:
+ - name: destroyObjects
+ paths:
+ - /deleteme3
+
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
OpenPOWER on IntegriCloud