History log of /openbmc/phosphor-dbus-monitor/src/example/example.yaml (Results 1 – 22 of 22)
Revision Date Author Comments
# 0c1e024f 17-Jun-2024 Manojkiran Eda <manojkiran.eda@gmail.com>

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://githu

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://github.com/codespell-project/codespell

Change-Id: Iccc8a6107616afb3a6b772420651e717a688ce86
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...


# 2b31c988 08-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

prettier: re-format

Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.

prettier: re-format

Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.

Change-Id: Ic8409eb3e05a90c64d1601429e8e5208dde01df9
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 98d6462a 24-May-2022 Lei YU <yulei.sh@bytedance.com>

propertywatch: Add ignore_start_callback config

Add an optional `ignore_start_callback` config to indicate if the
callback shall be ignored on start.

By default the callbacks in property watch are

propertywatch: Add ignore_start_callback config

Add an optional `ignore_start_callback` config to indicate if the
callback shall be ignored on start.

By default the callbacks in property watch are called on start.
There are cases where we do not want such behavior and only expect
callbacks on property changes.

Add the `ignore_start_callback` so that we could config a watch to not
trigger the start callback.

Tested: Verify the callback is not called if the watch config has
`ignore_start_callback: true`

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I7e5887cc8b0d0775d9b3d689f1511250667aaa5b

show more ...


# ae786ef6 04-Sep-2019 Matthew Barth <msbarth@us.ibm.com>

Add filters option to property watch class

Each property changed signal calls a defined callback, an optional set
of filters can be defined to filter out property values not intended to
be used with

Add filters option to property watch class

Each property changed signal calls a defined callback, an optional set
of filters can be defined to filter out property values not intended to
be used within the callback. These filters can be setup to eliminate
property value(s) that should be ignored per property group and its
configured callback.

ex.) Handle errant sensor values that could occur from a faulty device
so these values do not cause unwanted results from a callback function.

Example config entry to throw out an ambient temperature less than 0C or
greater than 100C:

- name: watch ambient temps
description: >
'Filter the ambient temps, discarding any value that
does not pass, then trigger the callback logic.'
class: watch
watch: property
paths: ambient sensors
properties: ambient temp
callback: median temps
filters:
- op: '>='
bound: 0
- op: '<='
bound: 100000

Tested:
Generate a single filter function against a group of properties
Generate multiple filter functions against a group of properties
Property values are cleared when it fails to pass a filter
Property values that pass all filters are updated

Change-Id: Id5126263096b4787a40befdb14cf3514038df3ed
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>

show more ...


# 80c70610 12-Apr-2018 Marri Devender Rao <devenrao@in.ibm.com>

Modify parser and add mako scripts for watch on object path

Added support for watch and callback on 'interface added'
signal for the specified object paths.

Added mako scripts for events to auto cr

Modify parser and add mako scripts for watch on object path

Added support for watch and callback on 'interface added'
signal for the specified object paths.

Added mako scripts for events to auto create callback
and watch objects for the specified object path groups.

Clients specify object paths to watch and callbacks to
invoke in the config.yaml file

Change-Id: I3fa2ea1520649120b927c0cb83a16e5cace2f24e
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>

show more ...


# 3c5318d8 19-Feb-2018 Matt Spinler <spinler@us.ibm.com>

Add ElogWithMetaDataCapture class

This callback class will create an error log with
exactly 1 metadata field, which takes a string. This
metadata field will be filled in with the property paths,
na

Add ElogWithMetaDataCapture class

This callback class will create an error log with
exactly 1 metadata field, which takes a string. This
metadata field will be filled in with the property paths,
names, and values of the properties that passed the
condition checks that caused the callback to be called
in the first place.

Tested: Ran with YAML rules that used this callback and
checked that everything worked as specified.

Change-Id: Ib37206c63385939c583a09e7ba979d6e016691f6
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


# c458deea 19-Feb-2018 Matt Spinler <spinler@us.ibm.com>

Add oneshot support to count conditions

When a count condition is a oneshot, it will only
trigger the callback the first time the condition
is true. The condition needs to evaluate to false
at leas

Add oneshot support to count conditions

When a count condition is a oneshot, it will only
trigger the callback the first time the condition
is true. The condition needs to evaluate to false
at least once to rearm the callback.

A use case for this would be when a group of properties
is being watched for a subset of them hit a certain value.
Even though every properties changed signal for every property
in the group would check the condition, only the first time
the condition is true would the callback be issued.

This behavior is specified with a 'oneshot: true' entry in
the YAML. If not present, it defaults to false which is
the original behavior.

Tested: Verify this does indeed do what is advertised by
modifying condition rules to consistently pass
and checking behavior.

Change-Id: Ie185621e86c605234bf329a5f38317267dbb6fb6
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


# 40e0db46 13-Oct-2017 Ratan Gupta <ratagupt@in.ibm.com>

Adding the section for event call back.

eg:-
- name: example event callback
description: >
'Callbacks are actions PDM should take when instructed to do so.

Some callback types refer to a

Adding the section for event call back.

eg:-
- name: example event 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 event callback creates the event D-Bus object with the given name
and the event message.
eg /xyz/openbmc_project/events/test/<id>'
class: callback
callback: event
paths: example path group
properties: example property group
eventName: test
eventMessage: "Test configuration changed."

When fully implemented, event callbacks will create DBus objects for
preconfigured DBus events.

Change-Id: I73d46a9bc630763cc1a74877803a638f3a8d1e1f
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>

show more ...


# f7a6a462 01-Nov-2017 Matt Spinler <spinler@us.ibm.com>

Add resolve callout example

Change-Id: Ie80bff38947a79cc686eaf9db9c80453d28a4fb6
Signed-off-by: Matt Spinler <spinler@us.ibm.com>


# acac602d 14-Aug-2017 Gunnar Mills <gmills@us.ibm.com>

Add elog to example.yaml

Change-Id: I97f73dd310cae4b2d67122bc51414e2a5397f0b3
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>


# 2df09e24 31-Jul-2017 Gunnar Mills <gmills@us.ibm.com>

Grammar fixes in example.yaml

Change-Id: Ia9ae40f1bd590945e2fee662e4437b92c8bd9b09
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>


# babf3b78 31-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

pdmgen: Require uppercase meta keys

journald ignores lowercase metadata keys so require them
to be uppercase. Abort the config file parse when lowercase
keys are found.

Change-Id: Icffffdc6680b4d3

pdmgen: Require uppercase meta keys

journald ignores lowercase metadata keys so require them
to be uppercase. Abort the config file parse when lowercase
keys are found.

Change-Id: Icffffdc6680b4d305329c3395f8e2fda6210964f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 3539db64 30-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add deferrable callbacks

Deferrable callbacks delay callback invocation until a
pre configured length of time has elapsed. One example
scenario where deferrable callbacks help is to avoid
oscillati

Add deferrable callbacks

Deferrable callbacks delay callback invocation until a
pre configured length of time has elapsed. One example
scenario where deferrable callbacks help is to avoid
oscillation when testing a condition and making callbacks
frequently.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I180c99b57ec1c9bde4da76d947a026f809341c8a

show more ...


# 0df00be0 25-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Method support

Add support for a method callback. The method callback enables
arbitrary DBus method calls. A sample use case could be
starting a systemd unit via the sytemd DBus API.

Change-Id: I

Method support

Add support for a method callback. The method callback enables
arbitrary DBus method calls. A sample use case could be
starting a systemd unit via the sytemd DBus API.

Change-Id: If25131d11497c82f862ae1f47da066c5fd8b2e2e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# fccdc39f 22-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Link watches to callbacks

Callbacks must ultimately be triggered when a property
is updated by a watch. Add that support.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I20130

Link watches to callbacks

Callbacks must ultimately be triggered when a property
is updated by a watch. Add that support.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I20130a11c19ddcf2c4ae45800f2068b31950bcd6

show more ...


# 4041d720 21-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add conditional callbacks

Enable conditional application of callbacks.

Change-Id: I9d765e5f585aac40994b65da3b51ea891beae9bf
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>


# 49e66175 23-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add callback groups

Allow named collections of callbacks to be defined and used anywhere
callbacks are used.

Change-Id: I3224aa06b2250e9a055bc70d20c186caecd033af
Signed-off-by: Brad Bishop <bradley

Add callback groups

Allow named collections of callbacks to be defined and used anywhere
callbacks are used.

Change-Id: I3224aa06b2250e9a055bc70d20c186caecd033af
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# c1283ae8 20-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

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.

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

show more ...


# 4b916f13 23-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add property watches

Property watches cache DBus property values given an externally
supplied index of property names and paths, in an externally
supplied storage location.

Change-Id: I155081da88c3

Add property watches

Property watches cache DBus property values given an externally
supplied index of property names and paths, in an externally
supplied storage location.

Change-Id: I155081da88c3ab0e4f6a13b012fc9719203b1888
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# e73b2c35 23-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add property and property group support

Add support for defining groups of DBus properties. Groups are
a list of property/interface/metadata tuples. Metadata can be used to
give a property context

Add property and property group support

Add support for defining groups of DBus properties. Groups are
a list of property/interface/metadata tuples. Metadata can be used to
give a property context when required.

Change-Id: I5fc27f4d815b53332a2ddea2d270fde8e355dcbc
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 0e7df131 23-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add path and path group support

Add support for defining groups of object paths. Groups are
a list of path/metadata tuples. Metadata can be used to
give a path context when required.

Change-Id: I

Add path and path group support

Add support for defining groups of object paths. Groups are
a list of path/metadata tuples. Metadata can be used to
give a path context when required.

Change-Id: I355ebf76b40f2ffc8d783e94e888b930cde8ee9c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 870c3fc6 22-May-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

build: General build refactoring

Add vars.mk for variable sharing across makefiles.
Stub and rename example YAML file and template.
Content to be re-introduced as support is added.
Move generated

build: General build refactoring

Add vars.mk for variable sharing across makefiles.
Stub and rename example YAML file and template.
Content to be re-introduced as support is added.
Move generated C++ to a header file.
Add input YAML path option to configure.

Change-Id: Ia06e392e8b120b1e1d8614046064fa432a6f9e18
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...