AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MonitoringManager.h
1
7#pragma once
8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/client/AWSClient.h>
12#include <aws/core/monitoring/CoreMetrics.h>
13
14namespace Aws
15{
16 namespace Monitoring
17 {
18 class MonitoringFactory;
22 Aws::Vector<void*> OnRequestStarted(const Aws::String& serviceName, const Aws::String& requestName,
23 const std::shared_ptr<const Aws::Http::HttpRequest>& request);
24
28 void OnRequestSucceeded(const Aws::String& serviceName, const Aws::String& requestName, const std::shared_ptr<const Aws::Http::HttpRequest>& request,
29 const Aws::Client::HttpResponseOutcome& outcome, const CoreMetricsCollection& metricsFromCore, const Aws::Vector<void*>& contexts);
30
34 void OnRequestFailed(const Aws::String& serviceName, const Aws::String& requestName, const std::shared_ptr<const Aws::Http::HttpRequest>& request,
35 const Aws::Client::HttpResponseOutcome& outcome, const CoreMetricsCollection& metricsFromCore, const Aws::Vector<void*>& contexts);
36
40 void OnRequestRetry(const Aws::String& serviceName, const Aws::String& requestName,
41 const std::shared_ptr<const Aws::Http::HttpRequest>& request, const Aws::Vector<void*>& contexts);
42
46 void OnFinish(const Aws::String& serviceName, const Aws::String& requestName,
47 const std::shared_ptr<const Aws::Http::HttpRequest>& request, const Aws::Vector<void*>& contexts);
48
49 typedef std::function<Aws::UniquePtr<MonitoringFactory>()> MonitoringFactoryCreateFunction;
50
57 AWS_CORE_API void InitMonitoring(const std::vector<MonitoringFactoryCreateFunction>& monitoringFactoryCreateFunctions);
58
63 AWS_CORE_API void CleanupMonitoring();
64
68 AWS_CORE_API void AddMonitoring(const std::vector<MonitoringFactoryCreateFunction>& monitoringFactoryCreateFunctions);
69
70 }
71}
AWS_CORE_API void InitMonitoring(const std::vector< MonitoringFactoryCreateFunction > &monitoringFactoryCreateFunctions)
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, const Aws::Vector< void * > &contexts)
Aws::Vector< void * > OnRequestStarted(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request)
void OnRequestRetry(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, const Aws::Vector< void * > &contexts)
std::function< Aws::UniquePtr< MonitoringFactory >()> MonitoringFactoryCreateFunction
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, const Aws::Vector< void * > &contexts)
AWS_CORE_API void CleanupMonitoring()
void OnFinish(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request, const Aws::Vector< void * > &contexts)
AWS_CORE_API void AddMonitoring(const std::vector< MonitoringFactoryCreateFunction > &monitoringFactoryCreateFunctions)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97
std::vector< T, Aws::Allocator< T > > Vector
Definition AWSVector.h:17