|
|
@@ -45,7 +45,7 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => {
|
|
|
{ op: "COUNT", name: "TOTAL", filterCombination: "AND", filters },
|
|
|
{ op: "SUM", name: "FAILED", column: "is_failed_http_status", filterCombination: "AND", filters },
|
|
|
],
|
|
|
- formulas: [{ name: "ERROR", expression: "IF(GTE($TOTAL, 2500), DIV($FAILED, $TOTAL), 0)" }],
|
|
|
+ formulas: [{ name: "ERROR", expression: "IF(GTE($TOTAL, 500), DIV($FAILED, $TOTAL), 0)" }],
|
|
|
timeRange: 900,
|
|
|
}).json
|
|
|
}
|
|
|
@@ -60,14 +60,14 @@ new honeycomb.Trigger("IncreasedModelHttpErrorsGo", {
|
|
|
frequency: 300,
|
|
|
thresholds: [{ op: ">=", value: 0.8, exceededLimit: 1 }],
|
|
|
recipients: [
|
|
|
- // {
|
|
|
- // id: webhookRecipient.id,
|
|
|
- // notificationDetails: [
|
|
|
- // {
|
|
|
- // variables: [{ name: "type", value: "model_http_errors" }],
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
+ {
|
|
|
+ id: webhookRecipient.id,
|
|
|
+ notificationDetails: [
|
|
|
+ {
|
|
|
+ variables: [{ name: "type", value: "model_http_errors" }],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
],
|
|
|
})
|
|
|
|
|
|
@@ -79,13 +79,13 @@ new honeycomb.Trigger("IncreasedModelHttpErrorsZen", {
|
|
|
frequency: 300,
|
|
|
thresholds: [{ op: ">=", value: 0.8, exceededLimit: 1 }],
|
|
|
recipients: [
|
|
|
- // {
|
|
|
- // id: webhookRecipient.id,
|
|
|
- // notificationDetails: [
|
|
|
- // {
|
|
|
- // variables: [{ name: "type", value: "model_http_errors" }],
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
+ {
|
|
|
+ id: webhookRecipient.id,
|
|
|
+ notificationDetails: [
|
|
|
+ {
|
|
|
+ variables: [{ name: "type", value: "model_http_errors" }],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
],
|
|
|
})
|