Skip to main content

Interface: MonitorRow

Defined in: shared/types/database.ts:76

Represents a row in the monitor table.

Remarksโ€‹

Stores configuration and runtime state for each monitor.

Hierarchyโ€‹

View Summary

Extendsโ€‹

Indexableโ€‹

[key: string]: unknown
[key: number]: unknown
[key: symbol]: unknown

Propertiesโ€‹

id?โ€‹

optional id?: string | number;

Defined in: shared/types/database.ts:34

Unique identifier for the row.

Remarksโ€‹

May be a number (autoincrement) or string (custom).

Inherited fromโ€‹

BaseRow.id


active_operations?โ€‹

optional active_operations?: string;

Defined in: shared/types/database.ts:80

JSON string containing an array of active operation identifiers.


body_keyword?โ€‹

optional body_keyword?: string;

Defined in: shared/types/database.ts:84

Keyword required to be present in HTTP responses.


check_interval?โ€‹

optional check_interval?: number;

Defined in: shared/types/database.ts:88

Interval between checks, in seconds.


created_at?โ€‹

optional created_at?: number;

Defined in: shared/types/database.ts:92

Timestamp (epoch ms) when the monitor was created.


enabled?โ€‹

optional enabled?: number;

Defined in: shared/types/database.ts:96

Whether the monitor is enabled (1) or disabled (0).


expected_status_code?โ€‹

optional expected_status_code?: number;

Defined in: shared/types/database.ts:100

Expected HTTP status code for status monitors.


follow_redirects?โ€‹

optional follow_redirects?: number;

Defined in: shared/types/database.ts:105

Whether HTTP-based monitors should follow redirects (1) or not (0).


host?โ€‹

optional host?: string;

Defined in: shared/types/database.ts:109

Hostname or IP address being monitored.


last_checked?โ€‹

optional last_checked?: number;

Defined in: shared/types/database.ts:113

Timestamp (epoch ms) of the last check.


last_error?โ€‹

optional last_error?: string;

Defined in: shared/types/database.ts:117

Last error message encountered by the monitor.


next_check?โ€‹

optional next_check?: number;

Defined in: shared/types/database.ts:121

Timestamp (epoch ms) for the next scheduled check.


port?โ€‹

optional port?: number;

Defined in: shared/types/database.ts:125

Port number being monitored (if applicable).


response_time?โ€‹

optional response_time?: number;

Defined in: shared/types/database.ts:129

Last recorded response time, in milliseconds.


retry_attempts?โ€‹

optional retry_attempts?: number;

Defined in: shared/types/database.ts:133

Number of retry attempts for failed checks.


site_identifier?โ€‹

optional site_identifier?: string;

Defined in: shared/types/database.ts:137

Identifier of the site this monitor belongs to.


status?โ€‹

optional status?: string;

Defined in: shared/types/database.ts:141

Current status of the monitor ("up", "down", etc.).


timeout?โ€‹

optional timeout?: number;

Defined in: shared/types/database.ts:145

Timeout for checks, in milliseconds.


type?โ€‹

optional type?: string;

Defined in: shared/types/database.ts:149

Monitor type (e.g., "http", "tcp").


updated_at?โ€‹

optional updated_at?: number;

Defined in: shared/types/database.ts:153

Timestamp (epoch ms) when the monitor was last updated.


url?โ€‹

optional url?: string;

Defined in: shared/types/database.ts:157

URL being monitored (for HTTP/HTTPS monitors).