Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 1 | description: > |
| 2 | An example inventory match rule. |
| 3 | |
| 4 | events: |
Brad Bishop | fb083c2 | 2017-01-19 09:22:04 -0500 | [diff] [blame] | 5 | - name: Example Match |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 6 | description: > |
Brad Bishop | 432e352 | 2016-12-01 00:24:14 -0500 | [diff] [blame] | 7 | Destroys the /deleteme1 and /deleteme2 objects |
| 8 | When the value of ExampleProperty2 on |
Brad Bishop | 8f86850 | 2017-01-23 13:13:58 -0500 | [diff] [blame] | 9 | /testing/trigger1 changes to xxxyyy. |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 10 | type: match |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 11 | signatures: |
| 12 | - type: signal |
Brad Bishop | 8f86850 | 2017-01-23 13:13:58 -0500 | [diff] [blame] | 13 | path: /testing/trigger1 |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 14 | interface: org.freedesktop.DBus.Properties |
| 15 | member: PropertiesChanged |
| 16 | filters: |
| 17 | - name: propertyChangedTo |
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame] | 18 | interface: xyz.openbmc_project.Example.Iface2 |
| 19 | property: ExampleProperty2 |
| 20 | value: |
| 21 | type: string |
| 22 | value: xxxyyy |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 23 | actions: |
Brad Bishop | 7b7e712 | 2017-01-21 21:21:46 -0500 | [diff] [blame] | 24 | - name: destroyObjects |
| 25 | paths: |
| 26 | - /deleteme1 |
| 27 | - /deleteme2 |
Brad Bishop | 432e352 | 2016-12-01 00:24:14 -0500 | [diff] [blame] | 28 | |
Brad Bishop | fb083c2 | 2017-01-19 09:22:04 -0500 | [diff] [blame] | 29 | - name: Example Match |
| 30 | description: > |
| 31 | Destroys the /deleteme3 object when the value of |
| 32 | ExampleProperty3 on /testing/trigger3 |
| 33 | changes to 10. |
| 34 | type: match |
| 35 | signatures: |
| 36 | - type: signal |
| 37 | path: /testing/trigger3 |
| 38 | interface: org.freedesktop.DBus.Properties |
| 39 | member: PropertiesChanged |
| 40 | filters: |
| 41 | - name: propertyChangedTo |
| 42 | interface: xyz.openbmc_project.Example.Iface2 |
| 43 | property: ExampleProperty3 |
| 44 | value: |
| 45 | value: 10 |
| 46 | type: int64 |
| 47 | actions: |
| 48 | - name: destroyObjects |
| 49 | paths: |
| 50 | - /deleteme3 |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 51 | |
Brad Bishop | fa51da7 | 2017-01-19 11:06:51 -0500 | [diff] [blame^] | 52 | - name: Example Match |
| 53 | description: > |
| 54 | Destroys the /deleteme3 object when the value of |
| 55 | ExampleProperty3 on /testing/trigger4 is 99 |
| 56 | and the value of ExampleProperty2 on /testing/trigger4 |
| 57 | changes to "123". |
| 58 | type: match |
| 59 | signatures: |
| 60 | - type: signal |
| 61 | path: /testing/trigger4 |
| 62 | interface: org.freedesktop.DBus.Properties |
| 63 | member: PropertiesChanged |
| 64 | filters: |
| 65 | - name: propertyChangedTo |
| 66 | interface: xyz.openbmc_project.Example.Iface2 |
| 67 | property: ExampleProperty2 |
| 68 | value: |
| 69 | value: 123 |
| 70 | type: string |
| 71 | - name: propertyIs |
| 72 | path: /testing/trigger4 |
| 73 | interface: xyz.openbmc_project.Example.Iface2 |
| 74 | property: ExampleProperty3 |
| 75 | service: phosphor.inventory.test.example |
| 76 | value: |
| 77 | value: 99 |
| 78 | type: int64 |
| 79 | actions: |
| 80 | - name: destroyObjects |
| 81 | paths: |
| 82 | - /deleteme3 |
| 83 | |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 84 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |