using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace UptimeSharp.Models
{
///
/// The Log Model
///
[DataContract]
public class Log
{
///
/// Gets or sets the log type.
///
///
/// The type.
///
[DataMember(Name = "type")]
public LogType Type { get; set; }
///
/// Gets or sets the date time, when the log action appeared.
///
///
/// The date.
///
[DataMember(Name = "datetime")]
public DateTime Date { get; set; }
///
/// Gets or sets the alerts, which were notified when the log action appeared.
///
///
/// The alert contacts.
///
[DataMember(Name = "alertcontact")]
public List Alerts { get; set; }
}
///
/// The type of the log entry.
///
public enum LogType
{
///
/// Down
///
Down = 1,
///
/// Up
///
Up = 2,
///
/// Started
///
Started = 98,
///
/// Paused
///
Paused = 99
}
}