26#ifndef MYSQLROUTER_REST_ROUTING_CONNECTIONS_INCLUDED
27#define MYSQLROUTER_REST_ROUTING_CONNECTIONS_INCLUDED
33 static constexpr const char path_regex[] =
"^/routes/([^/]+)/connections/?$";
39 "timeConnectedToServer";
41 "timeLastSentToServer";
43 "timeLastReceivedFromServer";
50 const std::vector<std::string> &path_matches)
override;
a HTTP request and response.
Definition: http_request.h:453
handler for REST API calls.
Definition: rest_api_component.h:73
Definition: rest_routing_connections.h:31
static constexpr const char kKeySourceAddress[]
Definition: rest_routing_connections.h:37
static constexpr const char kKeyBytesFromServer[]
Definition: rest_routing_connections.h:34
static constexpr const char kKeyTimeLastReceivedFromServer[]
Definition: rest_routing_connections.h:42
static constexpr const char path_regex[]
Definition: rest_routing_connections.h:33
bool on_handle_request(HttpRequest &req, const std::string &base_path, const std::vector< std::string > &path_matches) override
Definition: rest_routing_connections.cc:38
static constexpr const char kKeyTimeConnectedToServer[]
Definition: rest_routing_connections.h:38
static constexpr const char kKeyTimeStarted[]
Definition: rest_routing_connections.h:44
static constexpr const char kKeyBytesToServer[]
Definition: rest_routing_connections.h:35
static constexpr const char kKeyDestinationAddress[]
Definition: rest_routing_connections.h:36
RestRoutingConnections(const std::string &require_realm)
Definition: rest_routing_connections.h:46
static constexpr const char kKeyTimeLastSentToServer[]
Definition: rest_routing_connections.h:40
constexpr pos_type Get
Definition: http_request.h:256
Definition: http_request.h:252