Monitor lifecycle
- Create a monitor with text plus optional project, asset-class, and threshold filters.
- List matched events with
limitandoffset. The API returns newest events first, with a stable ID tie-breaker. The maximum page size is 100. - Persist the last processed event ID when you operate the pagination loop yourself.
- Delete the monitor when it is no longer needed.
alert helper. It creates the monitor, pages through
all unseen events, invokes callbacks from oldest to newest, and keeps a bounded
checkpoint instead of an ever-growing set of event IDs.
Cleanup and failures
Always stop the returned alert handle. Stopping cancels polling, waits for the worker, and deletes the temporary monitor. Terminal polling, callback, and cleanup failures are surfaced by the language-specific stop operation:
Polling retries transient transport, rate-limit, and server failures a bounded
number of times. Authentication, validation, callback, and repeated polling
failures stop the worker and are returned during cleanup.
TypeScript example
listMonitorEvents directly when checkpoints must survive
process restarts or event handling needs durable delivery semantics.
