Skip to main content

getStatistics

client.threads.getStatistics(): Promise<ThreadStatistics>

Retrieves statistics about threads in the system.

Returns aggregated metrics including total thread counts, status distributions, and other statistical data. Use this to gain insights into thread activity and system performance.

Parameters​

No parameters.

Returns​

Promise<ThreadStatistics> — A promise that resolves to ThreadStatistics containing various metrics

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.threads.getStatistics();
console.log(result);