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).
Inspecting Query Executions
Section titled “Inspecting Query Executions”// init — bind the operation to the workgroupconst getQueryRuntimeStatistics = yield* AWS.Athena.GetQueryRuntimeStatistics(workGroup);
// runtimeconst res = yield* getQueryRuntimeStatistics({ QueryExecutionId: id });console.log(res.QueryRuntimeStatistics?.Timeline?.TotalExecutionTimeInMillis);