Interface: Monitor
Defined in: shared/types.ts:238
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?โ
optionalactiveOperations?:string[]
Defined in: shared/types.ts:240
Array of currently active operations for this monitor
baselineUrl?โ
optionalbaselineUrl?:string
Defined in: shared/types.ts:242
Baseline origin URL when comparing CDN edge consistency
bodyKeyword?โ
optionalbodyKeyword?:string
Defined in: shared/types.ts:244
Keyword that must be present in HTTP response bodies
certificateWarningDays?โ
optionalcertificateWarningDays?:number
Defined in: shared/types.ts:246
Certificate expiry warning threshold in days for SSL monitoring
checkIntervalโ
checkInterval:
number
Defined in: shared/types.ts:248
Interval between checks in milliseconds
edgeLocations?โ
optionaledgeLocations?:string
Defined in: shared/types.ts:250
Optional list of encoded CDN edge endpoints (comma or newline separated)
expectedHeaderValue?โ
optionalexpectedHeaderValue?:string
Defined in: shared/types.ts:252
Expected value for HTTP header verification
expectedJsonValue?โ
optionalexpectedJsonValue?:string
Defined in: shared/types.ts:254
Expected value within a JSON payload
expectedStatusCode?โ
optionalexpectedStatusCode?:number
Defined in: shared/types.ts:256
Expected HTTP status code for status-based HTTP monitors
expectedValue?โ
optionalexpectedValue?:string
Defined in: shared/types.ts:258
Expected value for DNS record verification
followRedirects?โ
optionalfollowRedirects?:boolean
Defined in: shared/types.ts:260
Whether HTTP monitors should follow redirects (best-effort).
headerName?โ
optionalheaderName?:string
Defined in: shared/types.ts:262
HTTP header name to inspect
heartbeatExpectedStatus?โ
optionalheartbeatExpectedStatus?:string
Defined in: shared/types.ts:264
Expected status string returned by heartbeat endpoints
heartbeatMaxDriftSeconds?โ
optionalheartbeatMaxDriftSeconds?:number
Defined in: shared/types.ts:266
Maximum tolerated heartbeat staleness in seconds
heartbeatStatusField?โ
optionalheartbeatStatusField?:string
Defined in: shared/types.ts:268
Field name (dot notation supported) that exposes heartbeat status
heartbeatTimestampField?โ
optionalheartbeatTimestampField?:string
Defined in: shared/types.ts:270
Field name (dot notation supported) that exposes heartbeat timestamp
historyโ
history:
StatusHistory[]
Defined in: shared/types.ts:272
Historical status data for analytics and trends
host?โ
optionalhost?:string
Defined in: shared/types.ts:274
Hostname or IP address to monitor
idโ
id:
string
Defined in: shared/types.ts:276
Unique identifier for the monitor
jsonPath?โ
optionaljsonPath?:string
Defined in: shared/types.ts:278
JSON path expression used for HTTP JSON monitors
lastChecked?โ
optionallastChecked?:Date
Defined in: shared/types.ts:280
Timestamp of the last check performed
maxPongDelayMs?โ
optionalmaxPongDelayMs?:number
Defined in: shared/types.ts:282
Maximum acceptable delay before a WebSocket pong response (milliseconds)
maxReplicationLagSeconds?โ
optionalmaxReplicationLagSeconds?:number
Defined in: shared/types.ts:284
Maximum allowable replication lag in seconds
maxResponseTime?โ
optionalmaxResponseTime?:number
Defined in: shared/types.ts:286
Maximum allowed response time for latency monitors
monitoringโ
monitoring:
boolean
Defined in: shared/types.ts:288
Whether monitoring is currently active for this monitor
port?โ
optionalport?:number
Defined in: shared/types.ts:290
Port number for port-based monitoring
primaryStatusUrl?โ
optionalprimaryStatusUrl?:string
Defined in: shared/types.ts:292
Primary node status endpoint used for replication comparisons
recordType?โ
optionalrecordType?:DnsRecordType
Defined in: shared/types.ts:294
DNS record type to query (A, AAAA, CNAME, etc.)
replicaStatusUrl?โ
optionalreplicaStatusUrl?:string
Defined in: shared/types.ts:296
Replica node status endpoint used for replication comparisons
replicationTimestampField?โ
optionalreplicationTimestampField?:string
Defined in: shared/types.ts:298
JSON field (dot notation supported) containing replication timestamps
responseTimeโ
responseTime:
number
Defined in: shared/types.ts:300
Latest response time measurement in milliseconds
retryAttemptsโ
retryAttempts:
number
Defined in: shared/types.ts:302
Number of retry attempts when a check fails
statusโ
status:
"degraded"|"down"|"up"|"paused"|"pending"
Defined in: shared/types.ts:304
Current status of the monitor
timeoutโ
timeout:
number
Defined in: shared/types.ts:306
Timeout for monitor checks in milliseconds
typeโ
type:
"cdn-edge-consistency"|"dns"|"http"|"http-header"|"http-json"|"http-keyword"|"http-latency"|"http-status"|"ping"|"port"|"replication"|"server-heartbeat"|"ssl"|"websocket-keepalive"
Defined in: shared/types.ts:310
Type of monitoring performed (see BASE_MONITOR_TYPES).
url?โ
optionalurl?:string
Defined in: shared/types.ts:312
URL to monitor for HTTP-based checks