/AWS1/IF_CWL=>GETLOGANOMALYDETECTOR()¶
About GetLogAnomalyDetector¶
Retrieves information about the log anomaly detector that you specify. The KMS key ARN detected is valid.
Method Signature¶
METHODS /AWS1/IF_CWL~GETLOGANOMALYDETECTOR
  IMPORTING
    !IV_ANOMALYDETECTORARN TYPE /AWS1/CWLANOMALYDETECTORARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwlgetloganomalydet01
  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 to retrieve information about. You can find the ARNs of log anomaly detectors in your account by using the ListLogAnomalyDetectors operation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwlgetloganomalydet01 /AWS1/CL_CWLGETLOGANOMALYDET01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC 
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.
DATA(lo_result) = lo_client->getloganomalydetector( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_detectorname = lo_result->get_detectorname( ).
  LOOP AT lo_result->get_loggrouparnlist( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_loggrouparn = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_evaluationfrequency = lo_result->get_evaluationfrequency( ).
  lv_filterpattern = lo_result->get_filterpattern( ).
  lv_anomalydetectorstatus = lo_result->get_anomalydetectorstatus( ).
  lv_kmskeyid = lo_result->get_kmskeyid( ).
  lv_epochmillis = lo_result->get_creationtimestamp( ).
  lv_epochmillis = lo_result->get_lastmodifiedtimestamp( ).
  lv_anomalyvisibilitytime = lo_result->get_anomalyvisibilitytime( ).
ENDIF.