Documentation / @zerotal/monitor / MonitorStoreOptions
Interface: MonitorStoreOptions
Defined in: monitor/src/MonitorStore.ts:109
Properties
apdexTargetMs?
optionalapdexTargetMs?:number
Defined in: monitor/src/MonitorStore.ts:110
slowQueryMs?
optionalslowQueryMs?:number
Defined in: monitor/src/MonitorStore.ts:111
zerotalVersion?
optionalzerotalVersion?:string
Defined in: monitor/src/MonitorStore.ts:112
region?
optionalregion?:string
Defined in: monitor/src/MonitorStore.ts:113
deploy?
optionaldeploy?:string
Defined in: monitor/src/MonitorStore.ts:114
storage?
optionalstorage?:string
Defined in: monitor/src/MonitorStore.ts:116
SQLite path. :memory: (default) for tests; a file path for persistence.
retentionDays?
optionalretentionDays?:number
Defined in: monitor/src/MonitorStore.ts:118
Days of history to keep before pruning. Default: 7.
retentionMode?
optionalretentionMode?: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?
optionalslowRequestMs?:number
Defined in: monitor/src/MonitorStore.ts:122
Requests at/above this many ms count as "slow". Default: 1000.
snapshotCacheMs?
optionalsnapshotCacheMs?: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.