Merge pull request #3401 from bluewave-labs/fix/rename-breached-to-exceeded
fix: rename "breached" status to "threshold exceeded"
This commit is contained in:
3 files changed
+5
-5
No files matched your search
@@ -401,7 +401,7 @@
|
|||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"down": "down",
|
"down": "down",
|
||||||
"breached": "breached",
|
"breached": "threshold exceeded",
|
||||||
"initializing": "initializing",
|
"initializing": "initializing",
|
||||||
"maintenance": "maintenance",
|
"maintenance": "maintenance",
|
||||||
"paused": "paused",
|
"paused": "paused",
|
||||||
|
|||||||
@@ -145,9 +145,9 @@ export class NotificationMessageBuilder implements INotificationMessageBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private buildThresholdBreachContent(monitor: Monitor, monitorStatusResponse: MonitorStatusResponse<HardwareStatusPayload>): NotificationContent {
|
private buildThresholdBreachContent(monitor: Monitor, monitorStatusResponse: MonitorStatusResponse<HardwareStatusPayload>): NotificationContent {
|
||||||
const title = `Threshold Breach: ${monitor.name}`;
|
const title = `Threshold Exceeded: ${monitor.name}`;
|
||||||
const summary = `Monitor "${monitor.name}" has breached one or more thresholds.`;
|
const summary = `Monitor "${monitor.name}" has exceeded one or more thresholds.`;
|
||||||
const details = [`URL: ${monitor.url}`, `Status: Breached`, `Type: ${monitor.type}`];
|
const details = [`URL: ${monitor.url}`, `Status: Threshold exceeded`, `Type: ${monitor.type}`];
|
||||||
|
|
||||||
const thresholds = this.extractThresholdBreaches(monitor, monitorStatusResponse);
|
const thresholds = this.extractThresholdBreaches(monitor, monitorStatusResponse);
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export class EmailProvider implements INotificationProvider {
|
|||||||
case "monitor_up":
|
case "monitor_up":
|
||||||
return `Monitor ${message.monitor.name} is back up`;
|
return `Monitor ${message.monitor.name} is back up`;
|
||||||
case "threshold_breach":
|
case "threshold_breach":
|
||||||
return `Monitor ${message.monitor.name} threshold breached`;
|
return `Monitor ${message.monitor.name} threshold exceeded`;
|
||||||
case "threshold_resolved":
|
case "threshold_resolved":
|
||||||
return `Monitor ${message.monitor.name} thresholds resolved`;
|
return `Monitor ${message.monitor.name} thresholds resolved`;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in new issue
Block a user