selfprivacy.org.app/lib/logic/models/hetzner_metrics.dart

12 lines
238 B
Dart
Raw Normal View History

2021-04-10 03:04:23 +00:00
class TimeSeriesData {
TimeSeriesData(
this.secondsSinceEpoch,
this.value,
);
final int secondsSinceEpoch;
DateTime get time =>
DateTime.fromMillisecondsSinceEpoch(secondsSinceEpoch * 1000);
final double value;
}