查询模型健康状态¶
查询模型的汇总健康状态和最近的通道检查结果。
GET https://billing.moi.matrixorigin.cn/api/v1/taas/ai-models/{id}/health
调用前准备¶
请求参数¶
将示例中的 $MODEL_ID、$MOI_PERSONAL_ACCESS_TOKEN 替换为实际值。
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/ai-models/$MODEL_ID/health" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
参数 |
类型 |
是否必填 |
说明 |
|---|---|---|---|
|
string |
是 |
所选模型的目录 ID,取自模型目录查询结果中的 |
成功响应¶
{
"overall_status": "healthy",
"details": [
{
"provider_id": "provider_example",
"provider_native_model_id": "native_example",
"provider_native_model_name": "example-chat",
"target_id": "target_example",
"status": "healthy",
"latency_ms": 120,
"checked_at": 1788710400,
"error_message": ""
}
]
}
字段 |
类型 |
说明 |
|---|---|---|
|
string |
模型汇总健康状态。 |
|
array of object |
已有检查结果的通道。无记录时为空。 |
|
string |
通道所属供应商 ID。 |
|
string |
供应商模型对象 ID。 |
|
string |
供应商模型名称。 |
|
string |
健康检查目标 ID。 |
|
string |
检查状态。 |
|
integer |
检查耗时,毫秒。 |
|
integer |
检查时间,Unix 秒。 |
|
string |
检查错误说明。无错误时为空。 |
最后更新于