monithor/Monithor.api/BackendData.cs
2021-05-13 22:38:02 +02:00

43 lines
814 B
C#

using System;
using System.Collections.Generic;
namespace Monithor.api {
public class BackendData {
public class Downtime {
public Downtime(string monitorId, TimeSpan length, DateTime date, bool planned = false) {
MonitorId = monitorId;
Planned = planned;
Length = length;
Date = date;
}
public string MonitorId;
public bool Planned;
public TimeSpan Length;
public DateTime Date;
}
public class Incident {
public string Description;
public List<TimelineEvent> Timeline;
}
public class TimelineEvent {
public bool Planned = false;
public string Title;
public string Description;
}
public enum TimelineEventType {
Investigating,
Update,
Identified,
Monitoring,
Resolved,
Planned,
Started,
}
}
}