summaryrefslogtreecommitdiffstats
path: root/src/example/example.yaml
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-20 21:42:38 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-19 16:26:44 -0400
commitc1283ae8472dbd4e2c3593b76b7600ac72640b80 (patch)
tree1e45c148d19a59a561df430a1f4ba3728196d910 /src/example/example.yaml
parent893b348890781dba2603ead61cf6f724350d0b47 (diff)
downloadphosphor-dbus-monitor-c1283ae8472dbd4e2c3593b76b7600ac72640b80.tar.gz
phosphor-dbus-monitor-c1283ae8472dbd4e2c3593b76b7600ac72640b80.zip
Add support for callbacks
Callbacks are the response in the PDM 'trigger->response' model. Add general support for implementing callbacks and implement a log to systemd journal using that framework. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I8bead5368ee5472a02b47e8bba9e9df3a1f346bc
Diffstat (limited to 'src/example/example.yaml')
-rw-r--r--src/example/example.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/example/example.yaml b/src/example/example.yaml
index 4e216cd..171aeaa 100644
--- a/src/example/example.yaml
+++ b/src/example/example.yaml
@@ -53,3 +53,24 @@
watch: property
paths: example path group
properties: example property group
+
+- name: example journal callback
+ description: >
+ 'Callbacks are actions PDM should take when instructed to do so.
+
+ Some callback types refer to a group of paths and group of properties
+ in a similar fashion as the property watch directive.
+
+ The journal callback logs the specified message to the systemd journal
+ with the specified severity.
+
+ Additionally, the journal callback will add to the journal key value
+ pair metadata for each property in the specified property group with
+ the key being the property element metadata and the value being the
+ property value.'
+ class: callback
+ callback: journal
+ paths: example path group
+ properties: example property group
+ severity: INFO
+ message: Hello world from PDM!
OpenPOWER on IntegriCloud