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

GoogleCloudMlV1__MetricSpec

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

MetricSpec contains the specifications to use to calculate the desired nodes count when autoscaling is enabled.

interface GoogleCloudMlV1__MetricSpec {
name?: "METRIC_NAME_UNSPECIFIED" | "CPU_USAGE" | "GPU_DUTY_CYCLE";
target?: number;
}

§Properties

§
name?: "METRIC_NAME_UNSPECIFIED" | "CPU_USAGE" | "GPU_DUTY_CYCLE"
[src]

metric name.

§
target?: number
[src]

Target specifies the target value for the given metric; once real metric deviates from the threshold by a certain percentage, the node count changes.