2021-08-27 15:03:47 +00:00
|
|
|
using NodaTime;
|
2021-06-10 10:52:47 +00:00
|
|
|
|
2021-11-27 02:10:56 +00:00
|
|
|
namespace PluralKit.Core;
|
|
|
|
|
|
|
|
public class PKShardInfo
|
2021-06-10 10:52:47 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
public enum ShardStatus
|
2021-06-10 10:52:47 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
Down = 0,
|
|
|
|
Up = 1
|
2021-06-10 10:52:47 +00:00
|
|
|
}
|
2021-11-27 02:10:56 +00:00
|
|
|
|
|
|
|
public int Id { get; }
|
|
|
|
public ShardStatus Status { get; }
|
|
|
|
public float? Ping { get; }
|
|
|
|
public Instant? LastHeartbeat { get; }
|
|
|
|
public Instant? LastConnection { get; }
|
2021-06-10 10:52:47 +00:00
|
|
|
}
|