18 lines
813 B
C#
18 lines
813 B
C#
using MongoDB.Entities;
|
|||
|
|
|
||
|
|
namespace PrivaPub.Models.Statistics
|
||
|
|
{
|
||
|
|
public class InstanceDay : Entity
|
||
|
|
{
|
||
|
|
public DateTime Day { get; set; }
|
||
|
|
public string Host { get; set; }
|
||
|
|
public Dictionary<string, long> Counters { get; set; } = new();//admin: every key
|
||
|
|
public Dictionary<string, long> PublicCounters { get; set; } = new();//all a public page may ever read
|
||
|
|
public Dictionary<string, long> Latency { get; set; } = new();
|
||
|
|
public Dictionary<string, long> Waits { get; set; } = new();
|
||
|
|
public Dictionary<string, long> Bytes { get; set; } = new();
|
||
|
|
public Dictionary<string, long> Reads { get; set; } = new();//caused by reading (media proxy, lookups): counted live, never by the rollup
|
||
|
|
public int Accounts { get; set; }//distinct remote accounts that day
|
||
|
|
public DateTime? RolledUpAt { get; set; }
|
||
|
|
}
|
||
|
|
}
|