Class HealthSummaryElasticSearchUtils
java.lang.Object
com.flowable.platform.service.health.HealthSummaryElasticSearchUtils
Utility methods for extracting metrics from raw Elasticsearch aggregation responses
used by the health summary.
-
Method Summary
Modifier and TypeMethodDescriptionextractAvgDurationMsByNode(tools.jackson.databind.JsonNode response) Extracts per-node weighted-average job execution duration (ms) from a by_node grouped ES response built by thejob-execution-time-avg-by-nodereport.static longextractHitCount(tools.jackson.databind.JsonNode response) Extracts the total hit count from an ES response.extractJobMetricTotals(tools.jackson.databind.JsonNode response) Extracts job metric totals from a raw ES response grouped by type tag and metric name.extractJobMetricTotalsByNode(tools.jackson.databind.JsonNode response) Extracts per-node job metric totals from a by_node grouped ES response.static longextractRootCount(tools.jackson.databind.JsonNode response) Extracts the root instance count from theroot_countfilter aggregation.static Map<String, Map<String, ExecutorNodeSnapshot>> extractSnapshots(tools.jackson.databind.JsonNode response) Extracts per-node, per-executor latest snapshots from a by_node grouped ES response with top_hits.extractUsagePercentByNode(tools.jackson.databind.JsonNode response, boolean isQueue) Extracts per-node usage percentages from a by_node grouped ES response.static longGets the total for a specific type tag and metric name, or 0 if not present.static longGets the sum of all metric totals for a specific type tag, or 0 if not present.
-
Method Details
-
extractHitCount
public static long extractHitCount(tools.jackson.databind.JsonNode response) Extracts the total hit count from an ES response. -
extractRootCount
public static long extractRootCount(tools.jackson.databind.JsonNode response) Extracts the root instance count from theroot_countfilter aggregation. Returns the total hit count if the aggregation is not present. -
extractUsagePercentByNode
-
extractSnapshots
public static Map<String, Map<String, ExecutorNodeSnapshot>> extractSnapshots(tools.jackson.databind.JsonNode response) Extracts per-node, per-executor latest snapshots from a by_node grouped ES response with top_hits. -
extractJobMetricTotals
-
extractJobMetricTotalsByNode
-
extractAvgDurationMsByNode
public static Map<String,Double> extractAvgDurationMsByNode(tools.jackson.databind.JsonNode response) Extracts per-node weighted-average job execution duration (ms) from a by_node grouped ES response built by thejob-execution-time-avg-by-nodereport. Skips nodes whose aggregation value is null (no completed jobs in the window). -
getJobMetricTotal
-
getJobMetricTotalForTypeTag
-