Skip to content

Commit 193c169

Browse files
committed
chore: improve provider down query
1 parent cee04f2 commit 193c169

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎infra/monitoring.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const providerHttpErrorsQuery = (product: "go" | "zen") => {
6666
},
6767
{
6868
name: "is_failed_provider_http_status",
69-
expression: `IF(AND(GTE($llm.error.code, "400"), NOT(EQUALS($llm.error.code, "401"))), 1, 0)`,
69+
expression: `IF(GTE($llm.error.code, "400"), 1, 0)`,
7070
},
7171
],
7272
calculations: [
@@ -86,7 +86,7 @@ const providerHttpErrorsQuery = (product: "go" | "zen") => {
8686
},
8787
],
8888
formulas: [
89-
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 500), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
89+
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 250), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
9090
],
9191
timeRange: 1800,
9292
}).json

0 commit comments

Comments
 (0)