import Base, { MaybeRaw } from "../../../Base"; import { AuditLogCreate } from "../../../interfaces/auditor"; export declare class AuditorInternal extends Base { private queueExecutionInterval; private logQueue; private logQueueInterval; /** * Adds log entries to a queue that will be processed periodically. * * No exceptions are thrown in case of an error as this function runs periodically asynchronous. * * This also comes with the downside of log timesstamps being inaccurate as they are created by the Auditor Server. * Timestamps might differ as much as: this.options.auditor.queue.executionInterval || 500 * @param logs array (add multiple logs entries at once) */ queueAuditLogs(logs: AuditLogCreate[]): Promise; private startQueue; /** * Deletes all audit logs of an organization * * THIS IS AN INTERNAL ENDPOINT AND CAN ONLY BE USED FROM BACKENDS WITHIN THE HCLOUD DEPLOYMENT * @param orgId the organizations's ID * @returns void */ deleteAllAuditLogsOfOrganization(orgId: string, raw?: { raw: R; }): Promise>; /** * Deletes all audit logs of an Asset by space * * THIS IS AN INTERNAL ENDPOINT AND CAN ONLY BE USED FROM BACKENDS WITHIN THE HCLOUD DEPLOYMENT * @param orgId the organizations's ID * @param spaceName the Space's name * @returns void */ deleteAllAuditLogsOfSpace(orgId: string, spaceName: string, raw?: { raw: R; }): Promise>; /** * Deletes all audit logs of an Asset * * THIS IS AN INTERNAL ENDPOINT AND CAN ONLY BE USED FROM BACKENDS WITHIN THE HCLOUD DEPLOYMENT * @param orgId the organizations's ID * @param assetId the Asset's ID * @returns void */ deleteAllAuditLogsOfAsset(orgId: string, assetId: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }