{"id":19703623,"url":"https://github.com/monibuca/plugin-monitor","last_synced_at":"2025-09-16T05:02:27.343Z","repository":{"id":158796249,"uuid":"620584884","full_name":"Monibuca/plugin-monitor","owner":"Monibuca","description":"生成监控数据","archived":false,"fork":false,"pushed_at":"2024-01-03T01:28:18.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"v4","last_synced_at":"2025-05-27T00:43:17.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Monibuca.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-03-29T01:14:31.000Z","updated_at":"2023-04-15T00:46:36.000Z","dependencies_parsed_at":"2025-01-10T11:34:45.396Z","dependency_job_id":"d0452e93-5858-4dc3-b781-df44f496dde7","html_url":"https://github.com/Monibuca/plugin-monitor","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Monibuca/plugin-monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monibuca","download_url":"https://codeload.github.com/Monibuca/plugin-monitor/tar.gz/refs/heads/v4","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-monitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275364760,"owners_count":25451517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"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":"2024-11-11T21:18:29.597Z","updated_at":"2025-09-16T05:02:27.263Z","avatar_url":"https://github.com/Monibuca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plugin-monitor\n生成监控数据\n\n## 插件地址\n\nhttps://github.com/Monibuca/plugin-monitor\n\n## 插件引入\n\n```go\nimport (\n    _ \"m7s.live/plugin/monitor/v4\"\n)\n```\n\n## 配置\n\n```yaml\nmonitor:\n  path: monitor # 监控数据存储路径\n```\n\n## API\n\n### 获取监控的流历史数据\n\n```\nGET /monitor/api/list/stream?time=xxxx-xxxx\u0026streamPath=xxxx\n```\nstreamPath 是可选的，用于筛选指定的流\ntime 是可选的，用于筛选指定时间段的数据，不传则返回当天的数据\n\n### 获取历史流的轨道列表\n  \n```\nGET /monitor/api/list/track?streamPath=xxxx\n```\n该 streamPath 的值来自上一个 API 中的 path 拼接时间而成（时间格式为 2006-01-02T15:04:05）\n\n### 获取历史数据\n\n```\nGET /monitor/[streamPath]/track/h264.yaml\n```\n就是从 monitor 目录里面读取文件，路径就是文件路径，自行替换。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonibuca%2Fplugin-monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-monitor/lists"}