17
17
* under the License.
18
18
*/
19
19
20
- import { ByteSize , Name } from '@_types/common'
20
+ import { Dictionary } from '@spec_utils/Dictionary'
21
+ import { ByteSize , Id , Name } from '@_types/common'
21
22
import { TransportAddress } from '@_types/Networking'
22
23
import { integer } from '@_types/Numeric'
23
24
24
25
export class Memory {
25
- attributes : string [ ]
26
+ attributes : Dictionary < string , string >
26
27
/**
27
28
* Contains Java Virtual Machine (JVM) statistics for the node.
28
29
*/
@@ -43,19 +44,20 @@ export class Memory {
43
44
* The host and port where transport HTTP connections are accepted.
44
45
*/
45
46
transport_address : TransportAddress
47
+ ephemeral_id : Id
46
48
}
47
49
48
50
export class JvmStats {
49
51
/** Maximum amount of memory available for use by the heap. */
50
- heap_max : ByteSize
52
+ heap_max ? : ByteSize
51
53
/** Maximum amount of memory, in bytes, available for use by the heap. */
52
54
heap_max_in_bytes : integer
53
55
/** Amount of Java heap currently being used for caching inference models. */
54
- java_inference : ByteSize
56
+ java_inference ? : ByteSize
55
57
/** Amount of Java heap, in bytes, currently being used for caching inference models. */
56
58
java_inference_in_bytes : integer
57
59
/** Maximum amount of Java heap to be used for caching inference models. */
58
- java_inference_max : ByteSize
60
+ java_inference_max ? : ByteSize
59
61
/** Maximum amount of Java heap, in bytes, to be used for caching inference models. */
60
62
java_inference_max_in_bytes : integer
61
63
}
@@ -65,7 +67,7 @@ export class MemStats {
65
67
* If the amount of physical memory has been overridden using the es.total_memory_bytes system property
66
68
* then this reports the overridden value. Otherwise it reports the same value as total.
67
69
*/
68
- adjusted_total : ByteSize
70
+ adjusted_total ? : ByteSize
69
71
/**
70
72
* If the amount of physical memory has been overridden using the `es.total_memory_bytes` system property
71
73
* then this reports the overridden value in bytes. Otherwise it reports the same value as `total_in_bytes`.
@@ -74,7 +76,7 @@ export class MemStats {
74
76
/**
75
77
* Total amount of physical memory.
76
78
*/
77
- total : ByteSize
79
+ total ? : ByteSize
78
80
/**
79
81
* Total amount of physical memory in bytes.
80
82
*/
@@ -87,23 +89,23 @@ export class MemStats {
87
89
88
90
export class MemMlStats {
89
91
/** Amount of native memory set aside for anomaly detection jobs. */
90
- anomaly_detectors : ByteSize
92
+ anomaly_detectors ? : ByteSize
91
93
/** Amount of native memory, in bytes, set aside for anomaly detection jobs. */
92
94
anomaly_detectors_in_bytes : integer
93
95
/** Amount of native memory set aside for data frame analytics jobs. */
94
- data_frame_analytics : ByteSize
96
+ data_frame_analytics ? : ByteSize
95
97
/** Amount of native memory, in bytes, set aside for data frame analytics jobs. */
96
98
data_frame_analytics_in_bytes : integer
97
99
/** Maximum amount of native memory (separate to the JVM heap) that may be used by machine learning native processes. */
98
- max : ByteSize
100
+ max ? : ByteSize
99
101
/** Maximum amount of native memory (separate to the JVM heap), in bytes, that may be used by machine learning native processes. */
100
102
max_in_bytes : integer
101
103
/** Amount of native memory set aside for loading machine learning native code shared libraries. */
102
- native_code_overhead : ByteSize
104
+ native_code_overhead ? : ByteSize
103
105
/** Amount of native memory, in bytes, set aside for loading machine learning native code shared libraries. */
104
106
native_code_overhead_in_bytes : integer
105
107
/** Amount of native memory set aside for trained models that have a PyTorch model_type. */
106
- native_inference : ByteSize
108
+ native_inference ? : ByteSize
107
109
/** Amount of native memory, in bytes, set aside for trained models that have a PyTorch model_type. */
108
110
native_inference_in_bytes : integer
109
111
}
0 commit comments