Package dev.vality.damsel.fault_detector
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceStatistics._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description longerror_operations_countКоличество операций завершившихся с ошибкойdoublefailure_rateПоказатель частоты отказов для данного сервиса от 0 до 1, где 0 - это отсутствие ошибок, а 1 - исключительно сбойные операцииstatic Map<ServiceStatistics._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongoperations_countОбщее количество операций для сервисаlongovertime_operations_countКоличество операций превысивших ожидаемое время выполненияStringservice_idID сервисаlongsuccess_operations_countКоличество операций, которые еще выполняются и превысили ожидаемое время выполнения -
Constructor Summary
Constructors Constructor Description ServiceStatistics()ServiceStatistics(ServiceStatistics other)Performs a deep copy on other.ServiceStatistics(String service_id, double failure_rate, long operations_count, long error_operations_count, long overtime_operations_count, long success_operations_count) -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(ServiceStatistics other)ServiceStatisticsdeepCopy()booleanequals(ServiceStatistics that)booleanequals(Object that)ServiceStatistics._FieldsfieldForId(int fieldId)longgetErrorOperationsCount()Количество операций завершившихся с ошибкойdoublegetFailureRate()Показатель частоты отказов для данного сервиса от 0 до 1, где 0 - это отсутствие ошибок, а 1 - исключительно сбойные операцииMap<ServiceStatistics._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()ServiceStatistics._Fields[]getFields()ObjectgetFieldValue(ServiceStatistics._Fields field)longgetOperationsCount()Общее количество операций для сервисаlonggetOvertimeOperationsCount()Количество операций превысивших ожидаемое время выполненияStringgetServiceId()ID сервисаlonggetSuccessOperationsCount()Количество операций, которые еще выполняются и превысили ожидаемое время выполненияinthashCode()booleanisSet(ServiceStatistics._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetErrorOperationsCount()Returns true if field error_operations_count is set (has been assigned a value) and false otherwisebooleanisSetFailureRate()Returns true if field failure_rate is set (has been assigned a value) and false otherwisebooleanisSetOperationsCount()Returns true if field operations_count is set (has been assigned a value) and false otherwisebooleanisSetOvertimeOperationsCount()Returns true if field overtime_operations_count is set (has been assigned a value) and false otherwisebooleanisSetServiceId()Returns true if field service_id is set (has been assigned a value) and false otherwisebooleanisSetSuccessOperationsCount()Returns true if field success_operations_count is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)ServiceStatisticssetErrorOperationsCount(long error_operations_count)Количество операций завершившихся с ошибкойvoidsetErrorOperationsCountIsSet(boolean value)ServiceStatisticssetFailureRate(double failure_rate)Показатель частоты отказов для данного сервиса от 0 до 1, где 0 - это отсутствие ошибок, а 1 - исключительно сбойные операцииvoidsetFailureRateIsSet(boolean value)voidsetFieldValue(ServiceStatistics._Fields field, Object value)ServiceStatisticssetOperationsCount(long operations_count)Общее количество операций для сервисаvoidsetOperationsCountIsSet(boolean value)ServiceStatisticssetOvertimeOperationsCount(long overtime_operations_count)Количество операций превысивших ожидаемое время выполненияvoidsetOvertimeOperationsCountIsSet(boolean value)ServiceStatisticssetServiceId(String service_id)ID сервисаvoidsetServiceIdIsSet(boolean value)ServiceStatisticssetSuccessOperationsCount(long success_operations_count)Количество операций, которые еще выполняются и превысили ожидаемое время выполненияvoidsetSuccessOperationsCountIsSet(boolean value)StringtoString()voidunsetErrorOperationsCount()voidunsetFailureRate()voidunsetOperationsCount()voidunsetOvertimeOperationsCount()voidunsetServiceId()voidunsetSuccessOperationsCount()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
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
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<ServiceStatistics,ServiceStatistics._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<ServiceStatistics,ServiceStatistics._Fields>
-
getServiceId
ID сервиса -
setServiceId
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
Показатель частоты отказов для данного сервиса от 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
Общее количество операций для сервиса -
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
Количество операций завершившихся с ошибкой -
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
Количество операций превысивших ожидаемое время выполнения -
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
Количество операций, которые еще выполняются и превысили ожидаемое время выполнения -
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
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<ServiceStatistics,ServiceStatistics._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<ServiceStatistics,ServiceStatistics._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<ServiceStatistics,ServiceStatistics._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ServiceStatistics>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<ServiceStatistics,ServiceStatistics._Fields>
-
getFields
-
getFieldMetaData
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-