13 #ifndef __PROCESS_METRICS_METRICS_HPP__
14 #define __PROCESS_METRICS_METRICS_HPP__
51 static std::string help();
58 authenticationRealm(_authenticationRealm)
69 static std::list<Future<double>> _snapshotTimeout(
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
Future< std::map< std::string, double > > snapshot(const Option< Duration > &timeout)
Definition: metrics.hpp:121
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)
Future< Nothing > add(const T &metric)
Definition: metrics.hpp:95
Definition: hashmap.hpp:38
void dispatch(const PID< T > &pid, void(T::*method)())
Definition: dispatch.hpp:174
Future< std::map< std::string, double > > snapshot(const Option< Duration > &timeout)
virtual void initialize()
Invoked when a process gets spawned.
static MetricsProcess * create(const Option< std::string > &authenticationRealm)
Try< std::vector< Entry > > list(const std::string &hierarchy, const std::string &cgroup)
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
A "process identifier" used to uniquely identify a process when dispatching messages.
Definition: pid.hpp:279
Future< Nothing > add(Owned< Metric > metric)
Definition: process.hpp:493
PID< MetricsProcess > metrics
constexpr const char * name
Definition: shell.hpp:41
Definition: statistics.hpp:30