describe_anomaly_detectors
¶
describe_anomaly_detectors(
*,
config_overrides: Optional[CloudWatchClientConfig] = None,
anomaly_detector_ids: Optional[AnomalyDetectorIds] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxReturnedResultsCount] = None,
namespace: Optional[Namespace] = None,
metric_name: Optional[MetricName] = None,
dimensions: Optional[Dimensions] = None,
anomaly_detector_types: Optional[AnomalyDetectorTypes] = None,
) -> DescribeAnomalyDetectorsOutput
Lists the anomaly detection models that you have created in your account. For single metric anomaly detectors, you can list all of the models in your account or filter the results to only the models that are related to a certain namespace, metric name, or metric dimension. For metric math anomaly detectors, you can list them by adding METRIC_MATH to the AnomalyDetectorTypes array. This will return all metric math anomaly detectors in your account.
Parameters:
-
anomaly_detector_ids(Optional[AnomalyDetectorIds], default:None) –Specifies the unique identifiers of the anomaly detectors to describe. You can specify up to 50 identifiers. If you specify this parameter, you cannot also specify the
Namespace,MetricName,Dimensions, orAnomalyDetectorTypesmetric filters. -
next_token(Optional[NextToken], default:None) –Use the token returned by the previous operation to request the next page of results.
-
max_results(Optional[MaxReturnedResultsCount], default:None) –The maximum number of results to return in one operation. The maximum value that you can specify is 100.
To retrieve the remaining results, make another call with the returned
NextTokenvalue. -
namespace(Optional[Namespace], default:None) –Limits the results to only the anomaly detection models that are associated with the specified namespace.
-
metric_name(Optional[MetricName], default:None) –Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.
-
dimensions(Optional[Dimensions], default:None) –Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.
-
anomaly_detector_types(Optional[AnomalyDetectorTypes], default:None) –The anomaly detector types to request when using
DescribeAnomalyDetectorsInput. If empty, defaults toSINGLE_METRIC.
Raises:
-
InternalServiceFault–Request processing has failed due to some unknown error, exception, or failure.
-
InvalidNextToken–The next token specified is invalid.
-
InvalidParameterCombinationException–Parameters were used together that cannot be used together.
-
InvalidParameterValueException–The value of an input parameter is bad or out-of-range.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch/_services/cloud_watch.py
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 | |