public static Map processStatus()

in src/main/java/com/vispana/vespa/state/helpers/ProcessStatus.java [9:19]


  public static Map<String, Status> processStatus(
      String host, Map<String, MetricsNode> vespaMetrics) {
    return vespaMetrics.get(host).getServices().stream()
        .map(
            service -> {
              var serviceName = service.getName();
              var status = Status.parseFrom(service.getStatus().getCode());
              return Map.entry(serviceName, status);
            })
        .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
  }