All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.model.DatasourceStatisticsV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 64.3.0-v202405012032
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.seeq.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Statistics about the current status of the datasource
 */
@Schema(description = "Statistics about the current status of the datasource")
public class DatasourceStatisticsV1 {
  @JsonProperty("medianDatasourceNanos")
  private Long medianDatasourceNanos = null;

  @JsonProperty("medianQueueNanos")
  private Long medianQueueNanos = null;

  @JsonProperty("medianTotalNanos")
  private Long medianTotalNanos = null;

  @JsonProperty("mostRecentCancellation")
  private String mostRecentCancellation = null;

  @JsonProperty("mostRecentFailure")
  private String mostRecentFailure = null;

  @JsonProperty("mostRecentSuccess")
  private String mostRecentSuccess = null;

  @JsonProperty("mostRecentTimeout")
  private String mostRecentTimeout = null;

  @JsonProperty("numCancellations")
  private Long numCancellations = null;

  @JsonProperty("numFailures")
  private Long numFailures = null;

  @JsonProperty("numSuccesses")
  private Long numSuccesses = null;

  @JsonProperty("numTimeouts")
  private Long numTimeouts = null;

  @JsonProperty("totalNumDatums")
  private Long totalNumDatums = null;

  public DatasourceStatisticsV1 medianDatasourceNanos(Long medianDatasourceNanos) {
    this.medianDatasourceNanos = medianDatasourceNanos;
    return this;
  }

   /**
   * The median duration that recent requests to this datasource spend running at the connector, in nanoseconds. If there were no recent requests, the value will be reported as 0.
   * @return medianDatasourceNanos
  **/
  @Schema(description = "The median duration that recent requests to this datasource spend running at the connector, in nanoseconds. If there were no recent requests, the value will be reported as 0.")
  public Long getMedianDatasourceNanos() {
    return medianDatasourceNanos;
  }

  public void setMedianDatasourceNanos(Long medianDatasourceNanos) {
    this.medianDatasourceNanos = medianDatasourceNanos;
  }

  public DatasourceStatisticsV1 medianQueueNanos(Long medianQueueNanos) {
    this.medianQueueNanos = medianQueueNanos;
    return this;
  }

   /**
   * The median duration that recent requests to this datasource spend in a queue at the connector, in nanoseconds. If there were no recent requests, the value will be reported as 0.
   * @return medianQueueNanos
  **/
  @Schema(description = "The median duration that recent requests to this datasource spend in a queue at the connector, in nanoseconds. If there were no recent requests, the value will be reported as 0.")
  public Long getMedianQueueNanos() {
    return medianQueueNanos;
  }

  public void setMedianQueueNanos(Long medianQueueNanos) {
    this.medianQueueNanos = medianQueueNanos;
  }

  public DatasourceStatisticsV1 medianTotalNanos(Long medianTotalNanos) {
    this.medianTotalNanos = medianTotalNanos;
    return this;
  }

   /**
   * The median duration that recent requests to this datasource spend running in total, from the perspective of the Seeq server. This measurement includes network latency to the agent/connector, queueing on the agent/connector, and processing on the agent/connector. If there were no recent requests, the value will be reported as 0.
   * @return medianTotalNanos
  **/
  @Schema(description = "The median duration that recent requests to this datasource spend running in total, from the perspective of the Seeq server. This measurement includes network latency to the agent/connector, queueing on the agent/connector, and processing on the agent/connector. If there were no recent requests, the value will be reported as 0.")
  public Long getMedianTotalNanos() {
    return medianTotalNanos;
  }

  public void setMedianTotalNanos(Long medianTotalNanos) {
    this.medianTotalNanos = medianTotalNanos;
  }

  public DatasourceStatisticsV1 mostRecentCancellation(String mostRecentCancellation) {
    this.mostRecentCancellation = mostRecentCancellation;
    return this;
  }

   /**
   * The time of the most recent cancelled request, in ISO-8601 format
   * @return mostRecentCancellation
  **/
  @Schema(description = "The time of the most recent cancelled request, in ISO-8601 format")
  public String getMostRecentCancellation() {
    return mostRecentCancellation;
  }

  public void setMostRecentCancellation(String mostRecentCancellation) {
    this.mostRecentCancellation = mostRecentCancellation;
  }

  public DatasourceStatisticsV1 mostRecentFailure(String mostRecentFailure) {
    this.mostRecentFailure = mostRecentFailure;
    return this;
  }

   /**
   * The time of the most recent failed request, in ISO-8601 format
   * @return mostRecentFailure
  **/
  @Schema(description = "The time of the most recent failed request, in ISO-8601 format")
  public String getMostRecentFailure() {
    return mostRecentFailure;
  }

  public void setMostRecentFailure(String mostRecentFailure) {
    this.mostRecentFailure = mostRecentFailure;
  }

  public DatasourceStatisticsV1 mostRecentSuccess(String mostRecentSuccess) {
    this.mostRecentSuccess = mostRecentSuccess;
    return this;
  }

   /**
   * The time of the most recent successful request, in ISO-8601 format
   * @return mostRecentSuccess
  **/
  @Schema(description = "The time of the most recent successful request, in ISO-8601 format")
  public String getMostRecentSuccess() {
    return mostRecentSuccess;
  }

  public void setMostRecentSuccess(String mostRecentSuccess) {
    this.mostRecentSuccess = mostRecentSuccess;
  }

  public DatasourceStatisticsV1 mostRecentTimeout(String mostRecentTimeout) {
    this.mostRecentTimeout = mostRecentTimeout;
    return this;
  }

   /**
   * The time of the most recent timed-out request, in ISO-8601 format
   * @return mostRecentTimeout
  **/
  @Schema(description = "The time of the most recent timed-out request, in ISO-8601 format")
  public String getMostRecentTimeout() {
    return mostRecentTimeout;
  }

  public void setMostRecentTimeout(String mostRecentTimeout) {
    this.mostRecentTimeout = mostRecentTimeout;
  }

  public DatasourceStatisticsV1 numCancellations(Long numCancellations) {
    this.numCancellations = numCancellations;
    return this;
  }

   /**
   * Total number of cancelled requests to this datasource since the last restart of Seeq server.
   * @return numCancellations
  **/
  @Schema(description = "Total number of cancelled requests to this datasource since the last restart of Seeq server.")
  public Long getNumCancellations() {
    return numCancellations;
  }

  public void setNumCancellations(Long numCancellations) {
    this.numCancellations = numCancellations;
  }

  public DatasourceStatisticsV1 numFailures(Long numFailures) {
    this.numFailures = numFailures;
    return this;
  }

   /**
   * Total number of failed requests to this datasource since the last restart of Seeq server.
   * @return numFailures
  **/
  @Schema(description = "Total number of failed requests to this datasource since the last restart of Seeq server.")
  public Long getNumFailures() {
    return numFailures;
  }

  public void setNumFailures(Long numFailures) {
    this.numFailures = numFailures;
  }

  public DatasourceStatisticsV1 numSuccesses(Long numSuccesses) {
    this.numSuccesses = numSuccesses;
    return this;
  }

   /**
   * Total number of successful requests to this datasource since the last restart of Seeq server.
   * @return numSuccesses
  **/
  @Schema(description = "Total number of successful requests to this datasource since the last restart of Seeq server.")
  public Long getNumSuccesses() {
    return numSuccesses;
  }

  public void setNumSuccesses(Long numSuccesses) {
    this.numSuccesses = numSuccesses;
  }

  public DatasourceStatisticsV1 numTimeouts(Long numTimeouts) {
    this.numTimeouts = numTimeouts;
    return this;
  }

   /**
   * Total number of timed-out requests to this datasource since the last restart of Seeq server.
   * @return numTimeouts
  **/
  @Schema(description = "Total number of timed-out requests to this datasource since the last restart of Seeq server.")
  public Long getNumTimeouts() {
    return numTimeouts;
  }

  public void setNumTimeouts(Long numTimeouts) {
    this.numTimeouts = numTimeouts;
  }

  public DatasourceStatisticsV1 totalNumDatums(Long totalNumDatums) {
    this.totalNumDatums = totalNumDatums;
    return this;
  }

   /**
   * Total number of datums (i.e, samples, capsules, or rows) that were received in response to requests to this datasource since the last restart of Seeq server.
   * @return totalNumDatums
  **/
  @Schema(description = "Total number of datums (i.e, samples, capsules, or rows) that were received in response to requests to this datasource since the last restart of Seeq server.")
  public Long getTotalNumDatums() {
    return totalNumDatums;
  }

  public void setTotalNumDatums(Long totalNumDatums) {
    this.totalNumDatums = totalNumDatums;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DatasourceStatisticsV1 datasourceStatisticsV1 = (DatasourceStatisticsV1) o;
    return Objects.equals(this.medianDatasourceNanos, datasourceStatisticsV1.medianDatasourceNanos) &&
        Objects.equals(this.medianQueueNanos, datasourceStatisticsV1.medianQueueNanos) &&
        Objects.equals(this.medianTotalNanos, datasourceStatisticsV1.medianTotalNanos) &&
        Objects.equals(this.mostRecentCancellation, datasourceStatisticsV1.mostRecentCancellation) &&
        Objects.equals(this.mostRecentFailure, datasourceStatisticsV1.mostRecentFailure) &&
        Objects.equals(this.mostRecentSuccess, datasourceStatisticsV1.mostRecentSuccess) &&
        Objects.equals(this.mostRecentTimeout, datasourceStatisticsV1.mostRecentTimeout) &&
        Objects.equals(this.numCancellations, datasourceStatisticsV1.numCancellations) &&
        Objects.equals(this.numFailures, datasourceStatisticsV1.numFailures) &&
        Objects.equals(this.numSuccesses, datasourceStatisticsV1.numSuccesses) &&
        Objects.equals(this.numTimeouts, datasourceStatisticsV1.numTimeouts) &&
        Objects.equals(this.totalNumDatums, datasourceStatisticsV1.totalNumDatums);
  }

  @Override
  public int hashCode() {
    return Objects.hash(medianDatasourceNanos, medianQueueNanos, medianTotalNanos, mostRecentCancellation, mostRecentFailure, mostRecentSuccess, mostRecentTimeout, numCancellations, numFailures, numSuccesses, numTimeouts, totalNumDatums);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DatasourceStatisticsV1 {\n");
    
    sb.append("    medianDatasourceNanos: ").append(toIndentedString(medianDatasourceNanos)).append("\n");
    sb.append("    medianQueueNanos: ").append(toIndentedString(medianQueueNanos)).append("\n");
    sb.append("    medianTotalNanos: ").append(toIndentedString(medianTotalNanos)).append("\n");
    sb.append("    mostRecentCancellation: ").append(toIndentedString(mostRecentCancellation)).append("\n");
    sb.append("    mostRecentFailure: ").append(toIndentedString(mostRecentFailure)).append("\n");
    sb.append("    mostRecentSuccess: ").append(toIndentedString(mostRecentSuccess)).append("\n");
    sb.append("    mostRecentTimeout: ").append(toIndentedString(mostRecentTimeout)).append("\n");
    sb.append("    numCancellations: ").append(toIndentedString(numCancellations)).append("\n");
    sb.append("    numFailures: ").append(toIndentedString(numFailures)).append("\n");
    sb.append("    numSuccesses: ").append(toIndentedString(numSuccesses)).append("\n");
    sb.append("    numTimeouts: ").append(toIndentedString(numTimeouts)).append("\n");
    sb.append("    totalNumDatums: ").append(toIndentedString(totalNumDatums)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy