mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
status
This commit is contained in:
@@ -10,6 +10,9 @@ use serde::Serialize;
|
||||
use std::time::Duration;
|
||||
use strum::Display;
|
||||
|
||||
const STATUS_WIDGET_URL: &str = "https://status.openai.com/proxy/status.openai.com";
|
||||
const CODEX_COMPONENT_NAME: &str = "Codex";
|
||||
|
||||
#[derive(Debug, Clone, Display, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum ComponentHealth {
|
||||
@@ -71,9 +74,6 @@ pub async fn fetch_codex_health() -> Result<ComponentHealth> {
|
||||
derive_component_health(&payload, CODEX_COMPONENT_NAME)
|
||||
}
|
||||
|
||||
const STATUS_WIDGET_URL: &str = "https://status.openai.com/proxy/status.openai.com";
|
||||
const CODEX_COMPONENT_NAME: &str = "Codex";
|
||||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
struct StatusPayload {
|
||||
#[serde(default)]
|
||||
|
||||
Reference in New Issue
Block a user