mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 21:16:49 +00:00
Store stard status in the database
This commit is contained in:
parent
26dc69e5a4
commit
ae9ed0f4ee
5 changed files with 103 additions and 13 deletions
19
PluralKit.Core/Models/PKShardInfo.cs
Normal file
19
PluralKit.Core/Models/PKShardInfo.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using NodaTime;
|
||||
|
||||
namespace PluralKit.Core
|
||||
{
|
||||
public class PKShardInfo
|
||||
{
|
||||
public int Id { get; }
|
||||
public ShardStatus Status { get; }
|
||||
public float? Ping { get; }
|
||||
public Instant? LastHeartbeat { get; }
|
||||
public Instant? LastConnection { get; }
|
||||
|
||||
public enum ShardStatus
|
||||
{
|
||||
Down = 0,
|
||||
Up = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue