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

AutoscalingPolicy

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

Describes an autoscaling policy for Dataproc cluster autoscaler.

interface AutoscalingPolicy {
basicAlgorithm?: BasicAutoscalingAlgorithm;
id?: string;
labels?: {
[key: string]: string;
}
;
readonly name?: string;
secondaryWorkerConfig?: InstanceGroupAutoscalingPolicyConfig;
}

§Properties

§
id?: string
[src]

Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

§
labels?: {
[key: string]: string;
}
[src]

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.

§
readonly name?: string
[src]

Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}

§

Optional. Describes how the autoscaler will operate for secondary workers.

§

Required. Describes how the autoscaler will operate for primary workers.