This commit is contained in:
32
server/models/MetricMM.cs
Normal file
32
server/models/MetricMM.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Sockeye.Models
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Metric for ONE MINUTE intervals
|
||||
/// </summary>
|
||||
public class MetricMM
|
||||
{
|
||||
[Required]
|
||||
[Key]
|
||||
public DateTime t { get; set; }
|
||||
public long Allocated { get; set; }
|
||||
public long WorkingSet { get; set; }
|
||||
public long PrivateBytes { get; set; }
|
||||
public double CPU { get; set; }
|
||||
|
||||
//ef core requires this
|
||||
public MetricMM() { }
|
||||
|
||||
public MetricMM(long allocated, long workingSet, long privateBytes, double cpu)
|
||||
{
|
||||
t = System.DateTime.UtcNow;
|
||||
Allocated = allocated;
|
||||
WorkingSet = workingSet;
|
||||
PrivateBytes = privateBytes;
|
||||
CPU = cpu;
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user