Skip to content

Commit f0bfaf6

Browse files
authored
Fixed ml.get_memory_stats after tests (#1578)
1 parent 1270b5f commit f0bfaf6

File tree

4 files changed

+63
-41
lines changed

4 files changed

+63
-41
lines changed

output/schema/schema.json

Lines changed: 35 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Memory } from './types'
2525
export class Response {
2626
body: {
2727
_nodes: NodeStatistics
28-
cluser_name: Name
28+
cluster_name: Name
2929
nodes: Dictionary<Id, Memory>
3030
}
3131
}

specification/ml/get_memory_stats/types.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
* under the License.
1818
*/
1919

20-
import { ByteSize, Name } from '@_types/common'
20+
import { Dictionary } from '@spec_utils/Dictionary'
21+
import { ByteSize, Id, Name } from '@_types/common'
2122
import { TransportAddress } from '@_types/Networking'
2223
import { integer } from '@_types/Numeric'
2324

2425
export class Memory {
25-
attributes: string[]
26+
attributes: Dictionary<string, string>
2627
/**
2728
* Contains Java Virtual Machine (JVM) statistics for the node.
2829
*/
@@ -43,19 +44,20 @@ export class Memory {
4344
* The host and port where transport HTTP connections are accepted.
4445
*/
4546
transport_address: TransportAddress
47+
ephemeral_id: Id
4648
}
4749

4850
export class JvmStats {
4951
/** Maximum amount of memory available for use by the heap. */
50-
heap_max: ByteSize
52+
heap_max?: ByteSize
5153
/** Maximum amount of memory, in bytes, available for use by the heap. */
5254
heap_max_in_bytes: integer
5355
/** Amount of Java heap currently being used for caching inference models. */
54-
java_inference: ByteSize
56+
java_inference?: ByteSize
5557
/** Amount of Java heap, in bytes, currently being used for caching inference models. */
5658
java_inference_in_bytes: integer
5759
/** Maximum amount of Java heap to be used for caching inference models. */
58-
java_inference_max: ByteSize
60+
java_inference_max?: ByteSize
5961
/** Maximum amount of Java heap, in bytes, to be used for caching inference models. */
6062
java_inference_max_in_bytes: integer
6163
}
@@ -65,7 +67,7 @@ export class MemStats {
6567
* If the amount of physical memory has been overridden using the es.total_memory_bytes system property
6668
* then this reports the overridden value. Otherwise it reports the same value as total.
6769
*/
68-
adjusted_total: ByteSize
70+
adjusted_total?: ByteSize
6971
/**
7072
* If the amount of physical memory has been overridden using the `es.total_memory_bytes` system property
7173
* 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 {
7476
/**
7577
* Total amount of physical memory.
7678
*/
77-
total: ByteSize
79+
total?: ByteSize
7880
/**
7981
* Total amount of physical memory in bytes.
8082
*/
@@ -87,23 +89,23 @@ export class MemStats {
8789

8890
export class MemMlStats {
8991
/** Amount of native memory set aside for anomaly detection jobs. */
90-
anomaly_detectors: ByteSize
92+
anomaly_detectors?: ByteSize
9193
/** Amount of native memory, in bytes, set aside for anomaly detection jobs. */
9294
anomaly_detectors_in_bytes: integer
9395
/** Amount of native memory set aside for data frame analytics jobs. */
94-
data_frame_analytics: ByteSize
96+
data_frame_analytics?: ByteSize
9597
/** Amount of native memory, in bytes, set aside for data frame analytics jobs. */
9698
data_frame_analytics_in_bytes: integer
9799
/** 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
99101
/** Maximum amount of native memory (separate to the JVM heap), in bytes, that may be used by machine learning native processes. */
100102
max_in_bytes: integer
101103
/** Amount of native memory set aside for loading machine learning native code shared libraries. */
102-
native_code_overhead: ByteSize
104+
native_code_overhead?: ByteSize
103105
/** Amount of native memory, in bytes, set aside for loading machine learning native code shared libraries. */
104106
native_code_overhead_in_bytes: integer
105107
/** Amount of native memory set aside for trained models that have a PyTorch model_type. */
106-
native_inference: ByteSize
108+
native_inference?: ByteSize
107109
/** Amount of native memory, in bytes, set aside for trained models that have a PyTorch model_type. */
108110
native_inference_in_bytes: integer
109111
}

0 commit comments

Comments
 (0)