shlink-manager/lib/API/Classes/ShlinkStats/shlink_stats.dart

20 lines
525 B
Dart
Raw Normal View History

2024-01-27 23:07:06 +01:00
import 'package:shlink_app/API/Classes/ShortURL/visits_summary.dart';
/// Includes data about the statistics of a Shlink instance
class ShlinkStats {
/// Data about non-orphan visits
VisitsSummary nonOrphanVisits;
2024-01-28 00:32:09 +01:00
2024-01-27 23:07:06 +01:00
/// Data about orphan visits (without any valid slug assigned)
VisitsSummary orphanVisits;
2024-01-28 00:32:09 +01:00
2024-01-27 23:07:06 +01:00
/// Total count of all short URLs
int shortUrlsCount;
2024-01-28 00:32:09 +01:00
2024-01-27 23:07:06 +01:00
/// Total count all all tags
int tagsCount;
2024-01-28 00:32:09 +01:00
ShlinkStats(this.nonOrphanVisits, this.orphanVisits, this.shortUrlsCount,
this.tagsCount);
}