Class ServiceStatistics

java.lang.Object
dev.vality.damsel.fault_detector.ServiceStatistics
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ServiceStatistics>, org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-11-14")
public class ServiceStatistics
extends Object
implements org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>, Serializable, Cloneable, Comparable<ServiceStatistics>
See Also:
Serialized Form
  • Field Details

    • service_id

      public String service_id
      ID сервиса
    • failure_rate

      public double failure_rate
      Показатель частоты отказов для данного сервиса от 0 до 1, где 0 - это отсутствие ошибок, а 1 - исключительно сбойные операции
    • operations_count

      public long operations_count
      Общее количество операций для сервиса
    • error_operations_count

      public long error_operations_count
      Количество операций завершившихся с ошибкой
    • overtime_operations_count

      public long overtime_operations_count
      Количество операций превысивших ожидаемое время выполнения
    • success_operations_count

      public long success_operations_count
      Количество операций, которые еще выполняются и превысили ожидаемое время выполнения
    • metaDataMap

      public static final Map<ServiceStatistics._Fields,​org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • ServiceStatistics

      public ServiceStatistics()
    • ServiceStatistics

      public ServiceStatistics​(String service_id, double failure_rate, long operations_count, long error_operations_count, long overtime_operations_count, long success_operations_count)
    • ServiceStatistics

      public ServiceStatistics​(ServiceStatistics other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public ServiceStatistics deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>
    • getServiceId

      public String getServiceId()
      ID сервиса
    • setServiceId

      public ServiceStatistics setServiceId​(String service_id)
      ID сервиса
    • unsetServiceId

      public void unsetServiceId()
    • isSetServiceId

      public boolean isSetServiceId()
      Returns true if field service_id is set (has been assigned a value) and false otherwise
    • setServiceIdIsSet

      public void setServiceIdIsSet​(boolean value)
    • getFailureRate

      public double getFailureRate()
      Показатель частоты отказов для данного сервиса от 0 до 1, где 0 - это отсутствие ошибок, а 1 - исключительно сбойные операции
    • setFailureRate

      public ServiceStatistics setFailureRate​(double failure_rate)
      Показатель частоты отказов для данного сервиса от 0 до 1, где 0 - это отсутствие ошибок, а 1 - исключительно сбойные операции
    • unsetFailureRate

      public void unsetFailureRate()
    • isSetFailureRate

      public boolean isSetFailureRate()
      Returns true if field failure_rate is set (has been assigned a value) and false otherwise
    • setFailureRateIsSet

      public void setFailureRateIsSet​(boolean value)
    • getOperationsCount

      public long getOperationsCount()
      Общее количество операций для сервиса
    • setOperationsCount

      public ServiceStatistics setOperationsCount​(long operations_count)
      Общее количество операций для сервиса
    • unsetOperationsCount

      public void unsetOperationsCount()
    • isSetOperationsCount

      public boolean isSetOperationsCount()
      Returns true if field operations_count is set (has been assigned a value) and false otherwise
    • setOperationsCountIsSet

      public void setOperationsCountIsSet​(boolean value)
    • getErrorOperationsCount

      public long getErrorOperationsCount()
      Количество операций завершившихся с ошибкой
    • setErrorOperationsCount

      public ServiceStatistics setErrorOperationsCount​(long error_operations_count)
      Количество операций завершившихся с ошибкой
    • unsetErrorOperationsCount

      public void unsetErrorOperationsCount()
    • isSetErrorOperationsCount

      public boolean isSetErrorOperationsCount()
      Returns true if field error_operations_count is set (has been assigned a value) and false otherwise
    • setErrorOperationsCountIsSet

      public void setErrorOperationsCountIsSet​(boolean value)
    • getOvertimeOperationsCount

      public long getOvertimeOperationsCount()
      Количество операций превысивших ожидаемое время выполнения
    • setOvertimeOperationsCount

      public ServiceStatistics setOvertimeOperationsCount​(long overtime_operations_count)
      Количество операций превысивших ожидаемое время выполнения
    • unsetOvertimeOperationsCount

      public void unsetOvertimeOperationsCount()
    • isSetOvertimeOperationsCount

      public boolean isSetOvertimeOperationsCount()
      Returns true if field overtime_operations_count is set (has been assigned a value) and false otherwise
    • setOvertimeOperationsCountIsSet

      public void setOvertimeOperationsCountIsSet​(boolean value)
    • getSuccessOperationsCount

      public long getSuccessOperationsCount()
      Количество операций, которые еще выполняются и превысили ожидаемое время выполнения
    • setSuccessOperationsCount

      public ServiceStatistics setSuccessOperationsCount​(long success_operations_count)
      Количество операций, которые еще выполняются и превысили ожидаемое время выполнения
    • unsetSuccessOperationsCount

      public void unsetSuccessOperationsCount()
    • isSetSuccessOperationsCount

      public boolean isSetSuccessOperationsCount()
      Returns true if field success_operations_count is set (has been assigned a value) and false otherwise
    • setSuccessOperationsCountIsSet

      public void setSuccessOperationsCountIsSet​(boolean value)
    • setFieldValue

      public void setFieldValue​(ServiceStatistics._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>
    • getFieldValue

      public Object getFieldValue​(ServiceStatistics._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>
    • isSet

      public boolean isSet​(ServiceStatistics._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>
    • equals

      public boolean equals​(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals​(ServiceStatistics that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo​(ServiceStatistics other)
      Specified by:
      compareTo in interface Comparable<ServiceStatistics>
    • fieldForId

      public ServiceStatistics._Fields fieldForId​(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<ServiceStatistics,​ServiceStatistics._Fields>
    • getFields

      public ServiceStatistics._Fields[] getFields()
    • getFieldMetaData

      public Map<ServiceStatistics._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
    • read

      public void read​(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write​(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException