Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB handles updating metrics
func (*DB) UpdateAlertMetrics ¶
UpdateAlertMetrics will update the alert metrics table
Theory of Operation: 1. Acquire processing lock 2. Get batch of oldest alert IDs after cursor (use LastLogID as a tie breaker) 3. Insert metrics for these alerts 4. Set cursor to last inserted 5. If none inserted, set cursor to upper time bound
Click to show internal directories.
Click to hide internal directories.