Octri

monitoring incidents

Répertorie les incidents sur votre page d’état, du plus récent au plus ancien, avec le statut, l’impact, la date de début et le nombre de mises à jour de chacun. Ce que vous publiez devient public dès sa rédaction : il n’y a ni brouillon ni publication différée.

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

Options

--openboolean

Exclut les incidents résolus.

octri monitoring incidents show <id>

Affiche un incident et sa chronologie, de la mise à jour la plus ancienne à la plus récente.

Arguments

<id>stringobligatoire

L’incident.

octri monitoring incidents create <title>

Ouvre un incident.

Arguments

<title>stringobligatoire

Le titre affiché aux lecteurs.

Options

--message <text>stringobligatoire

La première mise à jour affichée aux lecteurs.

--status <status>string

investigating, identified, monitoring ou resolved.

--impact <impact>string

minor, major, critical ou maintenance.

--checks <ids>list

Les ID des contrôles concernés.

octri monitoring incidents post <id>

Ajoute une mise à jour à la chronologie.

Arguments

<id>stringobligatoire

L’incident.

Options

--message <text>stringobligatoire

Le texte de la mise à jour. Le texte qui suit l’ID convient également.

--status <status>string

Fait avancer l’incident, par exemple vers identified.

octri monitoring incidents resolve <id>

Publie la mise à jour de clôture et marque l’incident comme résolu.

Arguments

<id>stringobligatoire

L’incident.

Options

--message <text>stringpar défaut : This incident has been resolved.

La mise à jour de clôture.

octri monitoring incidents update <id>

Modifie l’incident lui-même plutôt que sa chronologie.

Arguments

<id>stringobligatoire

L’incident.

Options

--title <text>string

Un nouveau titre.

--impact <impact>string

Un nouvel impact.

--checks <ids>list

Remplace les contrôles concernés.

octri monitoring incidents delete <id> --yes

Supprime l’incident et toutes ses mises à jour. Résolvez-le plutôt pour conserver l’historique.

Arguments

<id>stringobligatoire

L’incident.

Options

--yesbooleanobligatoire

Confirme la suppression.

Exemples

Ouvrir un incident

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 "…"

Publier une mise à jour

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

Le résoudre

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

Lire la chronologie

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.