Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 23a4ef9

Browse files
author
Scott Bommarito
authored
Status Aggregator - listen to average lag of all search instances instead of max lag of any search instance (#541)
1 parent 8d618ac commit 23a4ef9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/StatusAggregator/Parse/OutdatedSearchServiceInstanceIncidentParser.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@
55
using NuGet.Services.Incidents;
66
using NuGet.Services.Status;
77
using System.Collections.Generic;
8+
using System.Linq;
89
using System.Text.RegularExpressions;
910

1011
namespace StatusAggregator.Parse
1112
{
1213
public class OutdatedSearchServiceInstanceIncidentParser : EnvironmentPrefixIncidentParser
1314
{
14-
private const string SubtitleRegEx = "A search service instance is using an outdated index!";
15+
private const string SubtitleRegEx = "All search service instances are using an outdated index!";
1516

1617
public OutdatedSearchServiceInstanceIncidentParser(
1718
IEnumerable<IIncidentParsingFilter> filters,
1819
ILogger<OutdatedSearchServiceInstanceIncidentParser> logger)
19-
: base(SubtitleRegEx, filters, logger)
20+
: base(
21+
SubtitleRegEx,
22+
filters.Where(f => !(f is SeverityFilter)), // The incident is always severity 4.
23+
logger)
2024
{
2125
}
2226

0 commit comments

Comments
 (0)