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

EventFilter

import type { EventFilter } from "https://googleapis.deno.dev/v1/cloudfunctions:v2.ts";

Filters events based on exact matches on the CloudEvents attributes.

interface EventFilter {
attribute?: string;
operator?: string;
value?: string;
}

§Properties

§
attribute?: string
[src]

Required. The name of a CloudEvents attribute.

§
operator?: string
[src]

Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.

§
value?: string
[src]

Required. The value for the attribute.