Skip to content

update_monitor_status ​

暂停或恢复某个监控项

Action

描述 ​

暂停或恢复某个监控项。

用户可能的问法:

  • "先暂停 iPhone 那个监控"
  • "恢复 Samsung 的监控"
  • "把 AirPods 的监控停掉"

需要提供 monitor_id(监控项 ID)和 status("paused" 暂停 / "active" 恢复)。

参数 ​

参数类型必填默认值说明
monitor_idinteger是—监控项 ID
statusstring是—active 或 paused

返回值 ​

返回操作确认消息,根据操作类型不同:

暂停 (paused):

已暂停监控:iPhone 15 Pro Max(ID: 1)。系统不再采集该商品的价格。如需恢复,告诉我即可。

恢复 (active):

已恢复监控:iPhone 15 Pro Max(ID: 1)。系统将继续采集该商品的价格。

对话示例 ​

  • "先暂停 iPhone 那个监控"
  • "恢复 Samsung 的监控"
  • "把 AirPods 的监控停掉"

API 端点 ​

PUT /monitors/:id

Released under the MIT License.