-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathtypes.ts
99 lines (93 loc) · 3.29 KB
/
types.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import { Stringified } from '@spec_utils/Stringified'
import { ByteSize } from '@_types/common'
import { Host, Ip } from '@_types/Networking'
import { double, Percentage } from '@_types/Numeric'
export class AllocationRecord {
/**
* Number of primary and replica shards assigned to the node.
* @aliases s
*/
shards?: string
/**
* Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used
*/
'shards.undesired'?: string | null
/**
* Sum of index write load forecasts
* @aliases wlf,writeLoadForecast
*/
'write_load.forecast'?: Stringified<double> | null
/**
* Sum of shard size forecasts
* @aliases dif,diskIndicesForecast
*/
'disk.indices.forecast'?: ByteSize | null
/**
* Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards.
* IMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.
* @aliases di,diskIndices
*/
'disk.indices'?: ByteSize | null
/**
* Total disk space in use.
* Elasticsearch retrieves this metric from the node’s operating system (OS).
* The metric includes disk space for: Elasticsearch, including the translog and unassigned shards; the node’s operating system; any other applications or files on the node.
* Unlike `disk.indices`, this metric does not double-count disk space for hard-linked files.
* @aliases du,diskUsed
*/
'disk.used'?: ByteSize | null
/**
* Free disk space available to Elasticsearch.
* Elasticsearch retrieves this metric from the node’s operating system.
* Disk-based shard allocation uses this metric to assign shards to nodes based on available disk space.
* @aliases da,diskAvail
*/
'disk.avail'?: ByteSize | null
/**
* Total disk space for the node, including in-use and available space.
* @aliases dt,diskTotal
*/
'disk.total'?: ByteSize | null
/**
* Total percentage of disk space in use. Calculated as `disk.used / disk.total`.
* @aliases dp,diskPercent
*/
'disk.percent'?: Percentage | null
/**
* Network host for the node. Set using the `network.host` setting.
* @aliases h
*/
host?: Host | null
/**
* IP address and port for the node.
*/
ip?: Ip | null
/**
* Name for the node. Set using the `node.name` setting.
* @aliases n
*/
node?: string
/**
* Node roles
* @aliases r,role,nodeRole
*/
'node.role'?: string | null
}