using System.ComponentModel.DataAnnotations;
namespace ZB.MOM.WW.CBDDC.Sample.Console;
///
/// Append-only telemetry log entry used for high-volume sync scenarios.
///
public class TelemetryLogEntry
{
///
/// Gets or sets the unique log identifier.
///
[Key]
public string Id { get; set; } = Guid.NewGuid().ToString("N");
///
/// Gets or sets the log level.
///
public string Level { get; set; } = "Information";
///
/// Gets or sets the log message.
///
public string Message { get; set; } = string.Empty;
///
/// Gets or sets the UTC timestamp.
///
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
}
///
/// Append-only timeseries metric point used for telemetry sync scenarios.
///
public class TimeseriesPoint
{
///
/// Gets or sets the unique metric point identifier.
///
[Key]
public string Id { get; set; } = Guid.NewGuid().ToString("N");
///
/// Gets or sets the metric name.
///
public string Metric { get; set; } = "cpu";
///
/// Gets or sets the metric value.
///
public double Value { get; set; }
///
/// Gets or sets the UTC timestamp.
///
public DateTime RecordedUtc { get; set; } = DateTime.UtcNow;
}