Class InfluxTimeSeriesStatisticsProvider
java.lang.Object
org.opencastproject.statistics.provider.influx.provider.InfluxStatisticsProvider
org.opencastproject.statistics.provider.influx.provider.InfluxTimeSeriesStatisticsProvider
- All Implemented Interfaces:
StatisticsProvider,TimeSeriesProvider
public class InfluxTimeSeriesStatisticsProvider
extends InfluxStatisticsProvider
implements TimeSeriesProvider
-
Field Summary
Fields inherited from class org.opencastproject.statistics.provider.influx.provider.InfluxStatisticsProvider
service -
Constructor Summary
ConstructorsConstructorDescriptionInfluxTimeSeriesStatisticsProvider(StatisticsProviderInfluxService service, String id, ResourceType resourceType, String title, String description, Set<InfluxProviderConfiguration.InfluxProviderSource> sources) -
Method Summary
Modifier and TypeMethodDescriptionGet the time series data provided by this provider.protected static TimeSeriesqueryResultToTimeSeries(org.influxdb.dto.QueryResult results) Methods inherited from class org.opencastproject.statistics.provider.influx.provider.InfluxStatisticsProvider
dataResolutionToInfluxGrouping, equals, getDescription, getId, getPeriods, getResourceType, getTitle, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencastproject.statistics.api.StatisticsProvider
getDescription, getId, getResourceType, getTitle
-
Constructor Details
-
InfluxTimeSeriesStatisticsProvider
public InfluxTimeSeriesStatisticsProvider(StatisticsProviderInfluxService service, String id, ResourceType resourceType, String title, String description, Set<InfluxProviderConfiguration.InfluxProviderSource> sources)
-
-
Method Details
-
getValues
public TimeSeries getValues(String resourceId, Instant from, Instant to, DataResolution resolution, ZoneId zoneId) Description copied from interface:TimeSeriesProviderGet the time series data provided by this provider.- Specified by:
getValuesin interfaceTimeSeriesProvider- Parameters:
resourceId- The id to access the resource to get statistics for (e.g. episode Id, organization Id or series Id).from- The start date to calculate the statistics for.to- The end date to calculate the statistics for.resolution- The resolution to get the statistics with.zoneId- The timezone to use for date calculations.- Returns:
- The time series data.
-
getDataResolutions
- Specified by:
getDataResolutionsin interfaceTimeSeriesProvider- Returns:
- A set of
DataResolutions supported by this provider.
-
queryResultToTimeSeries
-