This commit is contained in:
2020-05-25 13:45:53 +00:00
parent db312efd7d
commit d13c1e42df
2 changed files with 141 additions and 135 deletions

File diff suppressed because one or more lines are too long

View File

@@ -5,9 +5,9 @@ namespace AyaNova.Models
{ {
/// <summary> /// <summary>
/// Metric for cpu /// Metric for ONE MINUTE intervals
/// </summary> /// </summary>
public class MetricCPU public class MetricMM
{ {
//DATA TYPES .net to postgres map //DATA TYPES .net to postgres map
//http://www.npgsql.org/doc/types/basic.html //http://www.npgsql.org/doc/types/basic.html
@@ -15,9 +15,9 @@ namespace AyaNova.Models
[Required] [Required]
public DateTime t { get; set; } public DateTime t { get; set; }
[Required] [Required]
public double v { get; set; } public float v { get; set; }
public MetricCPU() public MetricMM()
{ {
t = System.DateTime.UtcNow; t = System.DateTime.UtcNow;
v=0; v=0;