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: setProperty + propertyChangedTo example |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 7 | description: > |
Brad Bishop | 22ecacc | 2016-12-01 08:38:06 -0500 | [diff] [blame] | 8 | Sets the value of ExampleProperty1 on /changeme |
| 9 | when the value of ExampleProperty2 on |
Brad Bishop | 8f86850 | 2017-01-23 13:13:58 -0500 | [diff] [blame] | 10 | /testing/trigger2 changes to yyyxxx. |
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 |
| 14 | interface: org.freedesktop.DBus.Properties |
Brad Bishop | 8f86850 | 2017-01-23 13:13:58 -0500 | [diff] [blame] | 15 | path: /testing/trigger2 |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 16 | member: PropertiesChanged |
Brad Bishop | 22ecacc | 2016-12-01 08:38:06 -0500 | [diff] [blame] | 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: yyyxxx |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 24 | actions: |
Brad Bishop | e2e402f | 2016-11-30 18:00:17 -0500 | [diff] [blame] | 25 | - name: setProperty |
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame] | 26 | interface: xyz.openbmc_project.Example.Iface1 |
| 27 | property: ExampleProperty1 |
| 28 | path: /changeme |
| 29 | value: |
| 30 | type: string |
| 31 | value: changed |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 32 | |
Brad Bishop | 56907e3 | 2017-01-31 14:43:04 -0500 | [diff] [blame] | 33 | - name: createObjects + propertyChangedTo example |
Brad Bishop | eb68a68 | 2017-01-22 00:58:54 -0500 | [diff] [blame] | 34 | description: > |
| 35 | Create /createme1 and /createme2 when the value of |
| 36 | ExampleProperty2 on /testing/trigger5 changes to abc123. |
| 37 | type: match |
| 38 | signatures: |
| 39 | - type: signal |
| 40 | interface: org.freedesktop.DBus.Properties |
| 41 | path: /testing/trigger5 |
| 42 | member: PropertiesChanged |
| 43 | filters: |
| 44 | - name: propertyChangedTo |
| 45 | interface: xyz.openbmc_project.Example.Iface2 |
| 46 | property: ExampleProperty2 |
| 47 | value: |
| 48 | type: string |
| 49 | value: abc123 |
| 50 | actions: |
| 51 | - name: createObjects |
| 52 | objs: |
| 53 | /createme1: |
| 54 | xyz.openbmc_project.Example.Iface1: |
| 55 | ExampleProperty1: |
| 56 | value: foo |
| 57 | type: string |
| 58 | xyz.openbmc_project.Example.Iface2: |
| 59 | ExampleProperty2: |
| 60 | value: bar |
| 61 | type: string |
| 62 | ExampleProperty3: |
| 63 | value: 999 |
| 64 | type: int64 |
| 65 | /createme2: |
| 66 | xyz.openbmc_project.Example.Iface1: |
| 67 | ExampleProperty1: |
| 68 | value: bar |
| 69 | type: string |
| 70 | xyz.openbmc_project.Example.Iface2: |
| 71 | ExampleProperty2: |
| 72 | value: foo |
| 73 | type: string |
| 74 | ExampleProperty3: |
| 75 | value: 888 |
| 76 | type: int64 |
| 77 | |
Brad Bishop | 3e4a19a | 2017-01-21 22:17:09 -0500 | [diff] [blame] | 78 | - name: startup event example |
| 79 | description: > |
| 80 | Create /createme3 at startup. |
| 81 | type: startup |
| 82 | actions: |
| 83 | - name: createObjects |
| 84 | objs: |
| 85 | /createme3: |
| 86 | xyz.openbmc_project.Example.Iface1: |
| 87 | ExampleProperty1: |
| 88 | value: foo |
| 89 | type: string |
| 90 | |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 91 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |