diff --git a/src/Pages/Uptime/Configure/index.jsx b/src/Pages/Uptime/Configure/index.jsx index 4a119bd0f..7434014c2 100644 --- a/src/Pages/Uptime/Configure/index.jsx +++ b/src/Pages/Uptime/Configure/index.jsx @@ -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. @@ -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