AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MonitoringInterface.h
1
6#pragma once
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>
13
14namespace Aws
15{
16 namespace Monitoring
17 {
21 class AWS_CORE_API MonitoringInterface
22 {
23 public:
24 virtual ~MonitoringInterface() = default;
25
35 virtual void* OnRequestStarted(const Aws::String& serviceName, const Aws::String& requestName,
36 const std::shared_ptr<const Aws::Http::HttpRequest>& request) const = 0;
37
48 virtual void OnRequestSucceeded(const Aws::String& serviceName,
49 const Aws::String& requestName, const std::shared_ptr<const Aws::Http::HttpRequest>& request,
50 const Aws::Client::HttpResponseOutcome& outcome, const CoreMetricsCollection& metricsFromCore, void* context) const = 0;
51
62 virtual void OnRequestFailed(const Aws::String& serviceName,
63 const Aws::String& requestName, const std::shared_ptr<const Aws::Http::HttpRequest>& request,
64 const Aws::Client::HttpResponseOutcome& outcome, const CoreMetricsCollection& metricsFromCore, void* context) const = 0;
65
74 virtual void OnRequestRetry(const Aws::String& serviceName, const Aws::String& requestName,
75 const std::shared_ptr<const Aws::Http::HttpRequest>& request, void* context) const = 0;
76
85 virtual void OnFinish(const Aws::String& serviceName, const Aws::String& requestName,
86 const std::shared_ptr<const Aws::Http::HttpRequest>& request, void* context) const = 0;
87 };
88 } // namespace Monitoring
89} // namespace Aws
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 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
Definition AWSString.h:97