#include <log_publisher.h>
Wrapping class around the CloudWatch Logs API.
Definition at line 54 of file log_publisher.h.
Aws::CloudWatchLogs::LogPublisher::LogPublisher |
( |
const std::string & |
log_group, |
|
|
const std::string & |
log_stream, |
|
|
const Aws::Client::ClientConfiguration & |
client_config |
|
) |
| |
Creates a LogPublisher object that uses the provided client and SDK configuration Constructs a LogPublisher object that will use the provided CloudWatchClient and SDKOptions when it publishes logs.
- Parameters
-
client_config | The ClientConfiguration that this publisher will use to create the Client. |
Definition at line 41 of file log_publisher.cpp.
Creates a LogPublisher object that uses the provided client and SDK configuration Constructs a LogPublisher object that will use the provided CloudWatchClient and SDKOptions when it publishes logs.
- Parameters
-
cw_client | The CloudWatchClient that this publisher will use when pushing logs to CloudWatch. |
Definition at line 54 of file log_publisher.cpp.
Aws::CloudWatchLogs::LogPublisher::LogPublisher |
( |
const LogPublisher & |
other | ) |
|
|
delete |
Aws::CloudWatchLogs::LogPublisher::~LogPublisher |
( |
| ) |
|
|
overridedefault |
Check if the input status is related to a network failure.
- Parameters
-
- Returns
- true if connected to the internet, false otherwise
Definition at line 67 of file log_publisher.cpp.
bool Aws::CloudWatchLogs::LogPublisher::configure |
( |
| ) |
|
|
private |
bool Aws::CloudWatchLogs::LogPublisher::CreateGroup |
( |
| ) |
|
|
private |
Checks to see if a log group already exists and tries to create it if not.
Definition at line 77 of file log_publisher.cpp.
bool Aws::CloudWatchLogs::LogPublisher::CreateStream |
( |
| ) |
|
|
private |
Checks to see if a log stream already exists and tries to create it if not.
Definition at line 124 of file log_publisher.cpp.
bool Aws::CloudWatchLogs::LogPublisher::InitToken |
( |
Aws::String & |
next_token | ) |
|
|
private |
Fetches the token to use for writing logs to a stream.
Definition at line 162 of file log_publisher.cpp.
Aws::DataFlow::UploadStatus Aws::CloudWatchLogs::LogPublisher::publishData |
( |
std::list< Aws::CloudWatchLogs::Model::InputLogEvent > & |
data | ) |
|
|
overrideprivate |
void Aws::CloudWatchLogs::LogPublisher::resetInitToken |
( |
| ) |
|
|
private |
Reset the current init token to UNINITIALIZED_TOKEN
Definition at line 229 of file log_publisher.cpp.
bool Aws::CloudWatchLogs::LogPublisher::shutdown |
( |
| ) |
|
|
overridevirtual |
bool Aws::CloudWatchLogs::LogPublisher::start |
( |
| ) |
|
|
overridevirtual |
Aws::SDKOptions Aws::CloudWatchLogs::LogPublisher::aws_sdk_options_ |
|
private |
Aws::Client::ClientConfiguration Aws::CloudWatchLogs::LogPublisher::client_config_ |
|
private |
std::string Aws::CloudWatchLogs::LogPublisher::log_group_ |
|
private |
std::string Aws::CloudWatchLogs::LogPublisher::log_stream_ |
|
private |
std::recursive_mutex Aws::CloudWatchLogs::LogPublisher::mtx_ |
|
mutableprivate |
Aws::String Aws::CloudWatchLogs::LogPublisher::next_token |
|
private |
Aws::SDKOptions Aws::CloudWatchLogs::LogPublisher::options_ |
|
private |
The documentation for this class was generated from the following files: