Skip to content

NodeMetricSeries

One metric stream on a node with mergeable window stats. key is the metric name (e.g. \'batches\', \'inference_ms\', \'inference_origin_ms\', \'hops\'). dims are optional dimensions (e.g. vector type, model name, revision). windows are keyed by window size in seconds.

Properties

Name Type
key string
dims Array<string>
windows { [key: string]: WindowSample; }
last_seen number

Example

import type { NodeMetricSeries } from ''

// TODO: Update the object below with actual values
const example = {
  "key": null,
  "dims": null,
  "windows": null,
  "last_seen": null,
} satisfies NodeMetricSeries

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as NodeMetricSeries
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]