{"id":51026759,"url":"https://github.com/gitstq/apipulse-pro","last_synced_at":"2026-06-21T20:02:18.675Z","repository":{"id":359093943,"uuid":"1244493809","full_name":"gitstq/apipulse-pro","owner":"gitstq","description":"🛡️ 轻量级API智能监控与告警引擎 | Lightweight API Intelligent Monitoring \u0026 Alerting Engine","archived":false,"fork":false,"pushed_at":"2026-05-20T10:18:05.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T14:37:46.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-20T10:12:54.000Z","updated_at":"2026-05-20T10:18:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/apipulse-pro","commit_stats":null,"previous_names":["gitstq/apipulse-pro"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/apipulse-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fapipulse-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fapipulse-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fapipulse-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fapipulse-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/apipulse-pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fapipulse-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T20:02:17.845Z","updated_at":"2026-06-21T20:02:18.668Z","avatar_url":"https://github.com/gitstq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ APIPulse-Pro\n\n\u003e 轻量级API智能监控与告警引擎 | Lightweight API Intelligent Monitoring \u0026 Alerting Engine\n\n[English](./README_en.md) | [繁體中文](./README_zh_TW.md) | 简体中文\n\n---\n\n## 🎉 项目介绍\n\n**APIPulse-Pro** 是一款专为开发者设计的轻量级API监控与告警工具。它能够帮助您实时监控API端点的可用性、响应时间和健康状态，并在异常情况发生时及时告警。\n\n### 🔥 核心亮点\n\n- ⚡ **零依赖设计** - 仅使用Python标准库，无需安装额外包\n- 🎯 **轻量级** - 单文件实现，体积小巧（约500行代码）\n- 📊 **实时监控** - 支持连续监控模式，实时展示指标\n- 🔔 **智能告警** - 支持自定义阈值，异常自动告警\n- 📈 **健康报告** - 生成详细的端点健康分析报告\n- 💾 **数据导出** - 支持JSON/CSV格式导出，方便分析\n\n### 💡 解决的问题\n\n- ✅ 手动检查API可用性繁琐耗时\n- ✅ 缺少统一的API健康监控工具\n- ✅ 难以追踪API响应时间变化趋势\n- ✅ 无法及时发现API故障\n- ✅ 缺少历史数据分析能力\n\n---\n\n## ✨ 核心特性\n\n| 特性 | 描述 |\n|------|------|\n| 🌐 **多端点监控** | 支持同时监控多个API端点 |\n| ⏱️ **响应时间测量** | 精确测量每个请求的响应时间 |\n| 📊 **统计报告** | 生成平均、最小、最大、P95响应时间 |\n| 🔴 **健康状态** | 智能判断端点健康状态（健康/警告/危险） |\n| 📝 **历史记录** | 保存所有监控数据，支持回溯分析 |\n| 💾 **数据导出** | 导出为JSON或CSV格式 |\n| 🎨 **友好界面** | 彩色终端输出，一目了然 |\n| ⚙️ **灵活配置** | 支持JSON配置文件 |\n\n---\n\n## 🚀 快速开始\n\n### 📋 环境要求\n\n- Python 3.6+\n- 无需安装任何依赖包！\n\n### 📥 安装\n\n```bash\n# 克隆仓库\ngit clone https://github.com/gitstq/apipulse-pro.git\n\n# 进入目录\ncd apipulse-pro\n\n# 直接运行\npython apipulse_pro.py --version\n```\n\n### 🎯 快速使用\n\n#### 交互式设置（推荐新手）\n\n```bash\npython apipulse_pro.py --setup\n```\n\n#### 快速检查单个URL\n\n```bash\npython apipulse_pro.py --url https://api.github.com --name \"GitHub API\"\n```\n\n#### 使用配置文件监控\n\n```bash\npython apipulse_pro.py --config endpoints.json --check\npython apipulse_pro.py --config endpoints.json --monitor --interval 60\n```\n\n#### 导出监控数据\n\n```bash\npython apipulse_pro.py --config endpoints.json --check --export metrics.json --format json\n```\n\n---\n\n## 📖 配置文件格式\n\n```json\n{\n  \"endpoints\": [\n    {\n      \"name\": \"API名称\",\n      \"url\": \"https://api.example.com/endpoint\",\n      \"method\": \"GET\",\n      \"headers\": {},\n      \"body\": null,\n      \"expected_status\": 200,\n      \"timeout\": 30\n    }\n  ],\n  \"alert_thresholds\": {\n    \"response_time\": 1000,\n    \"error_rate\": 5,\n    \"success_rate\": 95\n  }\n}\n```\n\n---\n\n## 💡 设计思路\n\n1. **极简主义** - 保持代码简洁，单文件实现所有功能\n2. **零依赖** - 仅使用Python标准库，降低使用门槛\n3. **可扩展性** - 支持配置文件，方便扩展更多端点\n4. **用户友好** - 彩色终端输出，直观展示状态\n\n---\n\n## 📄 开源协议\n\n本项目采用 **MIT License** 开源协议。\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eMade with ❤️ by \u003ca href=\"https://github.com/gitstq\"\u003egitstq\u003c/a\u003e\u003c/strong\u003e\n  \u003cbr\u003e\n  \u003csub\u003e支持一下 ⭐ 如果这个项目对您有帮助！\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fapipulse-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Fapipulse-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fapipulse-pro/lists"}