// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Wire class for node-repository representation of the history of a node
 *
 * @author smorgrav
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NodeHistory {
    @JsonProperty("at")
    public Long at;
    @JsonProperty("agent")
    public Agent agent;
    @JsonProperty("event")
    public String event;

    public Long getAt() {
        return at;
    }

    public Agent getAgent() {
        return agent;
    }

    public String getEvent() {
        return event;
    }

    public enum Agent {
        operator,
        application,
        system,
        DirtyExpirer,
        DynamicProvisioningMaintainer,
        FailedExpirer,
        InactiveExpirer,
        NodeFailer,
        ProvisionedExpirer,
        Rebalancer,
        ReservationExpirer,
        RetiringUpgrader,
        SpareCapacityMaintainer
    }

}

@@ -1236,16 +1236,43 @@
 intainer
+,%0A        SwitchRebalancer,
 %0A    %7D%0A%0A

Add agent to wire class