This commit is contained in:
2020-05-25 00:06:47 +00:00
parent 4b35a8ca9c
commit 5610ba3944

View File

@@ -0,0 +1,26 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace AyaNova.Models
{
/// <summary>
/// Metric for cpu
/// </summary>
public class MetricCPU
{
//DATA TYPES .net to postgres map
//http://www.npgsql.org/doc/types/basic.html
[Required]
public DateTime t { get; set; }
[Required]
public double v { get; set; }
public MetricCPU()
{
t = System.DateTime.UtcNow;
v=0;
}
}//eoc
}//eons