mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Synthetics] Update alert condition text (#170013)
## Summary Fixes https://github.com/elastic/kibana/issues/168727
This commit is contained in:
parent
9a68094c67
commit
d1c587ff1d
5 changed files with 19 additions and 19 deletions
|
@ -39373,4 +39373,4 @@
|
|||
"xpack.painlessLab.walkthroughButtonLabel": "Présentation",
|
||||
"xpack.serverlessObservability.nav.getStarted": "Démarrer"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39364,4 +39364,4 @@
|
|||
"xpack.painlessLab.walkthroughButtonLabel": "実地検証",
|
||||
"xpack.serverlessObservability.nav.getStarted": "使ってみる"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39358,4 +39358,4 @@
|
|||
"xpack.painlessLab.walkthroughButtonLabel": "指导",
|
||||
"xpack.serverlessObservability.nav.getStarted": "开始使用"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ const mockStatusAlertDocument = (
|
|||
return {
|
||||
fields: {
|
||||
...mockCommonAlertDocumentFields(monitor.monitorInfo),
|
||||
[ALERT_REASON]: `Monitor "First" from ${monitor.monitorInfo.observer?.geo?.name} failed ${count} times in the last ${interval}. Alert when > ${numTimes}. Checked at ${checkedAt}.`,
|
||||
[ALERT_REASON]: `Monitor "First" from ${monitor.monitorInfo.observer?.geo?.name} failed ${count} times in the last ${interval}. Alert when >= ${numTimes}. Checked at ${checkedAt}.`,
|
||||
},
|
||||
id: getInstanceId(
|
||||
monitorInfo,
|
||||
|
@ -293,8 +293,8 @@ describe('status check alert', () => {
|
|||
"monitorUrl": "localhost:8080",
|
||||
"observerHostname": undefined,
|
||||
"observerLocation": "harrisburg",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15 mins. Alert when > 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15 mins. Alert when > 5.",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15 mins. Alert when >= 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15 mins. Alert when >= 5.",
|
||||
},
|
||||
]
|
||||
`);
|
||||
|
@ -312,8 +312,8 @@ describe('status check alert', () => {
|
|||
"monitorUrl": "localhost:8080",
|
||||
"observerHostname": undefined,
|
||||
"observerLocation": "harrisburg",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15 mins. Alert when > 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15 mins. Alert when > 5.",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15 mins. Alert when >= 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15 mins. Alert when >= 5.",
|
||||
"viewInAppUrl": "http://localhost:5601/hfe/app/uptime/monitor/Zmlyc3Q=?dateRangeEnd=now&dateRangeStart=2022-03-17T13%3A13%3A33.755Z&filters=%5B%5B%22observer.geo.name%22%2C%5B%22harrisburg%22%5D%5D%5D",
|
||||
},
|
||||
]
|
||||
|
@ -375,8 +375,8 @@ describe('status check alert', () => {
|
|||
"monitorUrl": "localhost:8080",
|
||||
"observerHostname": undefined,
|
||||
"observerLocation": "harrisburg",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15m. Alert when > 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15m. Alert when > 5.",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15m. Alert when >= 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15m. Alert when >= 5.",
|
||||
},
|
||||
]
|
||||
`);
|
||||
|
@ -394,8 +394,8 @@ describe('status check alert', () => {
|
|||
"monitorUrl": "localhost:8080",
|
||||
"observerHostname": undefined,
|
||||
"observerLocation": "harrisburg",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15m. Alert when > 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15m. Alert when > 5.",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15m. Alert when >= 5. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15m. Alert when >= 5.",
|
||||
"viewInAppUrl": "http://localhost:5601/hfe/app/uptime/monitor/Zmlyc3Q=?dateRangeEnd=now&dateRangeStart=2022-03-17T13%3A13%3A33.755Z&filters=%5B%5B%22observer.geo.name%22%2C%5B%22harrisburg%22%5D%5D%5D",
|
||||
},
|
||||
]
|
||||
|
@ -448,8 +448,8 @@ describe('status check alert', () => {
|
|||
"monitorUrl": "localhost:8080",
|
||||
"observerHostname": undefined,
|
||||
"observerLocation": "harrisburg",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 14h. Alert when > 4. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 14h. Alert when > 4.",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 14h. Alert when >= 4. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 14h. Alert when >= 4.",
|
||||
},
|
||||
]
|
||||
`);
|
||||
|
@ -665,8 +665,8 @@ describe('status check alert', () => {
|
|||
"monitorUrl": "localhost:8080",
|
||||
"observerHostname": undefined,
|
||||
"observerLocation": "harrisburg",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15 mins. Alert when > 3. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15 mins. Alert when > 3.",
|
||||
"reason": "Monitor \\"First\\" from harrisburg failed 234 times in the last 15 mins. Alert when >= 3. Checked at July 6, 2020 9:14 PM.",
|
||||
"statusMessage": "failed 234 times in the last 15 mins. Alert when >= 3.",
|
||||
},
|
||||
]
|
||||
`);
|
||||
|
@ -1476,7 +1476,7 @@ describe('status check alert', () => {
|
|||
numTimes: 10,
|
||||
interval: '30 days',
|
||||
})
|
||||
).toMatchInlineSnapshot(`"failed 235 times in the last 30 days. Alert when > 10."`);
|
||||
).toMatchInlineSnapshot(`"failed 235 times in the last 30 days. Alert when >= 10."`);
|
||||
});
|
||||
|
||||
it('creates message for availability item', () => {
|
||||
|
@ -1539,7 +1539,7 @@ describe('status check alert', () => {
|
|||
}
|
||||
)
|
||||
).toMatchInlineSnapshot(
|
||||
`"failed 235 times in the last 30 days. Alert when > 10. The 5 mins availability is 58.04%. Alert when < 90%."`
|
||||
`"failed 235 times in the last 30 days. Alert when >= 10. The 5 mins availability is 58.04%. Alert when < 90%."`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -340,7 +340,7 @@ export const durationAnomalyTranslations = {
|
|||
export const statusCheckTranslations = {
|
||||
downMonitorsLabel: (count: number, interval: string, numTimes: number) =>
|
||||
i18n.translate('xpack.uptime.alerts.monitorStatus.actionVariables.down', {
|
||||
defaultMessage: `failed {count} times in the last {interval}. Alert when > {numTimes}.`,
|
||||
defaultMessage: `failed {count} times in the last {interval}. Alert when >= {numTimes}.`,
|
||||
values: {
|
||||
count,
|
||||
interval,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue