remove code and timestamp from stautschangeresult, no longer used
This commit is contained in:
1 parent
6267e08a51
commit
4e4d3c3971
2 files changed
+1
-7
No files matched your search
@@ -160,7 +160,7 @@ export class StatusService implements IStatusService {
|
|||||||
|
|
||||||
updateMonitorStatus = async (check: Check, monitor: Monitor): Promise<StatusChangeResult> => {
|
updateMonitorStatus = async (check: Check, monitor: Monitor): Promise<StatusChangeResult> => {
|
||||||
try {
|
try {
|
||||||
const { status, statusCode } = check;
|
const { status } = check;
|
||||||
|
|
||||||
// Update running stats
|
// Update running stats
|
||||||
await this.tryUpdateRunningStats(check, monitor);
|
await this.tryUpdateRunningStats(check, monitor);
|
||||||
@@ -204,8 +204,6 @@ export class StatusService implements IStatusService {
|
|||||||
monitor: updated,
|
monitor: updated,
|
||||||
statusChanged,
|
statusChanged,
|
||||||
prevStatus,
|
prevStatus,
|
||||||
code: statusCode,
|
|
||||||
timestamp: Date.now(),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -279,8 +277,6 @@ export class StatusService implements IStatusService {
|
|||||||
monitor: updated,
|
monitor: updated,
|
||||||
statusChanged,
|
statusChanged,
|
||||||
prevStatus,
|
prevStatus,
|
||||||
code: statusCode,
|
|
||||||
timestamp: new Date().getTime(),
|
|
||||||
thresholdBreaches,
|
thresholdBreaches,
|
||||||
};
|
};
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
|
|||||||
@@ -182,8 +182,6 @@ export type StatusChangeResult = {
|
|||||||
monitor: Monitor;
|
monitor: Monitor;
|
||||||
statusChanged: boolean;
|
statusChanged: boolean;
|
||||||
prevStatus: MonitorStatus;
|
prevStatus: MonitorStatus;
|
||||||
code: number;
|
|
||||||
timestamp: number;
|
|
||||||
thresholdBreaches?: HardwareBreaches;
|
thresholdBreaches?: HardwareBreaches;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user