SearchInsights
Source:
src/AWS/DevOpsGuru/SearchInsights.ts
Runtime binding for devops-guru:SearchInsights.
Searches the account’s insights within a start-time range, filtered by severity, status, service, or resource collection. The service
requires both FromTime and ToTime on the range.
Provide the implementation with
Effect.provide(AWS.DevOpsGuru.SearchInsightsHttp).
Inspecting Insights
Section titled “Inspecting Insights”// init — account-level binding, no resource argumentconst searchInsights = yield* AWS.DevOpsGuru.SearchInsights();
// runtimeconst { ReactiveInsights } = yield* searchInsights({ Type: "REACTIVE", StartTimeRange: { FromTime: new Date(Date.now() - 24 * 3600_000), ToTime: new Date(), }, Filters: { Severities: ["HIGH"] },});yield* Effect.log(`high severity: ${ReactiveInsights?.length}`);