forked from datalust/seq-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlertActivityPart.cs
More file actions
60 lines (50 loc) · 2.1 KB
/
Copy pathAlertActivityPart.cs
File metadata and controls
60 lines (50 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
// ReSharper disable UnusedAutoPropertyAccessor.Global
namespace Seq.Api.Model.Alerting
{
/// <summary>
/// A summary of recent activity on an alert.
/// </summary>
public class AlertActivityPart
{
/// <summary>
/// When the last check for the alert was performed.
/// </summary>
public DateTime? LastCheck { get; set; }
/// <summary>
/// Whether or not the last check triggered any notifications.
/// </summary>
public bool LastCheckTriggered { get; set; }
/// <summary>
/// Any failures that prevented the last check from completing successfully.
/// These failures indicate a problem with the alert itself, not with the
/// data being monitored.
///
/// A value of <c>null</c> indicates the last check succeeded.
/// </summary>
public List<string> LastCheckFailures { get; set; }
/// <summary>
/// When the alert may be checked again after being triggered.
/// </summary>
public DateTime? SuppressedUntil { get; set; }
/// <summary>
/// The most recent occurrences of the alert that triggered notifications.
/// </summary>
public List<AlertOccurrencePart> RecentOccurrences { get; set; } = new();
/// <summary>
/// Minimal metrics for the most recent occurrences of the alert that triggered notifications.
/// The metrics in this list are a superset of <see cref="RecentOccurrences"/>.
/// </summary>
public List<AlertOccurrenceRangePart> RecentOccurrenceRanges { get; set; } =
new();
/// <summary>
/// The number of times this alert has been triggered since its creation.
/// </summary>
public int TotalOccurrences { get; set; }
/// <summary>
/// The detection time of the most recent occurrence not included in <see cref="RecentOccurrences"/>.
/// </summary>
public DateTime? LastEarlierOccurrence { get; set; }
}
}