diff --git a/src/Pages/Uptime/Configure/index.jsx b/src/Pages/Uptime/Configure/index.jsx
index 5b58bf8be..e88f12441 100644
--- a/src/Pages/Uptime/Configure/index.jsx
+++ b/src/Pages/Uptime/Configure/index.jsx
@@ -68,9 +68,9 @@ const Configure = () => {
];
const expectedValuePlaceholders = {
- regex: "^2[0-9]{2}$",
- equal: "200",
- include: "success",
+ regex: "^(success|ok)$",
+ equal: "success",
+ include: "ok",
};
useEffect(() => {
@@ -479,7 +479,8 @@ const Configure = () => {
color={theme.palette.primary.contrastTextTertiary}
opacity={0.8}
>
- The expected value to check in the response body content. Examples: specific text, HTML elements, or JSON values in the response.
+ The expected value is used to match against response result, and
+ the match determines the status.
@@ -499,7 +500,8 @@ const Configure = () => {
color={theme.palette.primary.contrastTextTertiary}
opacity={0.8}
>
- Optional path to extract specific data from JSON responses. Common examples: "status", "data.status", "meta.code". Leave empty to check the entire response.
+ This expression will be evaluated against the reponse JSON data
+ and the result will be used to match against the expected value.
See
{
];
const expectedValuePlaceholders = {
- regex: "^2[0-9]{2}$",
- equal: "200",
- include: "success",
+ regex: "^(success|ok)$",
+ equal: "success",
+ include: "ok",
};
const monitorTypeMaps = {
@@ -465,7 +465,8 @@ const CreateMonitor = () => {
color={theme.palette.primary.contrastTextTertiary}
opacity={0.8}
>
- The expected value to check in the response body content. Examples: specific text, HTML elements, or JSON values in the response.
+ The expected value is used to match against response result, and the
+ match determines the status.
@@ -485,8 +486,8 @@ const CreateMonitor = () => {
color={theme.palette.primary.contrastTextTertiary}
opacity={0.8}
>
- Optional path to extract specific data from JSON responses. Common examples: "status", "data.status", "meta.code". Leave empty to check the entire response.
- See
+ This expression will be evaluated against the reponse JSON data and
+ the result will be used to match against the expected value. See