getStatistics
client.jobs.getStatistics(): Promise<JobStatistics>
Retrieves aggregate statistics about the job system.
Returns counts and metrics such as total jobs, jobs by status, average completion time, and other summary data. Useful for dashboards and progress reporting.
Parameters
No parameters.
Returns
Promise<JobStatistics> — A promise that resolves to a summary
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.jobs.getStatistics();
console.log(result);