4#include <nlohmann/json.hpp>
42 j = nlohmann::json{{
"enabled", status.
enabled}, {
"binaryPath", status.
binaryPath},
45 {
"error", status.
error}};
void to_json(nlohmann::json &j, const Status &status)
Serialises a Status. Free function found by ADL, as nlohmann expects.
Definition status.h:41
The state of the auto-tuning process, reported by GET /api/auto-tuning.
Definition status.h:22
bool enabled
autoTuning.enabled from the configuration.
Definition status.h:24
std::string version
Definition status.h:33
std::string binaryPath
The executable Motion Master looked for, resolved to an absolute path.
Definition status.h:26
bool installed
Whether a file exists at that path.
Definition status.h:28
bool started
Whether the process started and answered its health endpoint.
Definition status.h:30
std::uint16_t port
The loopback port it was told to serve on.
Definition status.h:35
std::string error
Why it is not running, when it is not. Empty when it is.
Definition status.h:37