/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export class MonitorClassificationService { constructor(public readonly httpRequest: BaseHttpRequest) { } /** * Get Classification Statistics * Get statistics on auto-classification vs manual classification for v2.0.0 and greater * @returns void * @throws ApiError */ public getStats(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/monitor/classification/getStats', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * Get Classification History * Get all classification responses for a specific entity * @returns void * @throws ApiError */ public getHistory(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/monitor/classification/getHistory', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * Get Classification Config * Get available classifications, infringement map, and optimized lists * @returns void * @throws ApiError */ public getClassificationConfig(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/monitor/classification/getClassificationConfig', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * Get Question Database * Get the full question database used by the classification engine * @returns void * @throws ApiError */ public getQuestionDatabase(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/monitor/classification/getQuestionDatabase', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * Log Auto-Classification Batch * Log org-specific audit entries for a batch of auto-classified detections * @returns void * @throws ApiError */ public logAutoClassificationBatch(data?: { results?: any[]; env?: string; totalProcessed?: number; successful?: number; failed?: number; }): CancelablePromise { return this.httpRequest.request({ method: 'POST', url: '/monitor/classification/logAutoClassificationBatch', body: data, errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } /** * Backfill Detection Classifications * Copy classification from classified incidents to their linked unclassified detections * @returns void * @throws ApiError */ public backfillDetectionClassifications(): CancelablePromise { return this.httpRequest.request({ method: 'GET', url: '/monitor/classification/backfillDetectionClassifications', errors: { 401: `Need proper authorization, it's usually acheived by getting the right permission.`, }, }); } }