Watch
import type { Watch } from "https://googleapis.deno.dev/v1/forms:v1.ts";
A watch for events for a form. When the designated event happens, a
notification will be published to the specified target. The notification's
attributes will include a formId
key that has the ID of the watched form
and an eventType
key that has the string of the type. Messages are sent
with at-least-once delivery and are only dropped in extraordinary
circumstances. Typically all notifications should be reliably delivered
within a few seconds; however, in some situations notifications may be
delayed. A watch expires seven days after it is created unless it is renewed
with watches.renew
§Properties
Output only. The most recent error type for an attempted delivery. To begin watching the form again a call can be made to watches.renew which also clears this error information.
Required. Which event type to watch for.
Output only. Timestamp for when this will expire. Each watches.renew call resets this to seven days in the future.
Output only. The ID of this watch. See notes on CreateWatchRequest.watch_id.
Output only. The current state of the watch. Additional details about
suspended watches can be found by checking the error_type
.
Required. Where to send the notification.