summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-11-01 10:51:19 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-11-14 11:14:53 -0600
commitf7a6a462e357726fa20aa487d838a4890100d46f (patch)
treef8e9a0e7bfb723aebfcab8bd11c3871ba78bc6b6
parent1d6ca484ee58c9ab44b4efc66c5b7dfc89b0c2f1 (diff)
downloadphosphor-dbus-monitor-f7a6a462e357726fa20aa487d838a4890100d46f.tar.gz
phosphor-dbus-monitor-f7a6a462e357726fa20aa487d838a4890100d46f.zip
Add resolve callout example
Change-Id: Ie80bff38947a79cc686eaf9db9c80453d28a4fb6 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
-rw-r--r--src/example/example.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/example/example.yaml b/src/example/example.yaml
index 264a71e..16cdce8 100644
--- a/src/example/example.yaml
+++ b/src/example/example.yaml
@@ -114,6 +114,22 @@
- value: replace
type: string
+- name: example resolve callouts callback
+ description: >
+ 'The resolve callout callback resolves all error log entries that
+ are associated with the inventory path specified by setting the
+ Resolved property in the entries to true.
+
+ A use case could be to watch the Present property on the inventory
+ item and resolve all errors for it when a new one is plugged in and
+ the property changes to true.'
+
+ class: callback
+ callback: resolve callout
+ paths: example path group
+ properties: example property group
+ callout: /xyz/openbmc_project/inventory/system/chassis/motherboard/fan0
+
- name: example callback group
description: >
'Callbacks groups are simply named collections of other callbacks.
OpenPOWER on IntegriCloud