Skip to main content

@wildix/wim-knowledge-base-client > ListDataSourceStatisticsCommand

ListDataSourceStatisticsCommand class

List the statistics of a data source by its ID

Signature:

export declare class ListDataSourceStatisticsCommand extends ListDataSourceStatisticsCommand_base 

Extends: ListDataSourceStatisticsCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { KnowledgeBaseClient, ListDataSourceStatisticsCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, ListDataSourceStatisticsCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // ListDataSourceStatisticsInput
companyId: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
};
const command = new ListDataSourceStatisticsCommand(input);
const response = await client.send(command);
// { // ListDataSourceStatisticsOutput
// documentsCount: Number("int"), // required
// chunksCount: Number("int"), // required
// };