Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Metric

import type { Metric } from "https://googleapis.deno.dev/v1/gkeonprem:v1.ts";

Progress metric is (string, int|float|string) pair.

interface Metric {
doubleValue?: number;
intValue?: bigint;
metric?:
| "METRIC_ID_UNSPECIFIED"
| "NODES_TOTAL"
| "NODES_DRAINING"
| "NODES_UPGRADING"
| "NODES_PENDING_UPGRADE"
| "NODES_UPGRADED"
| "NODES_FAILED"
| "NODES_HEALTHY"
| "NODES_RECONCILING"
| "NODES_IN_MAINTENANCE"
| "PREFLIGHTS_COMPLETED"
| "PREFLIGHTS_RUNNING"
| "PREFLIGHTS_FAILED"
| "PREFLIGHTS_TOTAL";
stringValue?: string;
}

§Properties

§
doubleValue?: number
[src]

For metrics with floating point value.

§
intValue?: bigint
[src]

For metrics with integer value.

§
metric?: "METRIC_ID_UNSPECIFIED" | "NODES_TOTAL" | "NODES_DRAINING" | "NODES_UPGRADING" | "NODES_PENDING_UPGRADE" | "NODES_UPGRADED" | "NODES_FAILED" | "NODES_HEALTHY" | "NODES_RECONCILING" | "NODES_IN_MAINTENANCE" | "PREFLIGHTS_COMPLETED" | "PREFLIGHTS_RUNNING" | "PREFLIGHTS_FAILED" | "PREFLIGHTS_TOTAL"
[src]

Required. The metric name.

§
stringValue?: string
[src]

For metrics with custom values (ratios, visual progress, etc.).