Skip to content

DescribeInsight

Source: src/AWS/DevOpsGuru/DescribeInsight.ts

Runtime binding for devops-guru:DescribeInsight.

Returns the details of a single insight — severity, status, time ranges, and the SSM OpsItem id when OpsCenter integration is enabled. The building block of an incident-response Function reacting to DevOps Guru notifications. Provide the implementation with Effect.provide(AWS.DevOpsGuru.DescribeInsightHttp).

// init — account-level binding, no resource argument
const describeInsight = yield* AWS.DevOpsGuru.DescribeInsight();
// runtime
const { ReactiveInsight } = yield* describeInsight({ Id: insightId });
yield* Effect.log(`${ReactiveInsight?.Severity}: ${ReactiveInsight?.Name}`);