/AWS1/IF_CWT=>DELETEANOMALYDETECTOR()¶
About DeleteAnomalyDetector¶
Deletes the specified anomaly detection model from your account. For more information about how to delete an anomaly detection model, see Deleting an anomaly detection model in the CloudWatch User Guide.
Method Signature¶
METHODS /AWS1/IF_CWT~DELETEANOMALYDETECTOR
IMPORTING
!IV_NAMESPACE TYPE /AWS1/CWTNAMESPACE OPTIONAL
!IV_METRICNAME TYPE /AWS1/CWTMETRICNAME OPTIONAL
!IT_DIMENSIONS TYPE /AWS1/CL_CWTDIMENSION=>TT_DIMENSIONS OPTIONAL
!IV_STAT TYPE /AWS1/CWTANOMALYDETECTORMETTAT OPTIONAL
!IO_SINGLEMETRICANOMALYDETE00 TYPE REF TO /AWS1/CL_CWTSINGLEMETRICANOM00 OPTIONAL
!IO_METRICMATHANOMALYDETECTOR TYPE REF TO /AWS1/CL_CWTMETRICMATHANOMAL00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwtdelanomalydetect01
RAISING
/AWS1/CX_CWTINTERNALSVCFAULT
/AWS1/CX_CWTINVPRMCOMBINATIO00
/AWS1/CX_CWTINVPARAMVALUEEX
/AWS1/CX_CWTMISSINGREQUIREDP00
/AWS1/CX_CWTRESOURCENOTFOUNDEX
/AWS1/CX_CWTCLIENTEXC
/AWS1/CX_CWTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_namespace TYPE /AWS1/CWTNAMESPACE /AWS1/CWTNAMESPACE¶
The namespace associated with the anomaly detection model to delete.
iv_metricname TYPE /AWS1/CWTMETRICNAME /AWS1/CWTMETRICNAME¶
The metric name associated with the anomaly detection model to delete.
it_dimensions TYPE /AWS1/CL_CWTDIMENSION=>TT_DIMENSIONS TT_DIMENSIONS¶
The metric dimensions associated with the anomaly detection model to delete.
iv_stat TYPE /AWS1/CWTANOMALYDETECTORMETTAT /AWS1/CWTANOMALYDETECTORMETTAT¶
The statistic associated with the anomaly detection model to delete.
io_singlemetricanomalydete00 TYPE REF TO /AWS1/CL_CWTSINGLEMETRICANOM00 /AWS1/CL_CWTSINGLEMETRICANOM00¶
A single metric anomaly detector to be deleted.
When using
SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:
Dimensions,
MetricName
Namespace
Statthe
MetricMathAnomalyDetectorparameters ofDeleteAnomalyDetectorInputInstead, specify the single metric anomaly detector attributes as part of the
SingleMetricAnomalyDetectorproperty.
io_metricmathanomalydetector TYPE REF TO /AWS1/CL_CWTMETRICMATHANOMAL00 /AWS1/CL_CWTMETRICMATHANOMAL00¶
The metric math anomaly detector to be deleted.
When using
MetricMathAnomalyDetector, you cannot include following parameters in the same operation:
Dimensions,
MetricName
Namespace
Statthe
SingleMetricAnomalyDetectorparameters ofDeleteAnomalyDetectorInputInstead, specify the metric math anomaly detector attributes as part of the
MetricMathAnomalyDetectorproperty.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwtdelanomalydetect01 /AWS1/CL_CWTDELANOMALYDETECT01¶
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->deleteanomalydetector(
io_metricmathanomalydetector = new /aws1/cl_cwtmetricmathanomal00(
it_metricdataqueries = VALUE /aws1/cl_cwtmetricdataquery=>tt_metricdataqueries(
(
new /aws1/cl_cwtmetricdataquery(
io_metricstat = new /aws1/cl_cwtmetricstat(
io_metric = new /aws1/cl_cwtmetric(
it_dimensions = VALUE /aws1/cl_cwtdimension=>tt_dimensions(
(
new /aws1/cl_cwtdimension(
iv_name = |string|
iv_value = |string|
)
)
)
iv_metricname = |string|
iv_namespace = |string|
)
iv_period = 123
iv_stat = |string|
iv_unit = |string|
)
iv_accountid = |string|
iv_expression = |string|
iv_id = |string|
iv_label = |string|
iv_period = 123
iv_returndata = ABAP_TRUE
)
)
)
)
io_singlemetricanomalydete00 = new /aws1/cl_cwtsinglemetricanom00(
it_dimensions = VALUE /aws1/cl_cwtdimension=>tt_dimensions(
(
new /aws1/cl_cwtdimension(
iv_name = |string|
iv_value = |string|
)
)
)
iv_accountid = |string|
iv_metricname = |string|
iv_namespace = |string|
iv_stat = |string|
)
it_dimensions = VALUE /aws1/cl_cwtdimension=>tt_dimensions(
(
new /aws1/cl_cwtdimension(
iv_name = |string|
iv_value = |string|
)
)
)
iv_metricname = |string|
iv_namespace = |string|
iv_stat = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.