GetInsightImpactGraph
Source:
src/AWS/XRay/GetInsightImpactGraph.ts
Retrieve a structural service graph filtered by insight — which services the insight’s anomaly impacted over a time window.
Bind the operation in the function’s init phase to get a runtime callable;
provide the implementation with Effect.provide(XRay.GetInsightImpactGraphHttp).
The action is account-scoped: X-Ray does not support resource-level
permissions for xray:GetInsightImpactGraph, so the binding grants it on *.
Insights
Section titled “Insights”import * as XRay from "alchemy/AWS/XRay";
// init — grants xray:GetInsightImpactGraphconst getInsightImpactGraph = yield* XRay.GetInsightImpactGraph();
// runtimeconst now = yield* Effect.sync(() => Date.now());const graph = yield* getInsightImpactGraph({ InsightId: insightId, StartTime: new Date(now - 60 * 60 * 1000), EndTime: new Date(now),});const services = graph.Services ?? [];