uptime form improvement

This commit is contained in:
mohadeseh safari committed 2025-03-25 18:16:11 -04:00
1 parent 71ab885d24
commit 89d010a54b
1 file changed
+6 -8
+6 -8
View File
@@ -68,9 +68,9 @@ const Configure = () => {
]; ];
const expectedValuePlaceholders = { const expectedValuePlaceholders = {
regex: "^[\w.-]+@gmail.com$", regex: "^2[0-9]{2}$",
equal: "janet@gmail.com", equal: "200",
include: "@gmail.com", include: "success",
}; };
useEffect(() => { useEffect(() => {
@@ -479,8 +479,7 @@ const Configure = () => {
color={theme.palette.primary.contrastTextTertiary} color={theme.palette.primary.contrastTextTertiary}
opacity={0.8} opacity={0.8}
> >
The expected value is used to match against response result, and The expected value to check in the response. Examples: HTTP status code, text in response body, or specific value from JSON data.
the match determines the status.
</Typography> </Typography>
</Stack> </Stack>
<Stack> <Stack>
@@ -489,7 +488,7 @@ const Configure = () => {
id="json-path" id="json-path"
label="JSON Path" label="JSON Path"
isOptional={true} isOptional={true}
placeholder="data.email" placeholder="data.status"
value={monitor.jsonPath} value={monitor.jsonPath}
onChange={(event) => handleChange(event, "jsonPath")} onChange={(event) => handleChange(event, "jsonPath")}
error={errors["jsonPath"] ? true : false} error={errors["jsonPath"] ? true : false}
@@ -500,8 +499,7 @@ const Configure = () => {
color={theme.palette.primary.contrastTextTertiary} color={theme.palette.primary.contrastTextTertiary}
opacity={0.8} opacity={0.8}
> >
This expression will be evaluated against the reponse JSON data Optional path to extract specific data from JSON responses. Common examples: "status", "data.status", "meta.code". Leave empty to check the entire response.
and the result will be used to match against the expected value.
See&nbsp; See&nbsp;
<Typography <Typography
component="a" component="a"