selfprivacy.org.app/lib/logic/models/hetzner_metrics.dart
2021-04-10 05:04:23 +02:00

12 lines
238 B
Dart

class TimeSeriesData {
TimeSeriesData(
this.secondsSinceEpoch,
this.value,
);
final int secondsSinceEpoch;
DateTime get time =>
DateTime.fromMillisecondsSinceEpoch(secondsSinceEpoch * 1000);
final double value;
}