/AWS1/IF_CWL=>UPDATELOGANOMALYDETECTOR()¶
About UpdateLogAnomalyDetector¶
Updates an existing log anomaly detector.
Method Signature¶
METHODS /AWS1/IF_CWL~UPDATELOGANOMALYDETECTOR
IMPORTING
!IV_ANOMALYDETECTORARN TYPE /AWS1/CWLANOMALYDETECTORARN OPTIONAL
!IV_EVALUATIONFREQUENCY TYPE /AWS1/CWLEVALUATIONFREQUENCY OPTIONAL
!IV_FILTERPATTERN TYPE /AWS1/CWLFILTERPATTERN OPTIONAL
!IV_ANOMALYVISIBILITYTIME TYPE /AWS1/CWLANOMALYVISIBILITYTIME OPTIONAL
!IV_ENABLED TYPE /AWS1/CWLBOOLEAN OPTIONAL
RAISING
/AWS1/CX_CWLINVALIDPARAMETEREX
/AWS1/CX_CWLOPERATIONABORTEDEX
/AWS1/CX_CWLRESOURCENOTFOUNDEX
/AWS1/CX_CWLSERVICEUNAVAILEX
/AWS1/CX_CWLCLIENTEXC
/AWS1/CX_CWLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_anomalydetectorarn TYPE /AWS1/CWLANOMALYDETECTORARN /AWS1/CWLANOMALYDETECTORARN¶
The ARN of the anomaly detector that you want to update.
iv_enabled TYPE /AWS1/CWLBOOLEAN /AWS1/CWLBOOLEAN¶
Use this parameter to pause or restart the anomaly detector.
Optional arguments:¶
iv_evaluationfrequency TYPE /AWS1/CWLEVALUATIONFREQUENCY /AWS1/CWLEVALUATIONFREQUENCY¶
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
evaluationFrequencytoFIFTEEN_MINmight be appropriate.
iv_filterpattern TYPE /AWS1/CWLFILTERPATTERN /AWS1/CWLFILTERPATTERN¶
filterPattern
iv_anomalyvisibilitytime TYPE /AWS1/CWLANOMALYVISIBILITYTIME /AWS1/CWLANOMALYVISIBILITYTIME¶
The number of days to use 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. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->updateloganomalydetector(
iv_anomalydetectorarn = |string|
iv_anomalyvisibilitytime = 123
iv_enabled = ABAP_TRUE
iv_evaluationfrequency = |string|
iv_filterpattern = |string|
).