7#include <aws/core/Core_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/client/AWSError.h>
11#include <aws/core/client/AWSClient.h>
12#include <aws/core/monitoring/CoreMetrics.h>
36 const std::shared_ptr<const Aws::Http::HttpRequest>& request)
const = 0;
49 const Aws::String& requestName,
const std::shared_ptr<const Aws::Http::HttpRequest>& request,
63 const Aws::String& requestName,
const std::shared_ptr<const Aws::Http::HttpRequest>& request,
75 const std::shared_ptr<const Aws::Http::HttpRequest>& request,
void* context)
const = 0;
86 const std::shared_ptr<const Aws::Http::HttpRequest>& request,
void* context)
const = 0;
virtual void OnRequestRetry(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, void *context) const =0
Once an API call retried the attempt and send the request again, this function will be called.
virtual void OnFinish(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, void *context) const =0
This function will always be called by the SDK to signal the implementer that this request is done....
virtual ~MonitoringInterface()=default
virtual void * OnRequestStarted(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request) const =0
This function lets you do preparation work when a http attempt(request) starts. It returns a pointer ...
virtual void OnRequestSucceeded(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, const Aws::Client::HttpResponseOutcome &outcome, const CoreMetricsCollection &metricsFromCore, void *context) const =0
Once a Http attempt finished and received "Succeeded" response, this function will be called.
virtual void OnRequestFailed(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, const Aws::Client::HttpResponseOutcome &outcome, const CoreMetricsCollection &metricsFromCore, void *context) const =0
Once a Http request finished and received "Failed" response, this function will be called.
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String