diff options
Diffstat (limited to 'example')
| -rw-r--r-- | example/events/match1.yaml | 16 | ||||
| -rw-r--r-- | example/events/match2.yaml | 24 |
2 files changed, 40 insertions, 0 deletions
diff --git a/example/events/match1.yaml b/example/events/match1.yaml new file mode 100644 index 0000000..00b401f --- /dev/null +++ b/example/events/match1.yaml @@ -0,0 +1,16 @@ +description: > + An example inventory match rule. + +events: + - name: Example Match(1) + description: > + Matches any PropertiesChanged signal. + type: match + signature: + type: signal + interface: org.freedesktop.DBus.Properties + member: PropertiesChanged + action: + type: noop + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/example/events/match2.yaml b/example/events/match2.yaml new file mode 100644 index 0000000..db10099 --- /dev/null +++ b/example/events/match2.yaml @@ -0,0 +1,24 @@ +description: > + An example inventory match rule. + +events: + - name: Example Match(2) + description: > + Matches any PropertiesChanged signal emitted + by /xyz/openbmc_project/testing. + type: match + signature: + type: signal + path: /xyz/openbmc_project/testing + interface: org.freedesktop.DBus.Properties + member: PropertiesChanged + filter: + type: propertyChangedTo + args: + - value: xyz.openbmc_project.Testing + - value: TestProperty + - value: teststring + action: + type: destroyObject("Example") + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |

