tw.anomaly_detection
class tw.anomaly_detection
High-level controller for the anomaly-detection workflow. Wraps the low-level class tangent_works.endpoints.anomaly_detection endpoints and handles job submission, polling, and result retrieval in a single blocking call.
Methods
anomaly_detection.build_model() | Build an anomaly-detection (normal-behavior) model. Submits a model-building job, polls until it completes, and returns the resulting model together with job metadata. |
anomaly_detection.detect() | Detect anomalies using a previously built model. Submits a detection job, polls until it completes, and returns the detection results together with job metadata. |
anomaly_detection.rca() | Run root-cause analysis (RCA) on anomaly-detection results. Submits an RCA job, polls until it completes, and returns the RCA table together with job metadata. |
Example Usage
import tangent_works
tw = tangent_works.API(
server = "https://api.tangent.works/",
token = TANGENT_LICENSE_TOKEN
)
tw_anomaly_detection = tw.anomaly_detection