Skip to main content

Module service_status

Module service_status 

Source
Expand description

Anthropic statuspage poller. Pulls the public summary endpoint and classifies whether Claude Code or the underlying Claude API is in a degraded state.

Re-exportsΒ§

use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use std::time::Duration; πŸ”’

StructsΒ§

Component πŸ”’
Incident πŸ”’
IncidentComponent πŸ”’
ServiceIssue
A classified Anthropic service-status issue from the Statuspage summary endpoint.
SummaryResponse πŸ”’

EnumsΒ§

ServiceSeverity
Severity of a detected service-status issue. Mirrored to views by SessionUpdate::ServiceStatus.

ConstantsΒ§

RELEVANT_COMPONENTS πŸ”’
Component names we care about. β€œClaude Code” is the primary component; β€œClaude API” is included because Claude Code depends on it.
SERVICE_STATUS_TIMEOUT πŸ”’
STATUSPAGE_SUMMARY_URL πŸ”’

FunctionsΒ§

classify_component_status πŸ”’
classify_summary πŸ”’
fetch_service_status
Fetch + classify the public statuspage summary. Returns None if every relevant component is operational, or if the request fails.
is_relevant_component πŸ”’