first byte to total repsonse

This commit is contained in:
Alex Holliday committed 2026-07-29 12:30:18 -07:00
1 parent 0e0cace676
commit ed54fa4668
3 files changed
+213 -2

No files matched your search

+2 -2
View File
@@ -117,7 +117,7 @@ export class HttpProvider implements IStatusProvider<HttpStatusPayload> {
if (error instanceof HTTPError || error instanceof RequestError) {
const statusCode = error.response?.statusCode;
const statusUp = isStatusUp(statusCode, monitor.customUpCodes);
const responseTime = error.timings?.phases?.firstByte ?? error.timings?.phases?.total ?? 0;
const responseTime = error.timings?.phases?.total ?? 0;
if (!statusUp) {
return {
@@ -184,7 +184,7 @@ export class HttpProvider implements IStatusProvider<HttpStatusPayload> {
statusCode: response.statusCode,
statusUp,
message: response.statusMessage ?? "OK",
responseTime: response.timings.phases.firstByte ?? 0,
responseTime: response.timings.phases.total ?? 0,
timings: response.timings,
});
} catch (error: unknown) {