Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

feat: add LiteLLM_HealthCheckTable model to schema for health monitoring (#11677)

Cole McIntoshc39b8f217824
diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma
index 8088edf29ed..1ea1987de67 100644
--- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma
+++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma
@@ -498,4 +498,24 @@ model LiteLLM_GuardrailsTable {
guardrail_info Json?
created_at DateTime @default(now())
updated_at DateTime @updatedAt
+}
+
+model LiteLLM_HealthCheckTable {
+ health_check_id String @id @default(uuid())
+ model_name String
+ model_id String?
+ status String
+ healthy_count Int @default(0)
+ unhealthy_count Int @default(0)
+ error_message String?
+ response_time_ms Float?
+ details Json?
+ checked_by String?
+ checked_at DateTime @default(now())
+ created_at DateTime @default(now())
+ updated_at DateTime @updatedAt
+
+ @@index([model_name])
+ @@index([checked_at])
+ @@index([status])
}
\ No newline at end of file
diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma
index dc16a0ceaf0..76f91aa1e4d 100644
--- a/litellm/proxy/schema.prisma
+++ b/litellm/proxy/schema.prisma
@@ -497,4 +497,24 @@ model LiteLLM_GuardrailsTable {
guardrail_info Json?
created_at DateTime @default(now())
updated_at DateTime @updatedAt
+}
+
+model LiteLLM_HealthCheckTable {
+ health_check_id String @id @default(uuid())
+ model_name String
+ model_id String?
+ status String
+ healthy_count Int @default(0)
+ unhealthy_count Int @default(0)
+ error_message String?
+ response_time_ms Float?
+ details Json?
+ checked_by String?
+ checked_at DateTime @default(now())
+ created_at DateTime @default(now())
+ updated_at DateTime @updatedAt
+
+ @@index([model_name])
+ @@index([checked_at])
+ @@index([status])
}
\ No newline at end of file
diff --git a/schema.prisma b/schema.prisma
index 032b9e0b58d..cff89a8cd94 100644
--- a/schema.prisma
+++ b/schema.prisma
@@ -497,4 +497,24 @@ model LiteLLM_GuardrailsTable {
guardrail_info Json?
created_at DateTime @default(now())
updated_at DateTime @updatedAt
+}
+
+model LiteLLM_HealthCheckTable {
+ health_check_id String @id @default(uuid())
+ model_name String
+ model_id String?
+ status String
+ healthy_count Int @default(0)
+ unhealthy_count Int @default(0)
+ error_message String?
+ response_time_ms Float?
+ details Json?
+ checked_by String?
+ checked_at DateTime @default(now())
+ created_at DateTime @default(now())
+ updated_at DateTime @updatedAt
+
+ @@index([model_name])
+ @@index([checked_at])
+ @@index([status])
}
\ No newline at end of file