@wildix/wim-knowledge-base-client > ListDataSourceSynchronizationLogsCommand
ListDataSourceSynchronizationLogsCommand class
Get the sync logs of a data source by its ID
Signature:
export declare class ListDataSourceSynchronizationLogsCommand extends ListDataSourceSynchronizationLogsCommand_base
Extends: ListDataSourceSynchronizationLogsCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { KnowledgeBaseClient, ListDataSourceSynchronizationLogsCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
// const { KnowledgeBaseClient, ListDataSourceSynchronizationLogsCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
const client = new KnowledgeBaseClient(config);
const input = { // ListDataSourceSynchronizationLogsInput
companyId: "STRING_VALUE",
limit: Number("int"),
offset: Number("int"),
sort: "STRING_VALUE",
dataSourceId: "STRING_VALUE", // required
logLevel: "debug" || "info" || "warn" || "error",
search: "STRING_VALUE",
};
const command = new ListDataSourceSynchronizationLogsCommand(input);
const response = await client.send(command);
// { // ListDataSourceSynchronizationLogsOutput
// logs: [ // SyncLogList // required
// { // SyncLogItem
// timestamp: "STRING_VALUE", // required
// level: "debug" || "info" || "warn" || "error", // required
// message: "STRING_VALUE", // required
// },
// ],
// metadata: { // PaginationMetadata
// total: Number("int"), // required
// limit: Number("int"),
// offset: Number("int"),
// },
// };