opencode-agent[bot] 4 mesi fa
parent
commit
35deef6175
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      infra/monitoring.ts

+ 4 - 3
infra/monitoring.ts

@@ -38,9 +38,10 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => {
     calculatedFields: [
       {
         name: "is_failed_http_status",
-        expression: product === "go"
-          ? `IF(AND(GTE($status, "400"), NOT(EQUALS($status, "401")), NOT(EQUALS($status, "429"))), 1, 0)`
-          : `IF(AND(GTE($status, "400"), NOT(EQUALS($status, "401"))), 1, 0)`,
+        expression:
+          product === "go"
+            ? `IF(AND(GTE($status, "400"), NOT(EQUALS($status, "401")), NOT(EQUALS($status, "429"))), 1, 0)`
+            : `IF(AND(GTE($status, "400"), NOT(EQUALS($status, "401"))), 1, 0)`,
       },
     ],
     calculations: [