返回顶部
p

pulsemonPulseMon监控

Monitor cron jobs and background tasks with PulseMon. Check monitor status, create/update/delete monitors, view incidents, and manage alerts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
345
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

pulsemon

PulseMon 技能

通过 PulseMon 监控您的定时任务和后台作业。

设置

用户需要一个 PulseMon API 密钥。可在 https://pulsemon.dev/dashboard/settings 的API 密钥下生成。

将其存储为环境变量 PULSEMONAPIKEY。

基础 URL

所有 API 请求发送至:https://pulsemon.dev/api/v1

身份验证

每个请求必须包含以下标头:

Authorization: Bearer {PULSEMONAPIKEY}

可用操作

列出所有监控器

GET /api/v1/monitors

返回一个监控器数组,包含其名称、标识符、状态(在线/离线/等待/暂停)、最后 ping 时间和预期间隔。

获取特定监控器

GET /api/v1/monitors/{id}

返回完整的监控器详情,包括最近的 ping 记录和事件。

创建监控器

POST /api/v1/monitors

Content-Type: application/json

请求体:

json
{
name: 夜间备份,
slug: nightly-backup,
expectedInterval: 86400,
gracePeriod: 300,
tags: [production]
}

  • - name:人类可读的名称(必填,1-100 个字符)
  • slug:URL 安全标识符,仅限小写字母、数字和连字符(必填,3-60 个字符)
  • expectedInterval:预期 ping 之间的秒数(必填,最小 10,最大 2592000)
  • gracePeriod:告警前的额外秒数(可选,0-86400,默认根据间隔设置合理值)
  • tags:用于组织的字符串标签数组(可选)
  • maxDuration:最大允许运行时间(毫秒,可选,设为 null 则禁用)。如果 ping 报告的持续时间超过此阈值则告警。

更新监控器

PATCH /api/v1/monitors/{id}

Content-Type: application/json

请求体:以下任意字段(至少需要一个):

  • - name:字符串(1-100 个字符)
  • expectedInterval:数字(10-2592000)
  • gracePeriod:数字(0-86400)
  • isPaused:布尔值
  • tags:字符串数组
  • maxDuration:数字或 null(毫秒)

删除监控器

DELETE /api/v1/monitors/{id}

暂停监控器

POST /api/v1/monitors/{id}/pause

恢复监控器

POST /api/v1/monitors/{id}/resume

列出监控器的 ping 记录

GET /api/v1/monitors/{id}/pings?limit=20&offset=0

列出监控器的事件

GET /api/v1/monitors/{id}/incidents?limit=20&offset=0

Ping 监控器

Ping 直接发送到 ping 端点(无需 API 密钥):

GET https://pulsemon.dev/api/ping/{slug}

可选查询参数:

  • - status:success(默认)、fail 或 start
  • duration:作业持续时间(毫秒)

POST https://pulsemon.dev/api/ping/{slug} 使用 JSON 请求体:

json
{
status: success,
duration: 1234,
body: 已处理 500 条记录
}

  • - status=start:表示作业已开始。启用重叠检测。不会重置截止时间。
  • status=success:表示作业已完成。重置截止时间。
  • status=fail:记录失败。不会重置截止时间。
  • body:作业输出(最多 10 KB)。包含在告警通知中。
  • duration:作业运行时间(毫秒)。如果设置了 maxDuration 阈值则进行检查。

响应格式

所有响应均为 JSON 格式,结构如下:

json
{
data: { ... },
error: null
}

错误时:

json
{
data: null,
error: { code: NOT_FOUND, message: 未找到监控器 }
}

常见间隔

当用户提到每小时或每天等时间时,转换为秒:

  • - 每分钟:60
  • 每 5 分钟:300
  • 每 15 分钟:900
  • 每 30 分钟:1800
  • 每小时:3600
  • 每 6 小时:21600
  • 每 12 小时:43200
  • 每天:86400
  • 每周:604800

指南

  • - 列出监控器时,以可读格式显示名称、状态和最后 ping 时间。
  • 当监控器离线时,说明已离线多长时间。
  • 创建监控器时,如果用户未指定宽限期,建议一个合理的值(例如间隔的 10%,最少 30 秒)。
  • 创建监控器后,向用户显示 ping URL:https://pulsemon.dev/api/ping/{slug}
  • 删除监控器前务必确认。
  • 当用户说检查我的监控器或类似内容时,使用列表端点并汇总结果。
  • 以人类可读的格式显示持续时间(例如2 小时前而不是原始时间戳)。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 pulsemon-1776274122 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 pulsemon-1776274122 技能

通过命令行安装

skillhub install pulsemon-1776274122

下载

⬇ 下载 pulsemon v1.0.2(免费)

文件大小: 3.15 KB | 发布时间: 2026-4-16 15:50

v1.0.2 最新 2026-4-16 15:50
- Added support for monitoring job duration via the new maxDuration field when creating or updating monitors.
- Introduced "Ping a monitor" documentation, with details for sending job status and duration directly to the ping endpoint.
- Documented the use of duration and body in pings, as well as new status values ("success", "fail", "start") and overlap detection.
- Updated field lists for monitor creation and updates to include maxDuration and job duration handling.
- No breaking changes to existing monitor management or incident viewing.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部