This commit is contained in:
@@ -9,18 +9,26 @@ namespace AyaNova.Models
|
||||
/// </summary>
|
||||
public class MetricMM
|
||||
{
|
||||
//DATA TYPES .net to postgres map
|
||||
//http://www.npgsql.org/doc/types/basic.html
|
||||
|
||||
[Required]
|
||||
public DateTime t { get; set; }
|
||||
[Required]
|
||||
public float v { get; set; }
|
||||
|
||||
public MetricMM()
|
||||
public long Allocated { get; set; }
|
||||
public long WorkingSet { get; set; }
|
||||
public long PrivateBytes { get; set; }
|
||||
public int Gen0 { get; set; }
|
||||
public int Gen1 { get; set; }
|
||||
public int Gen2 { get; set; }
|
||||
public double CPU { get; set; }
|
||||
|
||||
public MetricMM(long allocated, long workingSet, long privateBytes, int gen0, int gen1, int gen2, double cpu)
|
||||
{
|
||||
t = System.DateTime.UtcNow;
|
||||
v=0;
|
||||
Allocated = allocated;
|
||||
WorkingSet=workingSet;
|
||||
PrivateBytes=privateBytes;
|
||||
Gen0=gen0;
|
||||
Gen1=gen1;
|
||||
Gen2=gen2;
|
||||
CPU=cpu;
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
|
||||
Reference in New Issue
Block a user