29 lines
546 B
C#
29 lines
546 B
C#
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
|