Class StatsController

java.lang.Object
ai.chatur.cortex.spring.stats.StatsController

@Controller public class StatsController extends Object
Web UI home page showing statistics of the knowledge graph.
  • Constructor Details

    • StatsController

      public StatsController(ai.chatur.cortex.CortexStatistics cortex)
      Creates the controller.
      Parameters:
      cortex - the statistics role used to compute the knowledge graph's statistics
  • Method Details

    • getStats

      @GetMapping("/") public String getStats(org.springframework.ui.Model model)
      Renders the knowledge graph's home page with its current statistics.
      Parameters:
      model - receives stats (the CortexStats snapshot)
      Returns:
      the home view name