This commit is contained in:
31
server/AyaNova/models/MetricDD.cs
Normal file
31
server/AyaNova/models/MetricDD.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Metric for ONE DAY interval stats
|
||||
/// </summary>
|
||||
public class MetricDD
|
||||
{
|
||||
[Required]
|
||||
[Key]
|
||||
public DateTime t { get; set; }
|
||||
public long AttachmentFileSize { get; set; }
|
||||
public long AttachmentFileCount { get; set; }
|
||||
public long AttachmentFilesAvailableSpace { get; set; }
|
||||
|
||||
public long UtilityFileSize { get; set; }
|
||||
public long UtilityFileCount { get; set; }
|
||||
public long UtilityFilesAvailableSpace { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
//ef core requires this
|
||||
public MetricDD() { t = System.DateTime.UtcNow; }
|
||||
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
28
server/AyaNova/models/MetricHH.cs
Normal file
28
server/AyaNova/models/MetricHH.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Metric for ONE HOUR interval status
|
||||
/// </summary>
|
||||
public class MetricHH
|
||||
{
|
||||
[Required]
|
||||
[Key]
|
||||
public DateTime t { get; set; }
|
||||
public long Test { get; set; }
|
||||
|
||||
|
||||
//ef core requires this
|
||||
public MetricHH() { t = System.DateTime.UtcNow; }
|
||||
|
||||
public MetricHH(long test)
|
||||
{
|
||||
t = System.DateTime.UtcNow;
|
||||
Test = test;
|
||||
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user