跳转到主要内容
POST

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
name
string
必填
Maximum string length: 256
schedule
object
必填

监控检查的调度计划。请提供 crontext 其中之一。

targets
(Scrape target · object | Crawl target · object | Search target · object)[]
必填
Required array length: 1 - 50 elements
goal
string | null

用于判定页面变更是否有实际意义的自然语言目标。若提供此字段且省略 judgeEnabled,则会自动启用判定。当任一目标为 search 目标时,除非 judgeEnabledfalse,否则此字段必填且不得为空。

Maximum string length: 2000
judgeEnabled
boolean

是否根据 goal 判断已变更页面。运行时需要提供非空的 goal

notification
object
retentionDays
integer
默认值:30
必填范围: 1 <= x <= 365
webhook
object

用于接收监控页面事件和检查完成事件的 Webhook 目标地址。

响应

监控已创建

data
object
success
boolean