blob: a4e98f01b7b15343b36143c91273e5a980a75a16 [file] [log] [blame]
description: >
An example inventory match rule.
events:
- name: Example Match
description: >
Destroys the /deleteme1 and /deleteme2 objects
When the value of ExampleProperty2 on
/testing/trigger1 changes to xxxyyy.
type: match
signatures:
- type: signal
path: /testing/trigger1
interface: org.freedesktop.DBus.Properties
member: PropertiesChanged
filters:
- name: propertyChangedTo
interface: xyz.openbmc_project.Example.Iface2
property: ExampleProperty2
value:
type: string
value: xxxyyy
actions:
- name: destroyObjects
paths:
- /deleteme1
- /deleteme2
- name: Example Match
description: >
Destroys the /deleteme3 object when the value of
ExampleProperty3 on /testing/trigger3
changes to 10.
type: match
signatures:
- type: signal
path: /testing/trigger3
interface: org.freedesktop.DBus.Properties
member: PropertiesChanged
filters:
- name: propertyChangedTo
interface: xyz.openbmc_project.Example.Iface2
property: ExampleProperty3
value:
value: 10
type: int64
actions:
- name: destroyObjects
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