Cx Cases

作者 coralogixc0713729787b无许可证121 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Triage and manage Coralogix Cases with the `cx cases` CLI — e.g. acknowledge, assign, resolve, or re-prioritize a case, or inspect its event timeline or notification deliveries.

仅含说明DevOps & Cloud
AI 生成的概览

通过 cx cases CLI 对 Coralogix Cases 进行分诊和管理,包括分配、确认、解决和调整优先级。

功能
指导智能体检查 Coralogix Cases,并使用 cx cases CLI 推动其生命周期流转。涵盖读取案例及其事件时间线或通知投递记录、分配与确认、添加评论、调整优先级、解决和关闭。还说明了允许的状态转换、对多个案例 ID 的批量循环处理,以及链接回控制台中的案例。
适用场景
适用于需要对 Coralogix Case 进行分诊或更新的场景,例如确认告警分组、分配负责人、记录调查笔记,或解决并关闭案例。也适用于查看案例的事件时间线或通知投递记录。
运行要求
需要带有 cases 命令组的 cx CLI 以及对 Coralogix 环境的访问权限;多配置文件并行操作使用 -p。调查步骤涉及查询遥测数据以及 cx-telemetry-querying 技能。不附带脚本,仅包含说明和两份参考文档。

Cases Management Skill

A Case groups related alert events into one investigation unit with a status, priority, category, and assignee. Use this skill to inspect cases and drive them through their lifecycle (active → acknowledged → resolved → closed).

CLI Commands

CommandPurpose
cx cases get <id>Get a single case by ID
cx cases update <id> [--title] [--resolution-reason]Update mutable fields
cx cases comment <id> --text <text>Add a comment to the case timeline
cx cases assign <id> --user <email>Assign a case (email, or raw user ID)
cx cases unassign <id>Remove the assignee
cx cases acknowledge <id>Acknowledge (signals you're working it; stops re-notification)
cx cases unacknowledge <id>Remove the acknowledgment
cx cases resolve <id> --reason <text>Resolve a case (irreversible — see below)
cx cases close <id>Close a case (terminal)
cx cases set-priority <id> --priority <P1..P5>Override the computed priority
cx cases clear-priority <id>Remove a priority override
cx cases events list <case-id>Event timeline (status changes, comments, assignments)
cx cases events get <event-id>A single event — drill in, e.g. to expand a comment thread
cx cases notifications <case-id> [<case-id> ...]Notification deliveries (connector, status, time)

Case Lifecycle

PENDING_ACTIVATION ──► ACTIVE ◄────────► ACKNOWLEDGED                         │ ╲                │ ╲                         │  ╲               │  ╲                         ▼   ╲              ▼   ╲                      CLOSED  ╲──► RESOLVED ◄─── (from ACK)                                       │                                       ▼                                    CLOSED  (terminal)
From stateAllowed transitionsNotes
PENDING_ACTIVATION→ ACTIVESystem-driven activation; not user-controllable
ACTIVE→ ACKNOWLEDGED, RESOLVED, CLOSEDAck is optional; for a false alarm, close directly (skip resolve)
ACKNOWLEDGED→ ACTIVE, RESOLVED, CLOSEDThe only "back" transition: unacknowledge returns it to ACTIVE
RESOLVED→ CLOSED onlyIrreversible — cannot reopen to ACTIVE/ACKNOWLEDGED
CLOSED(none)Terminal

Categories: AVAILABILITY or SECURITY. Priorities: P1 (highest) → P5.

Triage Workflow

  1. Inspect — cx cases get <id>. The payload includes groupings, labels, impactedEntities, kpiBreaches, aiSummary, and both priorityDetails.system (computed) and priorityDetails.override (user-set).
  2. Investigate — Pull the underlying telemetry by querying the alert's DataPrime / PromQL to find root cause before acting. Optionally export the investigation via cx olly or pull the case's impactedEntities / groupings to confirm the impact. See the cx-telemetry-querying skill.
  3. Claim — cx cases assign <id> --user [email protected] then cx cases acknowledge <id>.
  4. Record findings — cx cases comment <id> --text "<note>" to leave investigation notes on the timeline (root cause, links, next steps) as you go. Comments appear as comment events in cx cases events list.
  5. Resolve or close — see below.
  6. Re-prioritize if impact differs from the computed value — cx cases set-priority <id> --priority P1 / clear-priority. Only possible while the case is still open; priority cannot be overridden once a case is RESOLVED or CLOSED.

Resolving

Resolution is irreversible (a RESOLVED case can only move to CLOSED), so the CLI requires both a reason and a confirmation:

  • Pass --reason "<text>" — a one-line postmortem (root cause, what fixed it, follow-up) visible to teammates in the timeline. Use --no-reason only when a reason genuinely doesn't apply.
  • In agent / non-interactive mode, also pass --yes; without it the command refuses and must be handed to the user to run interactively.

If uncertain, stay in ACKNOWLEDGED (reversible via unacknowledge) until confident. For non-resolution edits (title, post-hoc postmortem link), use cx cases update.

Bulk Operations

There are no bulk endpoints. To act on many cases, pipe IDs through a loop, e.g. ... | jq -r '.[].id' | xargs -I {} cx cases acknowledge {}.

Key Principles

  • Use emails, never user IDs — for assign --user and in all output.
  • resolve is irreversible and close is terminal — confirm before resolving; for false alarms close from ACTIVE directly.
  • Always supply a resolution reason unless --no-reason truly applies.
  • P1-style shorthand is accepted anywhere a priority/status/category is expected.
  • Multi-profile fan-out with -p <profile> (repeatable) for cross-environment triage.
  • Link to a specific case — build <base>/cases?id=<case_id>, where <base> is the console URL already seen in a `View in Coralogix: <base>/...` line printed by any `cx cases` command this session — never fabricate `<base>` yourself.

References

  • Case analytics: references/case-analytics.md [blocked]
  • Single case investigation: references/single-case.md [blocked]

Related Skills

  • cx-alerts — the alert definitions behind the events grouped into a case.
  • cx-slos — the SLO definitions whose breaches drive reliability cases.
  • cx-telemetry-querying — pivot from a case's impacted entities into logs/spans/metrics.

来源与署名

来源:coralogix/cx-cli位于skills/cx-cases提交c071372

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架