Interface AnalyticsService
-
public interface AnalyticsService
-
-
Method Summary
-
-
-
Method Detail
-
computeChartData
ChartDataList computeChartData(AnalyticsFilter filter)
Retrieve analytics chart data- Parameters:
filter- used search filters and aggregations to compute data- Returns:
- computed analytics chart data
-
computePercentageChartData
PercentageChartResult computePercentageChartData(AnalyticsPercentageFilter filter)
Retrieve analytics percentage chart data- Parameters:
filter- used search filters and aggregations to compute data- Returns:
- computed analytics chart data
-
computeTableColumnData
TableColumnResult computeTableColumnData(TableColumnResult columnResult, AnalyticsTableFilter tableFilter, AnalyticsFilter filter, AnalyticsPeriod period, AnalyticsPeriodType periodType, int columnIndex, boolean isValue)
Retrieve analytics table data- Parameters:
columnResult- existing column result to use for result comptuingtableFilter- overall configured table filterfilter- used search filters and aggregations to compute dataperiod- selectedAnalyticsPeriodperiodType- selectedAnalyticsPeriodTypecolumnIndex- column index in the configured table filterisValue- whether the filter to compute is for value or threshold- Returns:
- computed analytics table column data
-
computePercentageChartData
PercentageChartValue computePercentageChartData(AnalyticsFilter filter, AnalyticsPeriod currentPeriod, AnalyticsPeriod previousPeriod, boolean hasLimitAggregation)
Retrieve analytics percentage chart data- Parameters:
filter- used search filters and aggregations to compute datacurrentPeriod- current period of timepreviousPeriod- previous period of time to compare withhasLimitAggregation- whether aggregations has limit aggregation or not- Returns:
PercentageChartValuecontaining current and previous values and thresholds
-
retrieveData
List<StatisticData> retrieveData(AnalyticsFilter searchFilter)
Retrieve data using search filters- Parameters:
searchFilter-- Returns:
ListofStatisticData
-
retrieveMapping
Set<StatisticFieldMapping> retrieveMapping(boolean forceRefresh)
- Parameters:
forceRefresh- whether force refresh from ES or not- Returns:
- a
Setof ES mapping fields
-
retrieveFieldValues
List<StatisticFieldValue> retrieveFieldValues(String field, int limit)
Retrieve values of a selected field- Parameters:
field- name of esFieldlimit- limit of results to retrieve- Returns:
Listof field values of typeStatisticFieldValue
-
getAdministratorsPermissions
List<String> getAdministratorsPermissions()
- Returns:
- the analytics permission expression
-
getViewAllPermissions
List<String> getViewAllPermissions()
- Returns:
- the
Listof permission expression of users that can access all analytics datas
-
getViewPermissions
List<String> getViewPermissions()
- Returns:
- the
Listof permission expression of users that can access their (and their spaces they are member of) analytics datas
-
getUIWatchers
List<StatisticWatcher> getUIWatchers()
- Returns:
ListofStatisticWatchercontaining DOM selectors of elements to watch
-
getUIWatcher
StatisticWatcher getUIWatcher(String name)
- Parameters:
name- corresponding UI watcher name, see StatisticWatcher#getName()- Returns:
StatisticWatcherhaving switch corresponding name
-
addUIWatcherPlugin
void addUIWatcherPlugin(StatisticUIWatcherPlugin uiWatcherPlugin)
Add watcher plugin- Parameters:
uiWatcherPlugin- Kernel component plugin to add
-
-