Interface: Monitor
Defined in: shared/types.ts:121
Core monitor interface representing a single monitoring configuration.
Remarksโ
Defines all properties required for monitoring a target resource. Contains both configuration (what to monitor) and state (current status, history).
Propertiesโ
activeOperations?โ
optional
activeOperations:string
[]
Defined in: shared/types.ts:123
Array of currently active operations for this monitor
checkIntervalโ
checkInterval:
number
Defined in: shared/types.ts:125
Interval between checks in milliseconds
expectedValue?โ
optional
expectedValue:string
Defined in: shared/types.ts:127
Expected value for DNS record verification
historyโ
history:
StatusHistory
[]
Defined in: shared/types.ts:129
Historical status data for analytics and trends
host?โ
optional
host:string
Defined in: shared/types.ts:131
Hostname or IP address to monitor
idโ
id:
string
Defined in: shared/types.ts:133
Unique identifier for the monitor
lastChecked?โ
optional
lastChecked:Date
Defined in: shared/types.ts:135
Timestamp of the last check performed
monitoringโ
monitoring:
boolean
Defined in: shared/types.ts:137
Whether monitoring is currently active for this monitor
port?โ
optional
port:number
Defined in: shared/types.ts:139
Port number for port-based monitoring
recordType?โ
optional
recordType:string
Defined in: shared/types.ts:141
DNS record type to query (A, AAAA, CNAME, etc.)
responseTimeโ
responseTime:
number
Defined in: shared/types.ts:143
Latest response time measurement in milliseconds
retryAttemptsโ
retryAttempts:
number
Defined in: shared/types.ts:145
Number of retry attempts when a check fails
statusโ
status:
MonitorStatus
Defined in: shared/types.ts:147
Current status of the monitor
timeoutโ
timeout:
number
Defined in: shared/types.ts:149
Timeout for monitor checks in milliseconds
typeโ
type:
"http"
|"port"
|"ping"
|"dns"
Defined in: shared/types.ts:151
Type of monitoring performed (http, port, ping, dns)
url?โ
optional
url:string
Defined in: shared/types.ts:153
URL to monitor for HTTP-based checks