FeatureStats
data class FeatureStats(val total: Int, val enabled: Int, val disabled: Int, val withPermissions: Int, val withStrategy: Int, val groups: Int)(source)
Aggregated statistics about features in an FF4k instance.
Provides a snapshot of the current feature flag state, useful for debugging, monitoring, logging, and CLI tools.
Example:
val stats = ff4k.stats()
println("Total: ${stats.total}, Enabled: ${stats.enabled}, Disabled: ${stats.disabled}")
println("Features with strategies: ${stats.withStrategy}")
println("Number of groups: ${stats.groups}")Content copied to clipboard