Attempt to make *hastic* client which works with old version of hastic-server https://code.corpglory.net/hastic/hastic-server
based on new version of hastic client from https://code.corpglory.net/hastic/hastic
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
513 B
20 lines
513 B
2 years ago
|
import { AnalyticUnitId } from '@/types/analytic_units/';
|
||
|
|
||
|
export enum DetectionStatus {
|
||
|
READY = 'READY',
|
||
|
RUNNING = 'RUNNING',
|
||
|
FAILED = 'FAILED'
|
||
|
}
|
||
|
|
||
|
export type DetectionSpan = {
|
||
|
id: AnalyticUnitId,
|
||
|
status: DetectionStatus,
|
||
|
from: number,
|
||
|
to: number
|
||
|
};
|
||
|
|
||
|
export const DETECTION_STATUS_TEXT = new Map<DetectionStatus, string>([
|
||
|
[DetectionStatus.READY, '[DetectionStatus]: done'],
|
||
|
[DetectionStatus.RUNNING, '[DetectionStatus]: running...'],
|
||
|
[DetectionStatus.FAILED, '[DetectionStatus]: failed']
|
||
|
]);
|