Skip to main content
zerotal

Documentation


Documentation / @zerotal/monitor / MonitorStoreOptions

Interface: MonitorStoreOptions

Defined in: monitor/src/MonitorStore.ts:109

Properties

apdexTargetMs?

optional apdexTargetMs?: number

Defined in: monitor/src/MonitorStore.ts:110


slowQueryMs?

optional slowQueryMs?: number

Defined in: monitor/src/MonitorStore.ts:111


zerotalVersion?

optional zerotalVersion?: string

Defined in: monitor/src/MonitorStore.ts:112


region?

optional region?: string

Defined in: monitor/src/MonitorStore.ts:113


deploy?

optional deploy?: string

Defined in: monitor/src/MonitorStore.ts:114


storage?

optional storage?: string

Defined in: monitor/src/MonitorStore.ts:116

SQLite path. :memory: (default) for tests; a file path for persistence.


retentionDays?

optional retentionDays?: number

Defined in: monitor/src/MonitorStore.ts:118

Days of history to keep before pruning. Default: 7.


retentionMode?

optional retentionMode?: RetentionMode

Defined in: monitor/src/MonitorStore.ts:120

What to do with data past retention: delete it or move it to the archive. Default: delete.


slowRequestMs?

optional slowRequestMs?: number

Defined in: monitor/src/MonitorStore.ts:122

Requests at/above this many ms count as "slow". Default: 1000.


snapshotCacheMs?

optional snapshotCacheMs?: number

Defined in: monitor/src/MonitorStore.ts:128

Cache built snapshots for this many ms, keyed by range. De-dupes overlapping builds (panel poll + Prometheus scrape + alert loop all hit "live"). Mutating actions invalidate it. Default: 0 (off) — the provider enables it in production.