forge_primitives/cloud/service_status.rs
1//! Statuspage-derived service status wire shapes.
2
3/// Severity of a detected service-status issue. Mirrored to views by
4/// `SessionUpdate::ServiceStatus`.
5#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
6#[serde(rename_all = "snake_case")]
7pub enum ServiceSeverity {
8 Warning,
9 Error,
10}
11
12/// A classified Anthropic service-status issue from the Statuspage
13/// summary endpoint.
14#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
15pub struct ServiceIssue {
16 pub severity: ServiceSeverity,
17 pub message: String,
18}