Skip to content

GetQueryRuntimeStatistics

Source: src/AWS/Athena/GetQueryRuntimeStatistics.ts

Runtime binding for athena:GetQueryRuntimeStatistics.

Reads the runtime statistics (timeline, rows/bytes processed, stage tree) of a query that ran in the bound workgroup. Provide the implementation with Effect.provide(AWS.Athena.GetQueryRuntimeStatisticsHttp).

// init — bind the operation to the workgroup
const getQueryRuntimeStatistics =
yield* AWS.Athena.GetQueryRuntimeStatistics(workGroup);
// runtime
const res = yield* getQueryRuntimeStatistics({ QueryExecutionId: id });
console.log(res.QueryRuntimeStatistics?.Timeline?.TotalExecutionTimeInMillis);