AnalyticsDataSource class abstract

Abstract analytics data source consumed by all analytics widgets.

Each host app (e.g., Thesa) provides a concrete implementation that talks to the analytics backend. UI widgets only depend on this interface.

Constructors

AnalyticsDataSource()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDistribution(String service, String metric, String groupBy, {AnalyticsTimeRange? timeRange}) Future<List<DistributionSegment>>
Fetch distribution/breakdown for a metric grouped by a dimension.
getMetrics(String service, {AnalyticsTimeRange? timeRange}) Future<List<MetricValue>>
Fetch KPI metric values for a service dashboard.
getTimeSeries(String service, String metric, {AnalyticsTimeRange? timeRange}) Future<List<TimeSeries>>
Fetch time series data for a metric.
getTopN(String service, String metric, {int limit = 10, AnalyticsTimeRange? timeRange}) Future<List<TopNItem>>
Fetch top-N items for a metric.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited