// 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 { system, application, operator, NodeFailer }

}

@@ -922,50 +922,232 @@
 nt %7B
- system, application, operator, NodeFailer
+%0A        operator,%0A        application,%0A        system,%0A        NodeFailer,%0A        Rebalancer,%0A        DirtyExpirer,%0A        FailedExpirer,%0A        InactiveExpirer,%0A        ProvisionedExpirer,%0A        ReservationExpirer%0A   
  %7D%0A%0A

Add new agents