create_anomaly_detector
¶
create_anomaly_detector(
workspace_id: WorkspaceId,
alias: AnomalyDetectorAlias,
configuration: AnomalyDetectorConfiguration,
*,
config_overrides: Optional[ampClientConfig] = None,
evaluation_interval_in_seconds: Optional[AnomalyDetectorEvaluationInterval] = None,
missing_data_action: Optional[AnomalyDetectorMissingDataAction] = None,
labels: Optional[PrometheusMetricLabelMap] = None,
client_token: Optional[IdempotencyToken] = None,
tags: Optional[TagMap] = None,
) -> CreateAnomalyDetectorResponse
Creates an anomaly detector within a workspace using the Random Cut Forest algorithm for time-series analysis. The anomaly detector analyzes Amazon Managed Service for Prometheus metrics to identify unusual patterns and behaviors.
Parameters:
-
workspace_id(WorkspaceId) –The identifier of the workspace where the anomaly detector will be created.
-
alias(AnomalyDetectorAlias) –A user-friendly name for the anomaly detector.
-
evaluation_interval_in_seconds(Optional[AnomalyDetectorEvaluationInterval], default:None) –The frequency, in seconds, at which the anomaly detector evaluates metrics. The default value is 60 seconds.
-
missing_data_action(Optional[AnomalyDetectorMissingDataAction], default:None) –Specifies the action to take when data is missing during evaluation.
-
configuration(AnomalyDetectorConfiguration) –The algorithm configuration for the anomaly detector.
-
labels(Optional[PrometheusMetricLabelMap], default:None) –The Amazon Managed Service for Prometheus metric labels to associate with the anomaly detector.
-
client_token(Optional[IdempotencyToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
tags(Optional[TagMap], default:None) –The metadata to apply to the anomaly detector to assist with categorization and organization.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request would cause an inconsistent state.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ServiceQuotaExceededException–Completing the request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amp/_services/amp.py
1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 | |