diff --git a/src/Pages/Uptime/Configure/index.jsx b/src/Pages/Uptime/Configure/index.jsx index 735a087e4..37d8511c7 100644 --- a/src/Pages/Uptime/Configure/index.jsx +++ b/src/Pages/Uptime/Configure/index.jsx @@ -69,9 +69,9 @@ const Configure = () => { ]; const expectedValuePlaceholders = { - regex: "^[\w.-]+@gmail.com$", - equal: "janet@gmail.com", - include: "@gmail.com", + regex: "^(success|ok)$", + equal: "success", + include: "ok", }; useEffect(() => { @@ -490,7 +490,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} diff --git a/src/Pages/Uptime/Create/index.jsx b/src/Pages/Uptime/Create/index.jsx index 6f38a3c83..7422cda37 100644 --- a/src/Pages/Uptime/Create/index.jsx +++ b/src/Pages/Uptime/Create/index.jsx @@ -41,9 +41,9 @@ const CreateMonitor = () => { ]; const expectedValuePlaceholders = { - regex: "^[\w.-]+@gmail.com$", - equal: "janet@gmail.com", - include: "@gmail.com", + regex: "^(success|ok)$", + equal: "success", + include: "ok", }; const monitorTypeMaps = { @@ -477,7 +477,7 @@ const CreateMonitor = () => { 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} diff --git a/src/Utils/NetworkService.js b/src/Utils/NetworkService.js index 11cccc979..7c4ffba9f 100644 --- a/src/Utils/NetworkService.js +++ b/src/Utils/NetworkService.js @@ -263,6 +263,9 @@ class NetworkService { description: monitor.description, interval: monitor.interval, notifications: monitor.notifications, + matchMethod: monitor.matchMethod, + expectedValue: monitor.expectedValue, + jsonPath: monitor.jsonPath, }; return this.axiosInstance.put(`/monitors/${monitorId}`, payload, { headers: {