remove unused param

This commit is contained in:
Alex Holliday committed 2026-09-23 13:51:30 -07:00
1 parent 0d75629dcb
commit a1b10c7469
2 files changed
+4 -4

No files matched your search

@@ -15,7 +15,7 @@ import { DateRange } from "@/types/query.js";
import { describeContainerBreach, findContainerBreaches } from "@/domain/docker/docker-alert.js"; import { describeContainerBreach, findContainerBreaches } from "@/domain/docker/docker-alert.js";
export interface IIncidentService { export interface IIncidentService {
handleIncident(monitor: Monitor, code: number, decision: MonitorActionDecision, check: Check): Promise<Incident | null>; handleIncident(monitor: Monitor, decision: MonitorActionDecision, check: Check): Promise<Incident | null>;
resolveIncident(incidentId: string, userId: string, teamId: string, comment?: string, userEmail?: string): Promise<Incident>; resolveIncident(incidentId: string, userId: string, teamId: string, comment?: string, userEmail?: string): Promise<Incident>;
getIncidentsByTeam( getIncidentsByTeam(
teamId: string, teamId: string,
@@ -54,7 +54,7 @@ export class IncidentService implements IIncidentService {
this.notificationMessageBuilder = notificationMessageBuilder; this.notificationMessageBuilder = notificationMessageBuilder;
} }
handleIncident = async (monitor: Monitor, code: number, decision: MonitorActionDecision, check: Check): Promise<Incident | null> => { handleIncident = async (monitor: Monitor, decision: MonitorActionDecision, check: Check): Promise<Incident | null> => {
if (!decision.shouldCreateIncident && !decision.shouldResolveIncident) { if (!decision.shouldCreateIncident && !decision.shouldResolveIncident) {
return null; return null;
} }
@@ -65,7 +65,7 @@ export class IncidentService implements IIncidentService {
if (activeIncident) { if (activeIncident) {
return activeIncident; return activeIncident;
} else { } else {
let statusCode = code; let statusCode = check.statusCode;
let message: string | undefined; let message: string | undefined;
// For threshold breaches, use 9999 status code and build descriptive message // For threshold breaches, use 9999 status code and build descriptive message
@@ -8,6 +8,6 @@ export class IncidentReactor implements IMonitorReactor {
constructor(private incidentService: IIncidentService) {} constructor(private incidentService: IIncidentService) {}
react = async (evaluation: MonitorEvaluation) => { react = async (evaluation: MonitorEvaluation) => {
await this.incidentService.handleIncident(evaluation.monitor, evaluation.statusChange.code, evaluation.decision, evaluation.check); await this.incidentService.handleIncident(evaluation.monitor, evaluation.decision, evaluation.check);
}; };
} }