Package ai.chatur.cortex.spring.stats
Class StatsController
java.lang.Object
ai.chatur.cortex.spring.stats.StatsController
Web UI home page showing statistics of the knowledge graph.
-
Constructor Summary
ConstructorsConstructorDescriptionStatsController(ai.chatur.cortex.CortexStatistics cortex) Creates the controller. -
Method Summary
-
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
Renders the knowledge graph's home page with its current statistics.- Parameters:
model- receivesstats(theCortexStatssnapshot)- Returns:
- the
homeview name
-