Skip to content

Commit

Permalink
Refactor DB query in heartbeat manager to return muted status instead…
Browse files Browse the repository at this point in the history
… of disable reason
  • Loading branch information
mastercactapus committed Oct 8, 2024
1 parent b983393 commit ad77045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/heartbeatmanager/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewDB(ctx context.Context, db *sql.DB, a *alert.Store) (*DB, error) {
set last_state = 'unhealthy'
from rows
where mon.id = rows.id
returning mon.id, name, service_id, last_heartbeat, coalesce(additional_details, ''), coalesce(disable_reason, '')
returning mon.id, name, service_id, last_heartbeat, coalesce(additional_details, ''), coalesce(muted, '')
`),
fetchHealthy: p.P(`
with rows as (
Expand Down

0 comments on commit ad77045

Please sign in to comment.