Skip to content

[Logs UI] Create API route to remove ML categorization jobs #42019

@Zacqary

Description

@Zacqary

Acceptance criteria

POST /api/infra/log_analysis/jobs/remove

  • This stops and removes the three ML jobs.
  • If not all jobs exist anymore, it removes any remaining of the three ML jobs.
interface RemoveJobsRequest {
  data: {
    sourceId: string;
  };
}
interface RemoveJobsSuccessResponse {
  data: {
    jobs: Array<{
      jobId: string;
      jobType: JobType;
      jobStatus: 'missing';
    }>;
  };
}
interface RemoveJobsFailureResponse {
  errors: Array<HTTPError>;
}

interface HTTPError {
  statusCode: number;
  error: string;
  message: string;
  attributes?: Object;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions