7#include <aws/core/Core_EXPORTS.h>
8#include <aws/core/client/AWSClient.h>
9#include <aws/core/monitoring/MonitoringInterface.h>
10#include <aws/core/monitoring/MonitoringFactory.h>
11#include <aws/core/net/SimpleUDP.h>
23 const static char DEFAULT_CSM_CONFIG_ENABLED[];
24 const static char DEFAULT_CSM_CONFIG_CLIENT_ID[];
25 const static char DEFAULT_CSM_CONFIG_HOST[];
26 const static char DEFAULT_CSM_CONFIG_PORT[];
27 const static char DEFAULT_CSM_ENVIRONMENT_VAR_ENABLED[];
28 const static char DEFAULT_CSM_ENVIRONMENT_VAR_CLIENT_ID[];
29 const static char DEFAULT_CSM_ENVIRONMENT_VAR_HOST[];
30 const static char DEFAULT_CSM_ENVIRONMENT_VAR_PORT[];
51 const std::shared_ptr<const Aws::Http::HttpRequest>& request,
void* context)
const override;
55 const std::shared_ptr<const Aws::Http::HttpRequest>& request,
void* context)
const override;
57 static inline int GetVersion() {
return DEFAULT_MONITORING_VERSION; }
Aws::UniquePtr< MonitoringInterface > CreateMonitoringInstance() const override
DefaultMonitoring(const Aws::String &clientId, const Aws::String &host, unsigned short port)
Construct a default monitoring instance.
void OnRequestRetry(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, void *context) const override
Once an API call retried the attempt and send the request again, this function will be called.
void * OnRequestStarted(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request) const override
This function lets you do preparation work when a http attempt(request) starts. It returns a pointer ...
void OnFinish(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, void *context) const override
This function will always be called by the SDK to signal the implementer that this request is done....
static const int DEFAULT_MONITORING_VERSION
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 override
Once a Http request finished and received "Failed" response, this function will be called.
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 override
Once a Http attempt finished and received "Succeeded" response, this function will be called.
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::unique_ptr< T, D > UniquePtr