implement port monitoring

This commit is contained in:
Alex Holliday committed 2025-11-21 20:03:03 +00:00
1 parent caa863afe8
commit 5d825537ae
10 files changed
+195 -47

No files matched your search

+21
View File
@@ -132,6 +132,11 @@ export const UptimeForm = ({
"Use HTTP to monitor your website or API endpoint."
}
/>
<RadioWithDescription
value="port"
label={"Port"}
description={"Check whether your port is open or not."}
/>
<RadioWithDescription
value="ping"
label={t("pingMonitoring")}
@@ -174,6 +179,22 @@ export const UptimeForm = ({
/>
)}
/>
{selectedType === "port" && (
<Controller
name="port"
control={control}
render={({ field }) => (
<TextInput
{...field}
type="number"
fieldLabel={"Port"}
fullWidth
error={!!errors.port}
helperText={errors.port ? errors.port.message : ""}
/>
)}
/>
)}
<Controller
name="name"
control={control}