newMapHealthCheck

fun newMapHealthCheck(map: Map<*, *>, size: Int): HealthCheck

Creates a HealthCheck that reports unhealthy when the map size meets or exceeds the given threshold.

Return

a HealthCheck that monitors map size.

Parameters

map

the map whose size is evaluated.

size

the threshold above which the check is considered unhealthy.