|
Aws::CloudWatchLogs::ROSCloudWatchLogsErrors | CheckLogGroupExists (const std::string &log_group) override |
| Check if a log group exists. More...
|
|
Aws::CloudWatchLogs::ROSCloudWatchLogsErrors | CheckLogStreamExists (const std::string &log_group, const std::string &log_stream, Aws::CloudWatchLogs::Model::LogStream *log_stream_object) override |
| Check if a log stream in a log group exists. More...
|
|
Aws::CloudWatchLogs::ROSCloudWatchLogsErrors | CreateLogGroup (const std::string &log_group) override |
| Creates a log group. More...
|
|
Aws::CloudWatchLogs::ROSCloudWatchLogsErrors | CreateLogStream (const std::string &log_group, const std::string &log_stream) override |
| Creates a log stream in the specified log group. More...
|
|
Aws::CloudWatchLogs::ROSCloudWatchLogsErrors | GetLogStreamToken (const std::string &log_group, const std::string &log_stream, Aws::String &next_token) override |
| Gets the next sequence token to use for sending logs to cloudwatch. More...
|
|
| MockCloudWatchFacade () |
|
void | Reset () |
|
Aws::CloudWatchLogs::ROSCloudWatchLogsErrors | SendLogsToCloudWatch (Aws::String &next_token, const std::string &last_log_group, const std::string &last_log_stream, std::list< Aws::CloudWatchLogs::Model::InputLogEvent > &logs) override |
|
| CloudWatchLogsFacade (const Aws::Client::ClientConfiguration &client_config) |
| Creates a new CloudWatchLogsFacade. More...
|
|
| CloudWatchLogsFacade (const std::shared_ptr< Aws::CloudWatchLogs::CloudWatchLogsClient > &cw_client) |
| Creates a new CloudWatchLogsFacade with an existing client. More...
|
|
virtual Aws::CloudWatchLogs::ROSCloudWatchLogsErrors | SendLogsToCloudWatch (Aws::String &next_token, const std::string &log_group, const std::string &log_stream, LogCollection &logs) |
| Sends a list of logs to CloudWatch. More...
|
|
virtual | ~CloudWatchLogsFacade ()=default |
|
Definition at line 29 of file log_publisher_test.cpp.
MockCloudWatchFacade::MockCloudWatchFacade |
( |
| ) |
|
|
inline |
Check if a log stream in a log group exists.
- Parameters
-
log_group | Name of the log group |
log_stream | Name of the stream |
log_stream_object | A log stream object that contains information about the log stream |
- Returns
- An error code that will be SUCCESS if log stream is successfully found
Reimplemented from Aws::CloudWatchLogs::Utils::CloudWatchLogsFacade.
Definition at line 67 of file log_publisher_test.cpp.
Gets the next sequence token to use for sending logs to cloudwatch.
- Parameters
-
log_group | Name of the log group |
log_stream | Name of the stream |
- Returns
- An error code of SUCCESS if the specified log stream in the log group can be found and has a next sequence token (a new stream will not have a sequence token)
Reimplemented from Aws::CloudWatchLogs::Utils::CloudWatchLogsFacade.
Definition at line 93 of file log_publisher_test.cpp.
void MockCloudWatchFacade::Reset |
( |
| ) |
|
|
inline |
Aws::CloudWatchLogs::ROSCloudWatchLogsErrors MockCloudWatchFacade::SendLogsToCloudWatch |
( |
Aws::String & |
next_token, |
|
|
const std::string & |
last_log_group, |
|
|
const std::string & |
last_log_stream, |
|
|
std::list< Aws::CloudWatchLogs::Model::InputLogEvent > & |
logs |
|
) |
| |
|
inlineoverride |
bool MockCloudWatchFacade::fail_cw_create_log_group {} |
bool MockCloudWatchFacade::fail_cw_create_log_stream {} |
bool MockCloudWatchFacade::fail_cw_init_token {} |
bool MockCloudWatchFacade::fail_cw_log_group {} |
bool MockCloudWatchFacade::fail_cw_log_stream {} |
bool MockCloudWatchFacade::fail_cw_send_logs {} |
std::string MockCloudWatchFacade::last_log_group |
std::string MockCloudWatchFacade::last_log_stream |
std::list<Aws::CloudWatchLogs::Model::InputLogEvent> MockCloudWatchFacade::last_logs |
Aws::String MockCloudWatchFacade::next_token |
uint32_t MockCloudWatchFacade::send_logs_call_count {} |
The documentation for this class was generated from the following file: