gws-events-subscribe
仓库创建 2026年3月3日最近提交 4 天前SkillHot 收录 20 天前
▸ 精选理由
便于将 Workspace 事件实时接入日志或下游系统。
▸ 风险提示
需要 Google OAuth 授权,事件流包含用户相关数据。
这个 Skill 做什么
订阅 Google Workspace 事件并以 NDJSON 流式输出。
把 Google Workspace 的事件实时订阅下来,并按 NDJSON 格式持续输出到终端或管道,方便用 jq、日志系统或自写程序逐条消费。适合不想搭外部 webhook 服务、需要在本地或 CI 里处理事件流的场景。输出流式、行级 JSON,便于管道化处理和持久化。
▸ 展开 SKILL.md 英文原文
Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.
3.0w
Stars
1.8k
Forks
40
仓库内 Skill
+562
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-events-subscribe/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-events-subscribe/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# events +subscribe > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. Subscribe to Workspace events and stream them as NDJSON ## Usage ```bash gws events +subscribe ``` ## Flags | Flag | Required | Default | Description | |------|----------|---------|-------------| | `--target` | — | — | Workspace resource URI (e.g., //chat.googleapis.com/spaces/SPACE_ID) | | `--event-types` | — | — | Comma-separated CloudEvents types to subscribe to | | `--project` | — | — | GCP project ID for Pub/Sub resources | | `--subscription` | — | — | Existing Pub/Sub subscription name (skip setup) | | `--max-message
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有