Skip to content

GetFindingsStatistics

Source: src/AWS/GuardDuty/GetFindingsStatistics.ts

Runtime binding for guardduty:GetFindingsStatistics.

Aggregates the detector’s findings into statistics (grouped by severity, account, resource, or finding type) for dashboards and alert thresholds. The detector id is injected from the bound Detector. Provide the implementation with Effect.provide(AWS.GuardDuty.GetFindingsStatisticsHttp).

// init
const getFindingsStatistics = yield* AWS.GuardDuty.GetFindingsStatistics(detector);
// runtime
const { FindingStatistics } = yield* getFindingsStatistics({
GroupBy: "SEVERITY",
});