package com.thinkbiganalytics.alerts.rest.model; /*- * #%L * thinkbig-alerts-model * %% * Copyright (C) 2017 ThinkBig Analytics * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.thinkbiganalytics.alerts.rest.model.Alert.State; import org.joda.time.DateTime; /** * Represents a change event of an alert. */ @JsonInclude(Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class AlertChangeEvent { /** * Gets the time when the alert transitioned to this state */ private DateTime createdTime; /** * The new state */ private State state; /** * A description of the change, or {@code null} */ private String description; /** * The principal of the user that created the alert */ private String user; public DateTime getCreatedTime() { return createdTime; } public void setCreatedTime(DateTime createdTime) { this.createdTime = createdTime; } public State getState() { return state; } public void setState(State state) { this.state = state; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getUser() { return user; } public void setUser(String user) { this.user = user; } }