AWS SDK for C++  1.9.160
AWS SDK for C++
MonitoringManager.h
Go to the documentation of this file.
1 
7 #pragma once
13 
14 namespace 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  }
64 }
Aws::Monitoring::OnRequestRetry
void OnRequestRetry(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
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
CoreMetrics.h
Aws::Monitoring::InitMonitoring
AWS_CORE_API void InitMonitoring(const std::vector< MonitoringFactoryCreateFunction > &monitoringFactoryCreateFunctions)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Monitoring::OnRequestSucceeded
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)
AWSVector.h
Aws::Monitoring::CleanupMonitoring
AWS_CORE_API void CleanupMonitoring()
AWSString.h
Aws::Monitoring::MonitoringFactoryCreateFunction
std::function< Aws::UniquePtr< MonitoringFactory >)> MonitoringFactoryCreateFunction
Definition: MonitoringManager.h:49
Core_EXPORTS.h
Aws::Monitoring::OnFinish
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
Definition: AccessManagementClient.h:15
Aws::Monitoring::OnRequestFailed
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::Utils::Outcome
Definition: Outcome.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSClient.h
Aws::Monitoring::OnRequestStarted
Aws::Vector< void * > OnRequestStarted(const Aws::String &serviceName, const Aws::String &requestName, const std::shared_ptr< const Aws::Http::HttpRequest > &request)
Aws::Monitoring::CoreMetricsCollection
Definition: CoreMetrics.h:18