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
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_categoriesResponses
Failure conditions:
Not FoundForbidden