org.continuity.api.entities.artifact.SessionLogsInput Maven / Gradle / Ivy
package org.continuity.api.entities.artifact;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
public class SessionLogsInput {
/**
* Map of the service application tags and the corresponding hostnames. The map defines, which
* services are going to be tested.
*/
@JsonInclude(Include.NON_NULL)
@JsonProperty("services")
@JsonDeserialize(as = HashMap.class)
private Map services;
/**
* The traces of the monitoring system, which are going to be used to generate the session logs.
*/
@JsonInclude(Include.NON_NULL)
@JsonProperty("serializedTraces")
private String serializedTraces;
/**
* Constructor
*
* @param services
* the targeted services
*/
public SessionLogsInput(Map services, String serializedTraces) {
this.services = services;
this.serializedTraces = serializedTraces;
}
/**
* Default Session Logs input for deserialization
*/
public SessionLogsInput() {
}
public Map getServices() {
return services;
}
public void setServices(Map services) {
this.services = services;
}
public String getSerializedTraces() {
return serializedTraces;
}
public void setSerializedTraces(String serializedTraces) {
this.serializedTraces = serializedTraces;
}
}