private History.Event.Type eventTypeFromString(String eventTypeString) {
        return switch (eventTypeString) {
            case "provisioned" -> History.Event.Type.provisioned;
            case "deprovisioned" -> History.Event.Type.deprovisioned;
            case "readied" -> History.Event.Type.readied;
            case "reserved" -> History.Event.Type.reserved;
            case "activated" -> History.Event.Type.activated;
            case "wantToRetire" -> History.Event.Type.wantToRetire;
            case "wantToFail" -> History.Event.Type.wantToFail;
            case "retired" -> History.Event.Type.retired;
            case "deactivated" -> History.Event.Type.deactivated;
            case "parked" -> History.Event.Type.parked;
            case "failed" -> History.Event.Type.failed;
            case "deallocated" -> History.Event.Type.deallocated;
            case "down" -> History.Event.Type.down;
            case "up" -> History.Event.Type.up;
            case "suspended" -> History.Event.Type.suspended;
            case "resumed" -> History.Event.Type.resumed;
            case "resized" -> History.Event.Type.resized;
            case "rebooted" -> History.Event.Type.rebooted;
            case "osUpgraded" -> History.Event.Type.osUpgraded;
            case "firmwareVerified" -> History.Event.Type.firmwareVerified;
            case "breakfixed" -> History.Event.Type.breakfixed;
            case "preferToRetire" -> History.Event.Type.preferToRetire;
            default -> throw new IllegalArgumentException("Unknown node event type '" + eventTypeString + "'");
        };
    }
Returns the event type, or null if this event type should be ignored
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/NodeSerializer.java