Interface RuleInsightService
- All Known Implementing Classes:
RuleInsightServiceImpl
public interface RuleInsightService
-
Method Summary
Modifier and TypeMethodDescriptionvoidexpireOldInsights(Environment environment) Expires data to avoid large tablesgetInsights(TenantContext context, InsightFilter filter, InsightSort sort, int limit) Retrieves insight data aggregated by rulegetTimeSeries(TenantContext context, InsightFilter filter) Retrieves insight data as time series datavoidpopulateInsights(Environment environment, RollupType type) Populates insights rollup data from the last successful run until now
-
Method Details
-
populateInsights
Populates insights rollup data from the last successful run until now- Parameters:
environment- Given instance environmenttype- Type of rollup to perform against
-
expireOldInsights
Expires data to avoid large tables- Parameters:
environment- Given instance environment
-
getInsights
RuleInsightResult getInsights(TenantContext context, InsightFilter filter, InsightSort sort, int limit) Retrieves insight data aggregated by rule- Parameters:
context- Given instance environmentfilter- Filter query objectlimit- Number of rules results to return- Returns:
- Rule insight results
-
getTimeSeries
Retrieves insight data as time series data- Parameters:
context- Given instance environmentfilter- Filter query object- Returns:
- Time series result with an entry for each time unit (including empty values)
-