Interface: MonitorRow
Defined in: shared/types/database.ts:72
Represents a row in the monitor table.
Remarksโ
Stores configuration and runtime state for each monitor.
Hierarchyโ
Extendsโ
Indexableโ
[
key:string]:unknown
[
key:number]:unknown
[
key:symbol]:unknown
Propertiesโ
id?โ
optionalid?:string|number
Defined in: shared/types/database.ts:30
Unique identifier for the row.
Remarksโ
May be a number (autoincrement) or string (custom).
Inherited fromโ
active_operations?โ
optionalactive_operations?:string
Defined in: shared/types/database.ts:76
JSON string containing an array of active operation identifiers.
body_keyword?โ
optionalbody_keyword?:string
Defined in: shared/types/database.ts:80
Keyword required to be present in HTTP responses.
check_interval?โ
optionalcheck_interval?:number
Defined in: shared/types/database.ts:84
Interval between checks, in seconds.
created_at?โ
optionalcreated_at?:number
Defined in: shared/types/database.ts:88
Timestamp (epoch ms) when the monitor was created.
enabled?โ
optionalenabled?:number
Defined in: shared/types/database.ts:92
Whether the monitor is enabled (1) or disabled (0).
expected_status_code?โ
optionalexpected_status_code?:number
Defined in: shared/types/database.ts:96
Expected HTTP status code for status monitors.
follow_redirects?โ
optionalfollow_redirects?:number
Defined in: shared/types/database.ts:101
Whether HTTP-based monitors should follow redirects (1) or not (0).
host?โ
optionalhost?:string
Defined in: shared/types/database.ts:105
Hostname or IP address being monitored.
last_checked?โ
optionallast_checked?:number
Defined in: shared/types/database.ts:109
Timestamp (epoch ms) of the last check.
last_error?โ
optionallast_error?:string
Defined in: shared/types/database.ts:113
Last error message encountered by the monitor.
next_check?โ
optionalnext_check?:number
Defined in: shared/types/database.ts:117
Timestamp (epoch ms) for the next scheduled check.
port?โ
optionalport?:number
Defined in: shared/types/database.ts:121
Port number being monitored (if applicable).
response_time?โ
optionalresponse_time?:number
Defined in: shared/types/database.ts:125
Last recorded response time, in milliseconds.
retry_attempts?โ
optionalretry_attempts?:number
Defined in: shared/types/database.ts:129
Number of retry attempts for failed checks.
site_identifier?โ
optionalsite_identifier?:string
Defined in: shared/types/database.ts:133
Identifier of the site this monitor belongs to.
status?โ
optionalstatus?:string
Defined in: shared/types/database.ts:137
Current status of the monitor ("up", "down", etc.).
timeout?โ
optionaltimeout?:number
Defined in: shared/types/database.ts:141
Timeout for checks, in milliseconds.
type?โ
optionaltype?:string
Defined in: shared/types/database.ts:145
Monitor type (e.g., "http", "tcp").
updated_at?โ
optionalupdated_at?:number
Defined in: shared/types/database.ts:149
Timestamp (epoch ms) when the monitor was last updated.
url?โ
optionalurl?:string
Defined in: shared/types/database.ts:153
URL being monitored (for HTTP/HTTPS monitors).