Skip to content

SearchOrganizationInsights

Source: src/AWS/DevOpsGuru/SearchOrganizationInsights.ts

Runtime binding for devops-guru:SearchOrganizationInsights.

Searches insights across specific organization accounts within a start-time range (management or delegated-administrator account). The service requires both FromTime and ToTime on the range. Provide the implementation with Effect.provide(AWS.DevOpsGuru.SearchOrganizationInsightsHttp).

// init — account-level binding, no resource argument
const searchOrganizationInsights = yield* AWS.DevOpsGuru.SearchOrganizationInsights();
// runtime
const { ReactiveInsights } = yield* searchOrganizationInsights({
AccountIds: ["111111111111"],
Type: "REACTIVE",
StartTimeRange: {
FromTime: new Date(Date.now() - 24 * 3600_000),
ToTime: new Date(),
},
});
yield* Effect.log(`found: ${ReactiveInsights?.length}`);