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

WrrPolicyItem

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

A routing block which contains the routing information for one WRR item.

interface WrrPolicyItem {
healthCheckedTargets?: HealthCheckTargets;
rrdata?: string[];
signatureRrdata?: string[];
weight?: number;
}

§Properties

§
healthCheckedTargets?: HealthCheckTargets
[src]

Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of rrdata or health_checked_targets can be set.

§
rrdata?: string[]
[src]
§
signatureRrdata?: string[]
[src]

DNSSEC generated signatures for all the rrdata within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.

§
weight?: number
[src]

The weight corresponding to this WrrPolicyItem object. When multiple WrrPolicyItem objects are configured, the probability of returning an WrrPolicyItem object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.