13 #ifndef __PROCESS_METRICS_METRICS_HPP__ 14 #define __PROCESS_METRICS_METRICS_HPP__ 51 static std::string help();
58 authenticationRealm(_authenticationRealm)
73 std::vector<std::string>&& keys,
78 std::map<std::string, Owned<Metric>> metrics;
136 #endif // __PROCESS_METRICS_METRICS_HPP__
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
ProcessBase(const std::string &id="")
Definition: metrics.hpp:35
void initialize() override
Invoked when a process gets spawned.
bool initialize(const Option< std::string > &delegate=None(), const Option< std::string > &readwriteAuthenticationRealm=None(), const Option< std::string > &readonlyAuthenticationRealm=None())
Initialize the library.
Definition: metric.hpp:33
Future< Nothing > remove(const std::string &name)
Result< hashmap< std::string, uint64_t > > statistics(const std::string &link)
void dispatch(const PID< T > &pid, void(T::*method)())
Definition: dispatch.hpp:174
Future< std::map< std::string, double > > snapshot(const Option< Duration > &timeout)
static MetricsProcess * create(const Option< std::string > &authenticationRealm)
A "process identifier" used to uniquely identify a process when dispatching messages.
Definition: pid.hpp:289
Definition: attributes.hpp:24
Definition: executor.hpp:48
Future< Nothing > add(Owned< Metric > metric)
Definition: process.hpp:505
PID< MetricsProcess > metrics
constexpr const char * name
Definition: shell.hpp:41
Definition: statistics.hpp:32