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}")

Constructors

Link copied to clipboard
constructor(total: Int, enabled: Int, disabled: Int, withPermissions: Int, withStrategy: Int, groups: Int)

Properties

Link copied to clipboard

number of features with isEnabled = false

Link copied to clipboard

number of features with isEnabled = true

Link copied to clipboard
val groups: Int

number of distinct groups (excluding features without groups)

Link copied to clipboard
val total: Int

total number of features

Link copied to clipboard

number of features with at least one permission

Link copied to clipboard

number of features with a flipping strategy