Skip to main content

Function: validateMonitorHostAndPort()

validateMonitorHostAndPort(monitor: Monitor): string | null

Defined in: electron/services/monitoring/shared/monitorServiceHelpers.ts:86

Validate that a monitor has the required host and port properties

Parameters

monitor

Monitor

Monitor to validate

Returns

string | null

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error message if validation fails, null if valid