Smaws_Client_CloudWatch.PutAnomalyDetectorCreates an anomaly detection model for a CloudWatch metric. You can use the model to display a band of expected normal values when the metric is graphed.
If you have enabled unified cross-account observability, and this account is a monitoring account, the metric can be in the same account or a source account. You can specify the account ID in the object you specify in the SingleMetricAnomalyDetector parameter.
For more information, see CloudWatch Anomaly Detection.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `InternalServiceFault of Types.internal_service_fault
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of Types.invalid_parameter_value_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `MissingRequiredParameterException of
Types.missing_required_parameter_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.put_anomaly_detector_input ->
(Types.put_anomaly_detector_output,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InternalServiceFault of Types.internal_service_fault
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `MissingRequiredParameterException of
Types.missing_required_parameter_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.put_anomaly_detector_input ->
(Types.put_anomaly_detector_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InternalServiceFault of Types.internal_service_fault
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `MissingRequiredParameterException of
Types.missing_required_parameter_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result