Make agent a string
This way we don't have to keep this in sync with node-repository enum.
@@ -17,7 +17,7 @@ public class NodeHistory {
@JsonProperty("at")
public Long at;
@JsonProperty("agent")
- public Agent agent;
+ public String agent;
@JsonProperty("event")
public String event;
@@ -25,7 +25,7 @@ public class NodeHistory {
return at;
}
- public Agent getAgent() {
+ public String getAgent() {
return agent;
}
@@ -33,24 +33,4 @@ public class NodeHistory {
return event;
}
- public enum Agent {
- operator,
- application,
- system,
- DirtyExpirer,
- DynamicProvisioningMaintainer,
- FailedExpirer,
- InactiveExpirer,
- NodeFailer,
- NodeHealthTracker,
- ProvisionedExpirer,
- Rebalancer,
- ReservationExpirer,
- RetiringUpgrader,
- RebuildingOsUpgrader,
- SpareCapacityMaintainer,
- SwitchRebalancer,
- HostEncrypter,
- }
-
}
