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