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

DataSamplingConfig

import type { DataSamplingConfig } from "https://googleapis.deno.dev/v1/dataflow:v1b3.ts";

Configuration options for sampling elements.

interface DataSamplingConfig {
behaviors?:
| "DATA_SAMPLING_BEHAVIOR_UNSPECIFIED"
| "DISABLED"
| "ALWAYS_ON"
| "EXCEPTIONS"[];
}

§Properties

§
behaviors?: "DATA_SAMPLING_BEHAVIOR_UNSPECIFIED" | "DISABLED" | "ALWAYS_ON" | "EXCEPTIONS"[]
[src]

List of given sampling behaviors to enable. For example, specifying behaviors = [ALWAYS_ON] samples in-flight elements but does not sample exceptions. Can be used to specify multiple behaviors like, behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and exception sampling. If DISABLED is in the list, then sampling will be disabled and ignore the other given behaviors. Ordering does not matter.