Skip to content

Commit 529ac3e

Browse files
authored
Add new query 🎆 ❤️
1 parent a08eff3 commit 529ac3e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SELECT
2+
SUM(1) As AlertCount,
3+
AV.AlertStringName,
4+
AV.AlertStringDescription,
5+
AV.Name,
6+
AV.MonitoringRuleId,
7+
MAX(AV.LastModified) AS LastModified
8+
FROM
9+
Alertview AS AV WITH (NOLOCK)
10+
WHERE
11+
AV.TimeRaised is not NULL and AV.ResolutionState <> 255
12+
GROUP BY
13+
AV.AlertStringName,
14+
AV.AlertStringDescription,
15+
AV.MonitoringRuleId,
16+
AV.Name
17+
ORDER BY
18+
AlertCount, LastModified DESC

0 commit comments

Comments
 (0)