-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.d.ts
68 lines (64 loc) · 1.47 KB
/
module.d.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
export interface ComputeNode {
maxPods: number
availableCpu: number
availableMemory: number
cost: number
scalingIntervals: number
maxNodes: number
minNodes: number
}
export interface Component {
name: string
requestToCpu: number
requestToMemory: number
baselineCpu: number
baselineMemory: number
limitMemory: number
limitCpu: number
minReplica: number
maxReplica: number
scalingThresholdCpu: number
scalingIntervals: number
}
export interface Puller {
time: number
requests: number
}
export interface ComponentOutput extends Component {
needCpuForRequests?: number
needMemoryForRequests?: number
needCpuReplica?: number
needMemoryReplica?: number
needReplica?: number
needCpu?: number
needMemory?: number
desiredReplica?: number
desiredCpu?: number
desiredMemory?: number
pendingReplica?: number
readyReplica?: number
readyRequestCapacity?: number
failedRequests?: number
}
export interface Interval extends Puller {
components?: ComponentOutput[]
nodes?: ComputeNode
needPods?: number
needCpu?: number
needMemory?: number
desiredPods?: number
desiredCpu?: number
desiredMemory?: number
needNodesByCpu?: number
needNodesByMemory?: number
needNodesByPods?: number
desiredNodesByCpu?: number
desiredNodesByMemory?: number
desiredNodesByPods?: number
desiredNodes?: number
readyNodes?: number
readyRequestCapacity?: number
failedRequests?: number
cost?: number
failedRequestPenalty?: number
}