4#include <nlohmann/json_fwd.hpp>
Definition cert_info.cc:13
std::optional< WsCommand > parseWsCommand(std::string_view message)
Parses an inbound monitoring-WebSocket text message into a subscribe/unsubscribe command.
Definition monitoring_api.cc:16
std::expected< mm::node::Monitoring, std::string > parseMonitoringRequest(const nlohmann::json &body)
Parses a POST /api/monitorings request body into a Monitoring config.
Definition monitoring_api.cc:47
A client request received over the monitoring WebSocket to (un)subscribe to a topic.
Definition monitoring_api.h:14
Action
Definition monitoring_api.h:15
std::string topic
Validated URL-safe topic (a monitoring id).
Definition monitoring_api.h:17
Action action
Definition monitoring_api.h:16