Octri

monitoring incidents

يسرد الحوادث على صفحة الحالة، بدءًا بالأحدث، مع حالة كل حادث وتأثيره ووقت بدئه وعدد تحديثاته. ما تنشره يصبح عامًا فور كتابته: لا توجد مسودة ولا عملية نشر.

bash
octri monitoring incidents [list | show | create | post | resolve | update | delete]

الخيارات

--openboolean

لا يعرض الحوادث المحلولة.

octri monitoring incidents show <id>

يعرض حادثًا واحدًا وتسلسله الزمني، بدءًا بأقدم تحديث.

الوسيطات

<id>stringمطلوب

الحادث.

octri monitoring incidents create <title>

يفتح حادثًا.

الوسيطات

<title>stringمطلوب

العنوان الذي يراه القراء.

الخيارات

--message <text>stringمطلوب

أول تحديث يراه القراء.

--status <status>string

investigating أو identified أو monitoring أو resolved.

--impact <impact>string

minor أو major أو critical أو maintenance.

--checks <ids>list

معرّفات عمليات التحقق التي يؤثر فيها.

octri monitoring incidents post <id>

يضيف تحديثًا إلى التسلسل الزمني.

الوسيطات

<id>stringمطلوب

الحادث.

الخيارات

--message <text>stringمطلوب

نص التحديث. ويمكنك أيضًا كتابة الكلمات بعد المعرّف.

--status <status>string

ينقل الحادث إلى مرحلة لاحقة، مثل identified.

octri monitoring incidents resolve <id>

ينشر التحديث الختامي ويضع علامة «محلول» على الحادث.

الوسيطات

<id>stringمطلوب

الحادث.

الخيارات

--message <text>stringالافتراضي: ⁨This incident has been resolved.⁩

التحديث الختامي.

octri monitoring incidents update <id>

يغيّر الحادث نفسه بدلًا من تسلسله الزمني.

الوسيطات

<id>stringمطلوب

الحادث.

الخيارات

--title <text>string

عنوان جديد.

--impact <impact>string

تأثير جديد.

--checks <ids>list

يستبدل عمليات التحقق المتأثرة.

octri monitoring incidents delete <id> --yes

يحذف الحادث وكل تحديثاته. بدلًا من ذلك، عالجه للحفاظ على السجل.

الوسيطات

<id>stringمطلوب

الحادث.

الخيارات

--yesbooleanمطلوب

أكّد الحذف.

أمثلة

افتح حادثًا

bash
octri monitoring incidents create "Elevated checkout errors" --message "We are seeing failed payments and are looking into it." --impact major
Output
✔ Opening the incident
✔ Incident Elevated checkout errors is on the status page (7fbbea1a-b853-4e71-83a6-8d3ce75fd940)
  octri monitoring incidents post 7fbbea1a-b853-4e71-83a6-8d3ce75fd940 --status identified --message "…"

انشر تحديثًا

bash
octri monitoring incidents post 7fbbea1a-b853-4e71-83a6-8d3ce75fd940 --status identified --message "A bad deploy. Rolling back now."
Output
✔ Posting the update
✔ Posted to Elevated checkout errors: now identified

عالج الحادث

bash
octri monitoring incidents resolve 7fbbea1a-b853-4e71-83a6-8d3ce75fd940
Output
✔ Resolving
✔ Elevated checkout errors is resolved.

اقرأ المخطط الزمني

bash
octri monitoring incidents show 7fbbea1a-b853-4e71-83a6-8d3ce75fd940
Output
✔ Loading incident

Elevated checkout errors
  status    resolved
  impact    major
  started   1s ago
  resolved  0s ago

  investigating 1s ago · Dana Reyes-Park
    We are seeing failed payments and are looking into it.

  identified 1s ago · Dana Reyes-Park
    A bad deploy. Rolling back now.

  resolved 0s ago · Dana Reyes-Park
    This incident has been resolved.