ark::rest::detail::EndpointMetricScope

Defined in header “ark/rest/rest_service.hh”.


This class is used to help assist in computing metrics for individual endpoints. It is only used internally.

Methods

  • EndpointMetricScope(RestService & service, const comms::HttpRequest & request)
    Constructor. Begins a metric capture.

  • ~EndpointMetricScope()
    Destructor. Finalizes timing information.

  • void successful()
    Closes out successfully (otherwise, assume an error).