Class HealthcheckCollectionGenerator
java.lang.Object
com.inductiveautomation.ignition.gateway.metrics.HealthcheckCollectionGenerator
Helps to gather named metrics from the registry into a collection of IdentifiedHealthCheckResults
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongatherAll(Collection<String> names) Gathers results for many names in a single pass over the registry.
-
Constructor Details
-
HealthcheckCollectionGenerator
public HealthcheckCollectionGenerator(List<HealthcheckCollectionGenerator.NamedHealthcheck> healthchecks)
-
-
Method Details
-
getAliases
-
gather
-
gatherAll
public Map<String, SortedMap<String, IdentifiedHealthCheckResult>> gatherAll(Collection<String> names) Gathers results for many names in a single pass over the registry.runHealthChecksexecutes every check matching its filter and walks the whole registry to find them, so callinggather(String)once per resource costs one full sweep and one execution set per resource. This runs the sweep once for all of them.- Parameters:
names- the resource names to resolve%sagainst.- Returns:
- results keyed by resource name, then by alias. Names with no registered check are present with an empty map.
-