Class RuleInsightServiceImpl
java.lang.Object
com.codebarrel.automation.api.service.RuleInsightServiceImpl
- All Implemented Interfaces:
RuleInsightService
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
Field Details
-
MAX_DURATION_ALLOWED
-
-
Constructor Details
-
RuleInsightServiceImpl
-
-
Method Details
-
populateInsights
Description copied from interface:RuleInsightServicePopulates insights rollup data from the last successful run until now- Specified by:
populateInsightsin interfaceRuleInsightService- Parameters:
environment- Given instance environmenttype- Type of rollup to perform against
-
expireOldInsights
Description copied from interface:RuleInsightServiceExpires data to avoid large tables- Specified by:
expireOldInsightsin interfaceRuleInsightService- Parameters:
environment- Given instance environment
-
getInsights
public RuleInsightResult getInsights(TenantContext context, InsightFilter filter, InsightSort sort, int limit) Description copied from interface:RuleInsightServiceRetrieves insight data aggregated by rule- Specified by:
getInsightsin interfaceRuleInsightService- Parameters:
context- Given instance environmentfilter- Filter query objectlimit- Number of rules results to return- Returns:
- Rule insight results
-
getTimeSeries
Description copied from interface:RuleInsightServiceRetrieves insight data as time series data- Specified by:
getTimeSeriesin interfaceRuleInsightService- Parameters:
context- Given instance environmentfilter- Filter query object- Returns:
- Time series result with an entry for each time unit (including empty values)
-