Skip to content

Commit 888e5af

Browse files
Correct Average Ack Time in reporting (#4375)
The average ack time currently returns the close time - this corrects the avgacksec to return the average acknowledge time
1 parent 1dd3413 commit 888e5af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphql2/graphqlapp/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (s *Service) AlertStats(ctx context.Context, svc *service.Service, input *g
138138
end := res.AddTo(r.Bucket)
139139
stats.AlertCount = append(stats.AlertCount, graphql2.TimeSeriesBucket{Start: r.Bucket, End: end, Value: float64(r.AlertCount)})
140140
stats.EscalatedCount = append(stats.EscalatedCount, graphql2.TimeSeriesBucket{Start: r.Bucket, End: end, Value: float64(r.EscalatedCount)})
141-
stats.AvgAckSec = append(stats.AvgAckSec, graphql2.TimeSeriesBucket{Start: r.Bucket, End: end, Value: r.AvgTimeToCloseSeconds})
141+
stats.AvgAckSec = append(stats.AvgAckSec, graphql2.TimeSeriesBucket{Start: r.Bucket, End: end, Value: r.AvgTimeToAckSeconds})
142142
stats.AvgCloseSec = append(stats.AvgCloseSec, graphql2.TimeSeriesBucket{Start: r.Bucket, End: end, Value: r.AvgTimeToCloseSeconds})
143143
}
144144
return &stats, nil

0 commit comments

Comments
 (0)