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

BatchingSettingsProto

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

BatchingSettingsProto specifies a set of batching thresholds, each of which acts as a trigger to send a batch of messages as a request. At least one threshold must be positive nonzero.

interface BatchingSettingsProto {
delayThreshold?: number;
elementCountLimit?: number;
elementCountThreshold?: number;
flowControlByteLimit?: number;
flowControlElementLimit?: number;
flowControlLimitExceededBehavior?:
| "UNSET_BEHAVIOR"
| "THROW_EXCEPTION"
| "BLOCK"
| "IGNORE";
requestByteLimit?: number;
requestByteThreshold?: bigint;
}

§Properties

§
delayThreshold?: number
[src]

The duration after which a batch should be sent, starting from the addition of the first message to that batch.

§
elementCountLimit?: number
[src]

The maximum number of elements collected in a batch that could be accepted by server.

§
elementCountThreshold?: number
[src]

The number of elements of a field collected into a batch which, if exceeded, causes the batch to be sent.

§
flowControlByteLimit?: number
[src]

The maximum size of data allowed by flow control.

§
flowControlElementLimit?: number
[src]

The maximum number of elements allowed by flow control.

§
flowControlLimitExceededBehavior?: "UNSET_BEHAVIOR" | "THROW_EXCEPTION" | "BLOCK" | "IGNORE"
[src]

The behavior to take when the flow control limit is exceeded.

§
requestByteLimit?: number
[src]

The maximum size of the request that could be accepted by server.

§
requestByteThreshold?: bigint
[src]

The aggregated size of the batched field which, if exceeded, causes the batch to be sent. This size is computed by aggregating the sizes of the request field to be batched, not of the entire request message.