public class CloudWatchFacadeImpl extends Object implements CloudWatchFacade
| Modifier and Type | Field and Description |
|---|---|
protected software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient |
client |
| Constructor and Description |
|---|
CloudWatchFacadeImpl(CloudWatchWriterConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient |
client()
Returns the CloudWatch Logs client, lazily constructing it if needed.
|
void |
createLogGroup() |
void |
createLogStream() |
String |
findLogGroup() |
String |
findLogStream() |
void |
putEvents(List<LogMessage> messages) |
void |
setLogGroupRetention() |
void |
shutdown() |
protected software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient client
public CloudWatchFacadeImpl(CloudWatchWriterConfig config)
public String findLogGroup()
findLogGroup in interface CloudWatchFacadepublic void createLogGroup()
createLogGroup in interface CloudWatchFacadepublic void setLogGroupRetention()
setLogGroupRetention in interface CloudWatchFacadepublic String findLogStream()
findLogStream in interface CloudWatchFacadepublic void createLogStream()
createLogStream in interface CloudWatchFacadepublic void putEvents(List<LogMessage> messages)
putEvents in interface CloudWatchFacadepublic void shutdown()
shutdown in interface CloudWatchFacadeprotected software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient client()
This method is not threadsafe; it should be called only from the writer thread.
Copyright © 2023. All rights reserved.