Skip to content

[Logs UI] Create API route to access common log category analysis results #42065

@weltenwort

Description

@weltenwort

Summary

This route grants access to the common log category anomaly detection results within a given time interval.

Acceptance criteria

Request

Path: POST /api/infra/log_analysis/results/common_log_categories

interface GetCommonLogCategoriesRequest {
  data: {
    // the id of the source this job belongs to
    sourceId: string;
    timeRange: {
      // start of the requested time interval as an epoch timestamp
      startTime: number;
      // end of the requested time interval as an epoch timestamp
      endTime: number;
    };
    // the requested number of categories
    size: number;
    sort: {
      // the criterion to sort the categories by
      criterion: 'count' | 'anomalyScore';
      // the direction to sort the categories in
      direction: 'asc' | 'desc'
    }
  };
}

Responses

interface GetCommonLogCategoriesSuccessResponse {
  data: {
    // TODO
  };
}

Failure conditions:

  • no matching job configured for this source: Not Found
  • insufficient permissions: Forbidden

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions