Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
monitoring_api.cc File Reference
#include "monitoring_api.h"
#include <chrono>
#include <cstdint>
#include <expected>
#include <nlohmann/json.hpp>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include "core/util.h"
Include dependency graph for monitoring_api.cc:

Namespaces

namespace  mm
 

Functions

std::optional< WsCommandmm::parseWsCommand (std::string_view message)
 Parses an inbound monitoring-WebSocket text message into a subscribe/unsubscribe command.
 
std::expected< mm::node::Monitoring, std::string > mm::parseMonitoringRequest (const nlohmann::json &body)
 Parses a POST /api/monitorings request body into a Monitoring config.