Skip to content

Commit d1a0565

Browse files
authored
Fix Get trained models statistics API types (#2763)
* Fix Get trained models statistics API types * Push schema changes * Use EpochTime<UnitMillis>
1 parent 7f118dc commit d1a0565

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

output/schema/schema.json

Lines changed: 17 additions & 5 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: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/_types/TrainedModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class TrainedModelDeploymentStats {
7575
* The deployment stats for each node that currently has the model allocated.
7676
* In serverless, stats are reported for a single unnamed virtual node.
7777
*/
78-
nodes: TrainedModelDeploymentNodesStats
78+
nodes: TrainedModelDeploymentNodesStats[]
7979
/** The number of allocations requested. */
8080
number_of_allocations: integer
8181
/** The number of inference requests that can be queued before new requests are rejected. */
@@ -120,7 +120,7 @@ export class TrainedModelInferenceStats {
120120
/** The number of inference calls where all the training features for the model were missing. */
121121
missing_all_fields_count: integer
122122
/** The time when the statistics were last updated. */
123-
timestamp: DateTime
123+
timestamp: EpochTime<UnitMillis>
124124
}
125125

126126
export class TrainedModelSizeStats {

0 commit comments

Comments
 (0)