Package google.registry.model
Class OteStats
java.lang.Object
google.registry.model.OteStats
Represents stats derived from HistoryEntry objects on actions taken by registrars.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum defining the distinct statistics (types of registrar actions) to record. -
Method Summary
Modifier and TypeMethodDescriptionint
getCount
(OteStats.StatType statType) Returns the number of times that a particular StatType was seencom.google.common.collect.ImmutableList
<OteStats.StatType> Returns a list of failures, any cases where the passed stats fail to meet the required thresholds, or the empty list if all requirements are met.static OteStats
getFromRegistrar
(String registrarName) Returns the statistics about the OT&E actions that have been taken by a particular registrar.int
getSize()
Returns the total number of actions takentoString()
Returns a string showing all possible actions and how many times each was performed.
-
Method Details
-
getFromRegistrar
Returns the statistics about the OT&E actions that have been taken by a particular registrar. -
getSize
public int getSize()Returns the total number of actions taken -
getCount
Returns the number of times that a particular StatType was seen -
getFailures
Returns a list of failures, any cases where the passed stats fail to meet the required thresholds, or the empty list if all requirements are met. -
toString
Returns a string showing all possible actions and how many times each was performed.
-