Miss
class Miss(val scope: String, val prompt: String, val reason: MissReason, val bestSimilarity: Double?, val detail: String?, val guardName: String?, val timings: EventTimings) : CacheEvent
A lookup that could not be served, with the same reason CacheLookup.Miss reports.
Constructors
Link copied to clipboard
constructor(scope: String, prompt: String, reason: MissReason, bestSimilarity: Double?, detail: String?, guardName: String?, timings: EventTimings)
Properties
Link copied to clipboard
Similarity of the closest candidate considered, or null when the scope was empty.
Link copied to clipboard
The dev.kmemo.guard.MatchGuard.name that vetoed the candidate, when reason is MissReason.REJECTED_BY_GUARD; null for every other reason. Exposed as a field, not only inside detail, so a metrics adapter can tag by guard without parsing text.
Link copied to clipboard
Why nothing was served.
Link copied to clipboard
How long each stage of the lookup took.