Octri

monitoring incidents

ステータスページのインシデントを新しい順に一覧表示します。各インシデントのステータス、影響度、発生日時、更新回数が表示されます。投稿した内容は記入するとすぐに公開されます。下書きや公開操作はありません。

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

フラグ

--openboolean

解決済みのインシデントを除外します。

octri monitoring incidents show <id>

1件のインシデントとそのタイムラインを、更新の古い順に出力します。

引数

<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

影響を受けるチェックのID。

octri monitoring incidents post <id>

タイムラインに更新を追加します。

引数

<id>string必須

インシデント。

フラグ

--message <text>string必須

更新のテキスト。IDの後に続けて入力することもできます。

--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.