Interface GetLogAnomalyDetectorResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<GetLogAnomalyDetectorResponse.Builder,
,GetLogAnomalyDetectorResponse> SdkBuilder<GetLogAnomalyDetectorResponse.Builder,
,GetLogAnomalyDetectorResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetLogAnomalyDetectorResponse
-
Method Summary
Modifier and TypeMethodDescriptionanomalyDetectorStatus
(String anomalyDetectorStatus) Specifies whether the anomaly detector is currently active.anomalyDetectorStatus
(AnomalyDetectorStatus anomalyDetectorStatus) Specifies whether the anomaly detector is currently active.anomalyVisibilityTime
(Long anomalyVisibilityTime) The number of days used as the life cycle of anomalies.creationTimeStamp
(Long creationTimeStamp) The date and time when this anomaly detector was created.detectorName
(String detectorName) The name of the log anomaly detectorevaluationFrequency
(String evaluationFrequency) Specifies how often the anomaly detector runs and look for anomalies.evaluationFrequency
(EvaluationFrequency evaluationFrequency) Specifies how often the anomaly detector runs and look for anomalies.filterPattern
(String filterPattern) Sets the value of the FilterPattern property for this object.The ARN of the KMS key assigned to this anomaly detector, if any.lastModifiedTimeStamp
(Long lastModifiedTimeStamp) The date and time when this anomaly detector was most recently modified.logGroupArnList
(String... logGroupArnList) An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.logGroupArnList
(Collection<String> logGroupArnList) An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
detectorName
The name of the log anomaly detector
- Parameters:
detectorName
- The name of the log anomaly detector- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupArnList
An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.
- Parameters:
logGroupArnList
- An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupArnList
An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.
- Parameters:
logGroupArnList
- An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationFrequency
Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting
evaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Parameters:
evaluationFrequency
- Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then settingevaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationFrequency
Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting
evaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Parameters:
evaluationFrequency
- Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then settingevaluationFrequency
toFIFTEEN_MIN
might be appropriate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
filterPattern
Sets the value of the FilterPattern property for this object.- Parameters:
filterPattern
- The new value for the FilterPattern property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorStatus
Specifies whether the anomaly detector is currently active. To change its status, use the
enabled
parameter in the UpdateLogAnomalyDetector operation.- Parameters:
anomalyDetectorStatus
- Specifies whether the anomaly detector is currently active. To change its status, use theenabled
parameter in the UpdateLogAnomalyDetector operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
anomalyDetectorStatus
GetLogAnomalyDetectorResponse.Builder anomalyDetectorStatus(AnomalyDetectorStatus anomalyDetectorStatus) Specifies whether the anomaly detector is currently active. To change its status, use the
enabled
parameter in the UpdateLogAnomalyDetector operation.- Parameters:
anomalyDetectorStatus
- Specifies whether the anomaly detector is currently active. To change its status, use theenabled
parameter in the UpdateLogAnomalyDetector operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kmsKeyId
The ARN of the KMS key assigned to this anomaly detector, if any.
- Parameters:
kmsKeyId
- The ARN of the KMS key assigned to this anomaly detector, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTimeStamp
The date and time when this anomaly detector was created.
- Parameters:
creationTimeStamp
- The date and time when this anomaly detector was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTimeStamp
The date and time when this anomaly detector was most recently modified.
- Parameters:
lastModifiedTimeStamp
- The date and time when this anomaly detector was most recently modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyVisibilityTime
The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal.
- Parameters:
anomalyVisibilityTime
- The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-