mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-24 19:01:01 -06:00
uptime form improvement
This commit is contained in:
@@ -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
|
||||
<Typography
|
||||
component="a"
|
||||
|
||||
Reference in New Issue
Block a user