Skip to content

GetSnapshots

Source: src/AWS/Kendra/GetSnapshots.ts

Runtime binding for the GetSnapshots operation (IAM action kendra:GetSnapshots), scoped to one Index.

Fetches search-analytics metric snapshots for the index (click-through rate, zero-result queries, top queries, …) over a time interval. Provide the implementation with Effect.provide(AWS.Kendra.GetSnapshotsHttp).

const getSnapshots = yield* AWS.Kendra.GetSnapshots(index);
const metrics = yield* getSnapshots({
Interval: "ONE_WEEK_AGO",
MetricType: "QUERIES_BY_COUNT",
});