Interface AwsCloudWatchConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionReturns the AWS CloudWatch log group name for event logging.Returns the AWS CloudWatch log stream name for event logging.Returns the AWS region where CloudWatch logs should be sent.booleanReturns the synchronous mode setting for CloudWatch logging.
-
Method Details
-
awsCloudWatchLogGroup
@WithName("log-group") @WithDefault("polaris-cloudwatch-default-group") String awsCloudWatchLogGroup()Returns the AWS CloudWatch log group name for event logging.The log group is a collection of log streams that share the same retention, monitoring, and access control settings. If not specified, defaults to "polaris-cloudwatch-default-group".
Configuration property:
polaris.event-listener.aws-cloudwatch.log-group- Returns:
- a String containing the log group name, or the default value if not configured
-
awsCloudWatchLogStream
@WithName("log-stream") @WithDefault("polaris-cloudwatch-default-stream") String awsCloudWatchLogStream()Returns the AWS CloudWatch log stream name for event logging.A log stream is a sequence of log events that share the same source. Each log stream belongs to one log group. If not specified, defaults to "polaris-cloudwatch-default-stream".
Configuration property:
polaris.event-listener.aws-cloudwatch.log-stream- Returns:
- a String containing the log stream name, or the default value if not configured
-
awsCloudWatchRegion
Returns the AWS region where CloudWatch logs should be sent.This specifies the AWS region for the CloudWatch service endpoint. The region must be a valid AWS region identifier. If not specified, defaults to "us-east-1".
Configuration property:
polaris.event-listener.aws-cloudwatch.region- Returns:
- a String containing the AWS region, or the default value if not configured
-
synchronousMode
@WithName("synchronous-mode") @WithDefault("false") boolean synchronousMode()Returns the synchronous mode setting for CloudWatch logging.When set to "true", log events are sent to CloudWatch synchronously, which may impact application performance but ensures immediate delivery. When set to "false" (default), log events are sent asynchronously for better performance.
Configuration property:
polaris.event-listener.aws-cloudwatch.synchronous-mode- Returns:
- a boolean value indicating the synchronous mode setting
-