uptime form improvement

This commit is contained in:
mohadeseh safari
2025-03-25 18:16:11 -04:00
parent 71ab885d24
commit 89d010a54b

View File

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