// 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,
        NodeFailer,
        Rebalancer,
        DirtyExpirer,
        FailedExpirer,
        InactiveExpirer,
        ProvisionedExpirer,
        ReservationExpirer,
        DynamicProvisioningMaintainer,
        RetiringUpgrader
    }

}

@@ -986,16 +986,18 @@
     
-NodeFail
+DirtyExpir
 er,%0A
@@ -1008,38 +1008,35 @@
     
-Rebalancer,%0A        DirtyExpir
+DynamicProvisioningMaintain
 er,%0A
@@ -1075,32 +1075,52 @@
 nactiveExpirer,%0A
+        NodeFailer,%0A
         Provisio
@@ -1123,32 +1123,52 @@
 isionedExpirer,%0A
+        Rebalancer,%0A
         Reservat
@@ -1191,61 +1191,55 @@
     
-DynamicProvisioningMaintainer,%0A        RetiringUpgrad
+RetiringUpgrader,%0A        SpareCapacityMaintain
 er%0A 

Add SpareCapacityMaintainer