rapture.common.dp.WorkflowHistoricalMetrics Maven / Gradle / Ivy
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This file is autogenerated and any changes will be overwritten.
*/
package rapture.common.dp;
import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class WorkflowHistoricalMetrics implements RaptureTransferObject, Debugable {
/*
* Start of field 'workflowAverage' (Double)
*/
private Double workflowAverage;
@JsonProperty("workflowAverage")
public Double getWorkflowAverage() {
return workflowAverage;
}
@JsonProperty("workflowAverage")
public void setWorkflowAverage(Double workflowAverage) {
this.workflowAverage = workflowAverage ;
}
/*
* end of field 'workflowAverage' (Double)
*/
/*
* Start of field 'jobAverage' (Double)
*/
private Double jobAverage;
@JsonProperty("jobAverage")
public Double getJobAverage() {
return jobAverage;
}
@JsonProperty("jobAverage")
public void setJobAverage(Double jobAverage) {
this.jobAverage = jobAverage ;
}
/*
* end of field 'jobAverage' (Double)
*/
/*
* Start of field 'workflowWithArgsAverage' (Double)
*/
private Double workflowWithArgsAverage;
@JsonProperty("workflowWithArgsAverage")
public Double getWorkflowWithArgsAverage() {
return workflowWithArgsAverage;
}
@JsonProperty("workflowWithArgsAverage")
public void setWorkflowWithArgsAverage(Double workflowWithArgsAverage) {
this.workflowWithArgsAverage = workflowWithArgsAverage ;
}
/*
* end of field 'workflowWithArgsAverage' (Double)
*/
/*
* Start of field 'workflowMetricName' (String)
*/
private String workflowMetricName;
@JsonProperty("workflowMetricName")
public String getWorkflowMetricName() {
return workflowMetricName;
}
@JsonProperty("workflowMetricName")
public void setWorkflowMetricName(String workflowMetricName) {
this.workflowMetricName = workflowMetricName ;
}
/*
* end of field 'workflowMetricName' (String)
*/
/*
* Start of field 'jobMetricName' (String)
*/
private String jobMetricName;
@JsonProperty("jobMetricName")
public String getJobMetricName() {
return jobMetricName;
}
@JsonProperty("jobMetricName")
public void setJobMetricName(String jobMetricName) {
this.jobMetricName = jobMetricName ;
}
/*
* end of field 'jobMetricName' (String)
*/
/*
* Start of field 'argsHashMetricName' (String)
*/
private String argsHashMetricName;
@JsonProperty("argsHashMetricName")
public String getArgsHashMetricName() {
return argsHashMetricName;
}
@JsonProperty("argsHashMetricName")
public void setArgsHashMetricName(String argsHashMetricName) {
this.argsHashMetricName = argsHashMetricName ;
}
/*
* end of field 'argsHashMetricName' (String)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((workflowAverage == null) ? 0 : workflowAverage.hashCode());
result = prime * result + ((argsHashMetricName == null) ? 0 : argsHashMetricName.hashCode());
result = prime * result + ((workflowWithArgsAverage == null) ? 0 : workflowWithArgsAverage.hashCode());
result = prime * result + ((jobMetricName == null) ? 0 : jobMetricName.hashCode());
result = prime * result + ((workflowMetricName == null) ? 0 : workflowMetricName.hashCode());
result = prime * result + ((jobAverage == null) ? 0 : jobAverage.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
WorkflowHistoricalMetrics other = (WorkflowHistoricalMetrics) obj;
if (workflowAverage == null) {
if (other.workflowAverage != null) {
return false;
}
} else if (!workflowAverage.equals(other.workflowAverage)) {
return false;
}
if (argsHashMetricName == null) {
if (other.argsHashMetricName != null) {
return false;
}
} else if (!argsHashMetricName.equals(other.argsHashMetricName)) {
return false;
}
if (workflowWithArgsAverage == null) {
if (other.workflowWithArgsAverage != null) {
return false;
}
} else if (!workflowWithArgsAverage.equals(other.workflowWithArgsAverage)) {
return false;
}
if (jobMetricName == null) {
if (other.jobMetricName != null) {
return false;
}
} else if (!jobMetricName.equals(other.jobMetricName)) {
return false;
}
if (workflowMetricName == null) {
if (other.workflowMetricName != null) {
return false;
}
} else if (!workflowMetricName.equals(other.workflowMetricName)) {
return false;
}
if (jobAverage == null) {
if (other.jobAverage != null) {
return false;
}
} else if (!jobAverage.equals(other.jobAverage)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" workflowAverage= ");
Object o = workflowAverage;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" argsHashMetricName= ");
Object o = argsHashMetricName;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" workflowWithArgsAverage= ");
Object o = workflowWithArgsAverage;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" jobMetricName= ");
Object o = jobMetricName;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" workflowMetricName= ");
Object o = workflowMetricName;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" jobAverage= ");
Object o = jobAverage;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
return sb.append("\n").toString();
}
@Override
public String toString() {
return JacksonUtil.jsonFromObject(this);
}
private ApiVersion _raptureVersion;
@JsonProperty("_raptureVersion")
public ApiVersion get_raptureVersion() {
return _raptureVersion;
}
@JsonProperty("_raptureVersion")
public void set_raptureVersion(ApiVersion _raptureVersion) {
this._raptureVersion = _raptureVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy