Skip to content

ListAnomaliesForInsight

Source: src/AWS/DevOpsGuru/ListAnomaliesForInsight.ts

Runtime binding for devops-guru:ListAnomaliesForInsight.

Lists the anomalies that belong to an insight — the individual metric deviations DevOps Guru correlated into the incident. Provide the implementation with Effect.provide(AWS.DevOpsGuru.ListAnomaliesForInsightHttp).

// init — account-level binding, no resource argument
const listAnomaliesForInsight = yield* AWS.DevOpsGuru.ListAnomaliesForInsight();
// runtime
const { ReactiveAnomalies } = yield* listAnomaliesForInsight({
InsightId: insightId,
});
yield* Effect.log(`anomalies: ${ReactiveAnomalies?.length}`);