Age | Commit message (Collapse) | Author |
|
Before this patch, the logging code was optional in tedge-cli. But we
always want to build this piece of code.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
console-subscriber needs unstable tokio features and we do not want that
right now to be included. This also simplifies building tedge-cli with
all features enabled.
Before, one had to specify them and to take care of not specifying
"core_debugging", now `--all-features` should suffice.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
This was forgotten in the branch that lead to merge
c7a4190b54d2e462cb602dd82fa950502351df50, which included the API change
adaptions.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Fixes: c7a4190b54d2e462cb602dd82fa950502351df50 ("Merge branch 'feature/add_tedge_api/integrate-api' into feature/add_tedge_api_impl")
|
|
feature/add_tedge_api_impl
Integrates the latest API changes for self-describing configuration
types.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
feature/add_tedge_api/integrate-api
|
|
|
|
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
While HashMaps represent the idea of a 'struct' better, it has some
drawbacks:
- iteration order is random
- constructing it requires random state (minor)
A vector here saves the same purpose but without the above drawbacks.
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
Wrapping another config is very useful for narrowing down configs. This
patch adds this possibility for authors.
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
|
|
feature/add_tedge_api_impl
|
|
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
This patch adds a plugin that can be used to generate a notification if
a message is received.
This is helpful in combination with the filter plugin:
* Filter measurements for value > 100, if value is greater (condition
matches), forward the message to the notification plugin
Otherwise send to plugin P
* The notification plugin generates a notification if it receives a
message and sends this warning to a configured plugin.
The message itself is forwarded (to P).
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
This patch makes the by-default-included log plugin able to handle
messages of type `Notification`.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
This type can be used to send some form of notification between plugins.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
feature/add_tedge_api_impl
This merge integrates the latest changes in the API which improve the
message-reply-handling as well as brings "any message support".
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
This patch fixes the MessageType handling. In
commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage & AnyMessages")
we changed the message type handling so that we can use the new
`MessageType` type instead of raw `str` and `TypeId`.
Because this type cannot implement `Eq`, `PartialEq` and `Hash`, we can
no longer store this information in `HashSet`.
Thus, change the implementation to store this information in `Vec`.
Because of the small problem size we're talking about here (lower 10s),
this is okay.
Suggested-by: Marcel Müller <m.mueller@ifm.com>
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
In commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage &
AnyMessages")
The `ReplySender` was renamed to `ReplySenderFor` and its interface was
changed so that we can specify the plugin_sysstat message type of the
original instead of the message type of the reply.
This commit adapts the plugin_sysstat implementation for this change.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
change
In commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage &
AnyMessages")
The `ReplySender` was renamed to `ReplySenderFor` and its interface was
changed so that we can specify the plugin_mqtt_measurement_bridge
message type of the original instead of the message type of the reply.
This commit adapts the plugin_mqtt_measurement_bridge implementation for
this change.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
In commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage &
AnyMessages")
The `ReplySender` was renamed to `ReplySenderFor` and its interface was
changed so that we can specify the plugin_mqtt message type of the
original instead of the message type of the reply.
This commit adapts the plugin_mqtt implementation for this change.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
In commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage &
AnyMessages")
The `ReplySender` was renamed to `ReplySenderFor` and its interface was
changed so that we can specify the plugin_measurement_filter message
type of the original instead of the message type of the reply.
This commit adapts the plugin_measurement_filter implementation for this
change.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
In commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage &
AnyMessages")
The `ReplySender` was renamed to `ReplySenderFor` and its interface was
changed so that we can specify the plugin_log message type of the
original instead of the message type of the reply.
This commit adapts the plugin_log implementation for this change.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
In commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage &
AnyMessages")
The `ReplySender` was renamed to `ReplySenderFor` and its interface was
changed so that we can specify the message type of the original instead
of the message type of the reply.
This commit adapts the plugin_avg implementation for this change.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
I don't know how this slipped in, but the sysstat plugin should just
fire-and-forget its measurements and not wait for replies at all.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
This is necessary so we do not need to allocate a `String` for a
`DirectoryError::PluginDoesNotSupport`, if we need to raise it.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Merge in the changes in the API that allow catchall message handler
implementations.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|
|
feature/add_tedge_api_impl
|
|
feature/add_tedge_api_impl
|
|
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
|