@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLogAnomalyDetectorRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateLogAnomalyDetectorRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLogAnomalyDetectorRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateLogAnomalyDetectorRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateLogAnomalyDetectorRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getAnomalyVisibilityTime()
The number of days to have visibility on an anomaly.
|
String |
getDetectorName()
A name for this anomaly detector.
|
String |
getEvaluationFrequency()
Specifies how often the anomaly detector is to run and look for anomalies.
|
String |
getFilterPattern()
You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern
you specify here.
|
String |
getKmsKeyId()
Optionally assigns a KMS key to secure this anomaly detector and its findings.
|
List<String> |
getLogGroupArnList()
An array containing the ARN of the log group that this anomaly detector will watch.
|
Map<String,String> |
getTags()
An optional list of key-value pairs to associate with the resource.
|
int |
hashCode() |
void |
setAnomalyVisibilityTime(Long anomalyVisibilityTime)
The number of days to have visibility on an anomaly.
|
void |
setDetectorName(String detectorName)
A name for this anomaly detector.
|
void |
setEvaluationFrequency(String evaluationFrequency)
Specifies how often the anomaly detector is to run and look for anomalies.
|
void |
setFilterPattern(String filterPattern)
You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern
you specify here.
|
void |
setKmsKeyId(String kmsKeyId)
Optionally assigns a KMS key to secure this anomaly detector and its findings.
|
void |
setLogGroupArnList(Collection<String> logGroupArnList)
An array containing the ARN of the log group that this anomaly detector will watch.
|
void |
setTags(Map<String,String> tags)
An optional list of key-value pairs to associate with the resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateLogAnomalyDetectorRequest |
withAnomalyVisibilityTime(Long anomalyVisibilityTime)
The number of days to have visibility on an anomaly.
|
CreateLogAnomalyDetectorRequest |
withDetectorName(String detectorName)
A name for this anomaly detector.
|
CreateLogAnomalyDetectorRequest |
withEvaluationFrequency(EvaluationFrequency evaluationFrequency)
Specifies how often the anomaly detector is to run and look for anomalies.
|
CreateLogAnomalyDetectorRequest |
withEvaluationFrequency(String evaluationFrequency)
Specifies how often the anomaly detector is to run and look for anomalies.
|
CreateLogAnomalyDetectorRequest |
withFilterPattern(String filterPattern)
You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern
you specify here.
|
CreateLogAnomalyDetectorRequest |
withKmsKeyId(String kmsKeyId)
Optionally assigns a KMS key to secure this anomaly detector and its findings.
|
CreateLogAnomalyDetectorRequest |
withLogGroupArnList(Collection<String> logGroupArnList)
An array containing the ARN of the log group that this anomaly detector will watch.
|
CreateLogAnomalyDetectorRequest |
withLogGroupArnList(String... logGroupArnList)
An array containing the ARN of the log group that this anomaly detector will watch.
|
CreateLogAnomalyDetectorRequest |
withTags(Map<String,String> tags)
An optional list of key-value pairs to associate with the resource.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<String> getLogGroupArnList()
An array containing the ARN of the log group that this anomaly detector will watch. You can specify only one log group ARN.
public void setLogGroupArnList(Collection<String> logGroupArnList)
An array containing the ARN of the log group that this anomaly detector will watch. You can specify only one log group ARN.
logGroupArnList
- An array containing the ARN of the log group that this anomaly detector will watch. You can specify only
one log group ARN.public CreateLogAnomalyDetectorRequest withLogGroupArnList(String... logGroupArnList)
An array containing the ARN of the log group that this anomaly detector will watch. You can specify only one log group ARN.
NOTE: This method appends the values to the existing list (if any). Use
setLogGroupArnList(java.util.Collection)
or withLogGroupArnList(java.util.Collection)
if you
want to override the existing values.
logGroupArnList
- An array containing the ARN of the log group that this anomaly detector will watch. You can specify only
one log group ARN.public CreateLogAnomalyDetectorRequest withLogGroupArnList(Collection<String> logGroupArnList)
An array containing the ARN of the log group that this anomaly detector will watch. You can specify only one log group ARN.
logGroupArnList
- An array containing the ARN of the log group that this anomaly detector will watch. You can specify only
one log group ARN.public void setDetectorName(String detectorName)
A name for this anomaly detector.
detectorName
- A name for this anomaly detector.public String getDetectorName()
A name for this anomaly detector.
public CreateLogAnomalyDetectorRequest withDetectorName(String detectorName)
A name for this anomaly detector.
detectorName
- A name for this anomaly detector.public void setEvaluationFrequency(String evaluationFrequency)
Specifies how often the anomaly detector is to run 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 15 minutes might be a good setting for evaluationFrequency
.
evaluationFrequency
- Specifies how often the anomaly detector is to run 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 15 minutes might be a good setting for evaluationFrequency
.EvaluationFrequency
public String getEvaluationFrequency()
Specifies how often the anomaly detector is to run 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 15 minutes might be a good setting for evaluationFrequency
.
evaluationFrequency
.EvaluationFrequency
public CreateLogAnomalyDetectorRequest withEvaluationFrequency(String evaluationFrequency)
Specifies how often the anomaly detector is to run 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 15 minutes might be a good setting for evaluationFrequency
.
evaluationFrequency
- Specifies how often the anomaly detector is to run 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 15 minutes might be a good setting for evaluationFrequency
.EvaluationFrequency
public CreateLogAnomalyDetectorRequest withEvaluationFrequency(EvaluationFrequency evaluationFrequency)
Specifies how often the anomaly detector is to run 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 15 minutes might be a good setting for evaluationFrequency
.
evaluationFrequency
- Specifies how often the anomaly detector is to run 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 15 minutes might be a good setting for evaluationFrequency
.EvaluationFrequency
public void setFilterPattern(String filterPattern)
You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax.
filterPattern
- You can use this parameter to limit the anomaly detection model to examine only log events that match the
pattern you specify here. For more information, see Filter and
Pattern Syntax.public String getFilterPattern()
You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax.
public CreateLogAnomalyDetectorRequest withFilterPattern(String filterPattern)
You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax.
filterPattern
- You can use this parameter to limit the anomaly detection model to examine only log events that match the
pattern you specify here. For more information, see Filter and
Pattern Syntax.public void setKmsKeyId(String kmsKeyId)
Optionally assigns a KMS key to secure this anomaly detector and its findings. If a key is assigned, the anomalies found and the model used by this detector are encrypted at rest with the key. If a key is assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly detector to retrieve information about the anomalies that it finds.
For more information about using a KMS key and to see the required IAM policy, see Use a KMS key with an anomaly detector.
kmsKeyId
- Optionally assigns a KMS key to secure this anomaly detector and its findings. If a key is assigned, the
anomalies found and the model used by this detector are encrypted at rest with the key. If a key is
assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly
detector to retrieve information about the anomalies that it finds.
For more information about using a KMS key and to see the required IAM policy, see Use a KMS key with an anomaly detector.
public String getKmsKeyId()
Optionally assigns a KMS key to secure this anomaly detector and its findings. If a key is assigned, the anomalies found and the model used by this detector are encrypted at rest with the key. If a key is assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly detector to retrieve information about the anomalies that it finds.
For more information about using a KMS key and to see the required IAM policy, see Use a KMS key with an anomaly detector.
For more information about using a KMS key and to see the required IAM policy, see Use a KMS key with an anomaly detector.
public CreateLogAnomalyDetectorRequest withKmsKeyId(String kmsKeyId)
Optionally assigns a KMS key to secure this anomaly detector and its findings. If a key is assigned, the anomalies found and the model used by this detector are encrypted at rest with the key. If a key is assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly detector to retrieve information about the anomalies that it finds.
For more information about using a KMS key and to see the required IAM policy, see Use a KMS key with an anomaly detector.
kmsKeyId
- Optionally assigns a KMS key to secure this anomaly detector and its findings. If a key is assigned, the
anomalies found and the model used by this detector are encrypted at rest with the key. If a key is
assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly
detector to retrieve information about the anomalies that it finds.
For more information about using a KMS key and to see the required IAM policy, see Use a KMS key with an anomaly detector.
public void setAnomalyVisibilityTime(Long anomalyVisibilityTime)
The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will
be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal.
Therefore, if you do not correct the cause of an anomaly during the time period specified in
anomalyVisibilityTime
, it will be considered normal going forward and will not be detected as an
anomaly.
anomalyVisibilityTime
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it
will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly
as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in
anomalyVisibilityTime
, it will be considered normal going forward and will not be detected as
an anomaly.public Long getAnomalyVisibilityTime()
The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will
be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal.
Therefore, if you do not correct the cause of an anomaly during the time period specified in
anomalyVisibilityTime
, it will be considered normal going forward and will not be detected as an
anomaly.
anomalyVisibilityTime
, it will be considered normal going forward and will not
be detected as an anomaly.public CreateLogAnomalyDetectorRequest withAnomalyVisibilityTime(Long anomalyVisibilityTime)
The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will
be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal.
Therefore, if you do not correct the cause of an anomaly during the time period specified in
anomalyVisibilityTime
, it will be considered normal going forward and will not be detected as an
anomaly.
anomalyVisibilityTime
- The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it
will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly
as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in
anomalyVisibilityTime
, it will be considered normal going forward and will not be detected as
an anomaly.public Map<String,String> getTags()
An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
For more information about tagging, see Tagging Amazon Web Services resources
public void setTags(Map<String,String> tags)
An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
tags
- An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
public CreateLogAnomalyDetectorRequest withTags(Map<String,String> tags)
An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
tags
- An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
public CreateLogAnomalyDetectorRequest addTagsEntry(String key, String value)
public CreateLogAnomalyDetectorRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateLogAnomalyDetectorRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()