Skip to content
SDKProductBuild and shipMonitor

Monitor methods: update

The Monitor Verbs update as typed SDK methods, with inputs, result, refusals and an example.

Reference for Monitor, one group of Monitor methods.

Monitor.update

Changes the given properties of a Monitor. Verb page.

TypeScript
interface MonitorVerbs {
  update(input: MonitorUpdateInput, options?: SB.CallOptions): SB.Call<Monitor>
}

Emits Monitor.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Monitor.
kindstringinternal watches the Startup’s own routes and jobs; outside watches the world, such as a rival’s price.
targetstringWhat it checks: a route, a Domain, a Keyword, a prompt or a page.
everystringHow often it runs, such as 1m or 1d.

Returns

OutputTypeRequiredDescription
monitorMonitorrequiredThe Monitor.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const monitor = await $.Monitor.update({ id: 'monitor_8Ed0ESvvRl', kind: 'internal' })