@@ -4,7 +4,7 @@ import { domain } from "./stage" |
4 | 4 | const description = "Managed by SST (Don't edit in Honeycomb UI)" |
5 | 5 | const alertsDisabled = $app.stage !== "production" |
6 | 6 |
|
7 | | -const webhookRecipient = new honeycomb.WebhookRecipient("DiscordAlerts", { |
| 7 | +const webhookRecipient = new honeycombio.WebhookRecipient("DiscordAlerts", { |
8 | 8 | name: $app.stage === "production" ? "Discord Alerts" : `Discord Alerts (${$app.stage})`, |
9 | 9 | url: `https://${domain}/honeycomb/webhook`, |
10 | 10 | secret: SECRET.HoneycombWebhookSecret.result, |
|
67 | 67 | )`, |
68 | 68 | }) |
69 | 69 |
|
70 | | - return honeycomb.getQuerySpecificationOutput({ |
| 70 | + return honeycombio.getQuerySpecificationOutput({ |
71 | 71 | breakdowns: ["model"], |
72 | 72 | calculatedFields: [failedHttpStatus], |
73 | 73 | calculations: [ |
@@ -99,7 +99,7 @@ const providerHttpErrorsQuery = () => { |
99 | 99 | expression: `IF(GT($llm.error.code, "400"), 1, 0)`, |
100 | 100 | }) |
101 | 101 |
|
102 | | - return honeycomb.getQuerySpecificationOutput({ |
| 102 | + return honeycombio.getQuerySpecificationOutput({ |
103 | 103 | breakdowns: ["provider"], |
104 | 104 | calculatedFields: [successHttpStatus, failedProviderHttpStatus], |
105 | 105 | calculations: [ |
@@ -140,7 +140,7 @@ const modelLowTpsQuery = (product: "go" | "zen") => { |
140 | 140 | { column: "tps.output", op: "exists" }, |
141 | 141 | ] |
142 | 142 |
|
143 | | - return honeycomb.getQuerySpecificationOutput({ |
| 143 | + return honeycombio.getQuerySpecificationOutput({ |
144 | 144 | breakdowns: ["model"], |
145 | 145 | calculations: [ |
146 | 146 | { op: "COUNT", name: "TOTAL", filterCombination: "AND", filters }, |
@@ -157,7 +157,7 @@ const modelLowTpsQuery = (product: "go" | "zen") => { |
157 | 157 | }).json |
158 | 158 | } |
159 | 159 |
|
160 | | -new honeycomb.Trigger("IncreasedModelHttpErrorsGo", { |
| 160 | +new honeycombio.Trigger("IncreasedModelHttpErrorsGo", { |
161 | 161 | name: "Increased Model HTTP Errors [Go]", |
162 | 162 | description, |
163 | 163 | disabled: alertsDisabled, |
@@ -177,7 +177,7 @@ new honeycomb.Trigger("IncreasedModelHttpErrorsGo", { |
177 | 177 | ], |
178 | 178 | }) |
179 | 179 |
|
180 | | -new honeycomb.Trigger("IncreasedModelHttpErrorsZen", { |
| 180 | +new honeycombio.Trigger("IncreasedModelHttpErrorsZen", { |
181 | 181 | name: "Increased Model HTTP Errors [Zen]", |
182 | 182 | description, |
183 | 183 | disabled: alertsDisabled, |
@@ -197,7 +197,7 @@ new honeycomb.Trigger("IncreasedModelHttpErrorsZen", { |
197 | 197 | ], |
198 | 198 | }) |
199 | 199 |
|
200 | | -new honeycomb.Trigger("LowModelTpsGo", { |
| 200 | +new honeycombio.Trigger("LowModelTpsGo", { |
201 | 201 | name: "Low Model TPS [Go]", |
202 | 202 | description, |
203 | 203 | disabled: alertsDisabled, |
@@ -217,7 +217,7 @@ new honeycomb.Trigger("LowModelTpsGo", { |
217 | 217 | ], |
218 | 218 | }) |
219 | 219 |
|
220 | | -new honeycomb.Trigger("LowModelTpsZen", { |
| 220 | +new honeycombio.Trigger("LowModelTpsZen", { |
221 | 221 | name: "Low Model TPS [Zen]", |
222 | 222 | description, |
223 | 223 | disabled: alertsDisabled, |
@@ -237,7 +237,7 @@ new honeycomb.Trigger("LowModelTpsZen", { |
237 | 237 | ], |
238 | 238 | }) |
239 | 239 |
|
240 | | -new honeycomb.Trigger("IncreasedProviderHttpErrors", { |
| 240 | +new honeycombio.Trigger("IncreasedProviderHttpErrors", { |
241 | 241 | name: "Increased Provider HTTP Errors", |
242 | 242 | description, |
243 | 243 | disabled: alertsDisabled, |
@@ -257,11 +257,11 @@ new honeycomb.Trigger("IncreasedProviderHttpErrors", { |
257 | 257 | ], |
258 | 258 | }) |
259 | 259 |
|
260 | | -new honeycomb.Trigger("IncreasedFreeTierRequests", { |
| 260 | +new honeycombio.Trigger("IncreasedFreeTierRequests", { |
261 | 261 | name: "Increased Free Tier Requests", |
262 | 262 | description, |
263 | 263 | disabled: alertsDisabled, |
264 | | - queryJson: honeycomb.getQuerySpecificationOutput({ |
| 264 | + queryJson: honeycombio.getQuerySpecificationOutput({ |
265 | 265 | calculations: [{ op: "COUNT" }], |
266 | 266 | filters: [ |
267 | 267 | { column: "event_type", op: "=", value: "completions" }, |
|