Interface RuleInsightService

All Known Implementing Classes:
RuleInsightServiceImpl

public interface RuleInsightService
  • Method Details

    • populateInsights

      void populateInsights(Environment environment, RollupType type)
      Populates insights rollup data from the last successful run until now
      Parameters:
      environment - Given instance environment
      type - Type of rollup to perform against
    • expireOldInsights

      void expireOldInsights(Environment environment)
      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 environment
      filter - Filter query object
      limit - Number of rules results to return
      Returns:
      Rule insight results
    • getTimeSeries

      TimeSeriesResult getTimeSeries(TenantContext context, InsightFilter filter)
      Retrieves insight data as time series data
      Parameters:
      context - Given instance environment
      filter - Filter query object
      Returns:
      Time series result with an entry for each time unit (including empty values)