diff options
| author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-10-21 22:58:08 -0400 |
|---|---|---|
| committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-11-08 15:01:04 -0500 |
| commit | 09fc256bdd02dd3c8aeb158573bccfec21387ecc (patch) | |
| tree | 45c46916e97890fafcc736690a66ed5310194aa0 /example | |
| parent | adc4566c0cf67413ed4987309f4194c8636633dd (diff) | |
| download | phosphor-inventory-manager-09fc256bdd02dd3c8aeb158573bccfec21387ecc.tar.gz phosphor-inventory-manager-09fc256bdd02dd3c8aeb158573bccfec21387ecc.zip | |
Move examples->example/events
Change-Id: I072cd37217f982fa45d6fae7f1ebebdabe1a7800
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
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 |

