forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
summary_job.ts
69 lines (63 loc) · 1.83 KB
/
summary_job.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { Moment } from 'moment';
import type { CombinedJob, CombinedJobWithStats } from './combined_job';
import type { MlAnomalyDetectionAlertRule } from '../alerts';
import type { MlJobBlocked } from './job';
export type { Datafeed } from './datafeed';
export type { DatafeedStats } from './datafeed_stats';
export interface MlSummaryJob {
id: string;
description: string;
groups: string[];
processed_record_count?: number;
memory_status?: string;
jobState: string;
datafeedIndices: string[];
hasDatafeed: boolean;
datafeedId: string;
datafeedState: string;
latestTimestampMs?: number;
earliestTimestampMs?: number;
latestResultsTimestampMs?: number;
fullJob?: CombinedJob;
nodeName?: string;
auditMessage?: Partial<AuditMessage>;
isSingleMetricViewerJob: boolean;
isNotSingleMetricViewerJobMessage?: string;
blocked?: MlJobBlocked;
latestTimestampSortValue?: number;
earliestStartTimestampMs?: number;
awaitingNodeAssignment: boolean;
alertingRules?: MlAnomalyDetectionAlertRule[];
jobTags: Record<string, string>;
}
export interface AuditMessage {
job_id: string;
msgTime: number;
level: string;
highestLevel: string;
highestLevelText: string;
text: string;
cleared?: boolean;
}
export type MlSummaryJobs = MlSummaryJob[];
export interface MlJobWithTimeRange extends CombinedJobWithStats {
id: string;
isRunning?: boolean;
isNotSingleMetricViewerJobMessage?: string;
timeRange: {
from: number;
to: number;
fromPx: number;
toPx: number;
fromMoment: Moment;
toMoment: Moment;
widthPx: number;
label: string;
};
}