产品与设计
新服务接入或重配可观测性时使用:通过 cx CLI…
当需要为服务或团队搭建、配置、管理可观测性栈(保存视图、Webhook 集成、通知渠道、外部集成)时使用。
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
GDI C 38/100
进化评分(GDI)
综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」
内在质量 55/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 60/100 ×0.15
适用场景
新服务接入或重配可观测性时使用:通过 c特定
解决思路
- `cx views list`:列出所有已保存视图
- `cx views get <id>`:获取一个视图定义
- `cx views create --from-file`:创建一个已保存视图
- `cx views update <id> --from-file`:更新一个已保存视图
- `cx views delete <id>`:删除一个已保存视图
- `cx views folders list`:列出视图文件夹
- `cx views folders get <id>`:获取一个文件夹
- `cx views folders create --from-file`:创建一个文件夹
- `cx views folders update <id> --from-file`:更新一个文件夹
- `cx views folders delete <id>`:删除一个文件夹
- `cx webhooks list`:列出所有出站 Webhook
- `cx webhooks get <id>`:获取 Webhook 详情
- `cx webhooks create --from-file`:创建 Webhook
- `cx webhooks update <id> --from-file`:更新 Webhook
- `cx webhooks delete <id>`:删除 Webhook
- `cx webhooks test <id>`:测试 Webhook
- `cx webhooks types`:列出可用 Webhook 类型
- `cx webhooks actions list`:列出自动化动作
- `cx webhooks actions get <id>`:获取动作详情
- `cx webhooks actions create --from-file`:创建动作
- `cx webhooks actions update --from-file`:更新动作
- `cx webhooks actions delete <id>`:删除动作
- `cx webhooks actions batch --from-file`:批量执行动作
- `cx webhooks actions reorder --from-file`:重新排序动作
- `cx notifications connectors list`:列出通知连接器
- `cx notifications connectors get <id>`:获取连接器详情
- `cx notifications connectors create --from-file`:创建连接器
- `cx notifications connectors update --from-file`:更新连接器
- `cx notifications connectors delete <id>`:删除连接器
- `cx notifications connectors types`:列出连接器类型
- `cx notifications connectors entity-types`:列出实体类型
- `cx notifications connectors entity-subtypes --type <type>`:列出实体子类型
- `cx notifications routers list`:列出通知路由器
- `cx notifications routers get <id>`:获取路由器详情
- `cx notifications routers create --from-file`:创建路由器
- `cx notifications routers update --from-file`:更新路由器
- `cx notifications routers delete <id>`:删除路由器
- `cx notifications routers validate-matcher --from-file`:测试实体标签匹配器
- `cx notifications presets list`:列出通知预设
- `cx notifications presets get <id>`:获取预设详情
- `cx notifications presets create --from-file`:创建自定义预设
- `cx notifications presets update --from-file`:更新自定义预设
- `cx notifications presets delete <id>`:删除自定义预设
- `cx notifications presets set-default <id>`:设置默认预设
- `cx notifications test connector --from-file`:测试连接器配置
- `cx notifications test destination --from-file`:测试目标
- `cx notifications test preset --from-file`:测试预设配置
- `cx notifications test routing-condition --from-file`:测试路由条件
- `cx notifications test template-render --from-file`:测试模板渲染
- `cx integrations list`:列出所有集成
- `cx integrations get <id>`:获取集成详情
- `cx integrations create --from-file`:创建集成
- `cx integrations update <id> --from-file`:更新集成
- `cx integrations delete <id>`:删除集成
- `cx integrations test --from-file`:测试集成配置
- `cx integrations template`:获取集成模板
- `cx integrations definition <id>`:获取集成定义
- `cx integrations deployed <id>`:获取已部署集成
- `cx integrations extensions list`:列出可用扩展
- `cx integrations extensions get <id>`:获取扩展详情
- `cx integrations extensions deployed`:列出已部署扩展
- `cx integrations extensions deploy --from-file`:部署扩展
- `cx integrations extensions update --from-file`:更新已部署扩展
- `cx integrations extensions undeploy --from-file`:取消部署扩展
- `cx integrations contextual-data list`:列出上下文数据集成
- `cx integrations contextual-data get <id>`:获取上下文数据详情
- `cx integrations contextual-data create --from-file`:创建上下文数据集成
- `cx integrations contextual-data update <id> --from-file`:更新上下文数据集成
- `cx integrations contextual-data delete <id>`:删除上下文数据集成
- `cx integrations contextual-data definition <id>`:获取上下文数据定义
- `cx integrations contextual-data test <id>`:测试上下文数据集成
- 所有命令都支持 `-o json` 输出结构化结果,并支持 `-p <profile>` 选择 profile
- `cx views folders create --from-file folder.json`:创建视图文件夹以准备新服务的保存视图
- `cx views create --from-file view.json`:为新服务的关键日志查询创建已保存视图
- `cx notifications connectors types -o json`:查看可用通知连接器类型
- `cx notifications connectors create --from-file slack-connector.json`:创建 Slack、PagerDuty 或 email 等通知连接器
- `cx notifications routers create --from-file router.json`:创建通知路由器,将告警路由到正确渠道
- `cx webhooks types -o json`:查看可用 Webhook 类型
- `cx webhooks create --from-file webhook.json`:创建出站 Webhook 用于外部集成
- `cx webhooks test <webhook-id>`:测试已创建的 Webhook
- `cx integrations list -o json`:列出可安装的集成
- `cx integrations create --from-file integration.json`:创建相关集成
- `cx integrations extensions deploy --from-file extension.json`:部署相关扩展
- 创建仪表板时,使用 `cx-dashboards` 技能的完整仪表板创建工作流
- 创建 SLO 时,使用 `cx-slos` 技能进行 SLO 创建和监控
- `cx notifications connectors types -o json`:列出可用通知连接器类型
- `cx notifications connectors create --from-file connector.json`:创建通知连接器
- `cx notifications routers create --from-file router.json`:创建通知路由器
- `cx notifications presets list -o json`:列出通知预设,用于分配或创建预设
- `cx notifications presets create --from-file preset.json`:创建自定义通知预设
- `cx notifications presets set-default <preset-id>`:设置默认通知预设
- `cx notifications test connector --from-file test-connector.json`:端到端测试连接器
- `cx notifications test destination --from-file test-destination.json`:端到端测试目的地
- `cx notifications test routing-condition --from-file test-condition.json`:端到端测试路由条件
- `cx webhooks types -o json`:列出可用 Webhook 类型
- `cx webhooks get <existing-id> -o json > webhook-template.json`:尽可能从现有 Webhook 导出模板
- `cx webhooks create --from-file webhook.json`:创建 Webhook
- `cx webhooks test <webhook-id>`:测试 Webhook
- `cx webhooks actions create --from-file action.json`:创建自动化动作(可选)
- `cx webhooks actions reorder --from-file order.json`:重新排序自动化动作(可选)
- 完成设置后始终测试:使用 `cx notifications test`、`cx webhooks test`、`cx integrations test`
- 对复杂 JSON payload 使用 `--from-file`:从 stdin 管道传入或使用文件
- 从现有资源配置模板:创建前运行 `cx <command> get <id> -o json > template.json`
- 先检查连接器类型:创建前运行 `cx notifications connectors types` 和 `cx webhooks types`
- `cx-dashboards`:仪表板创建和替换工作流
- `cx-slos`:SLO 创建和错误预算监控
- `cx-cases`:告警触发后,对提出的 cases 进行分诊
- `cx-alerts`:触发通知的告警定义
- `cx-telemetry-querying`:设置后验证数据流
适用边界 · 注意事项
- 未安装、未认证或无权限使用 `cx` CLI 或对应可观测性平台时,不要使用本技能。
- 只需要查询或分析遥测数据时,不要使用本技能,应使用 `cx-telemetry-querying` 等查询技能。
- 创建仪表板、SLO、cases 或告警定义时,不要替代 `cx-dashboards`、`cx-slos`、`cx-cases`、`cx-alerts` 技能。