public static StatusCode fromString(String statusString) {
        if ("ok".equalsIgnoreCase(statusString)) return UP;
        try {
            return valueOf(statusString.trim().toUpperCase());
        } catch (IllegalArgumentException | NullPointerException e) {
            return UNKNOWN;
        }
    }
Status code for a Vespa service.

@author gjoranv
metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/StatusCode.java