mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-17 04:12:25 +00:00
chore: improve provider down query
This commit is contained in:
parent
cee04f2924
commit
193c169ca5
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ const providerHttpErrorsQuery = (product: "go" | "zen") => {
|
|||
},
|
||||
{
|
||||
name: "is_failed_provider_http_status",
|
||||
expression: `IF(AND(GTE($llm.error.code, "400"), NOT(EQUALS($llm.error.code, "401"))), 1, 0)`,
|
||||
expression: `IF(GTE($llm.error.code, "400"), 1, 0)`,
|
||||
},
|
||||
],
|
||||
calculations: [
|
||||
|
|
@ -86,7 +86,7 @@ const providerHttpErrorsQuery = (product: "go" | "zen") => {
|
|||
},
|
||||
],
|
||||
formulas: [
|
||||
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 500), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
|
||||
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 250), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
|
||||
],
|
||||
timeRange: 1800,
|
||||
}).json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue