Class EppMetric

  • public abstract class EppMetric
    extends java.lang.Object
    A value class for recording attributes of an EPP metric.
    • Constructor Detail

      • EppMetric

        public EppMetric()
    • Method Detail

      • getStartTimestamp

        public abstract org.joda.time.DateTime getStartTimestamp()
      • getEndTimestamp

        public abstract org.joda.time.DateTime getEndTimestamp()
      • getCommandName

        public abstract java.util.Optional<java.lang.String> getCommandName()
      • getRegistrarId

        public abstract java.util.Optional<java.lang.String> getRegistrarId()
      • getTld

        public abstract java.util.Optional<java.lang.String> getTld()
      • getStatus

        public abstract java.util.Optional<Result.Code> getStatus()
      • builderForRequest

        public static EppMetric.Builder builderForRequest​(Clock clock)
        Create an EppMetric.Builder for a request context, with the given request ID and with start and end timestamps taken from the given clock.

        The start timestamp is recorded now, and the end timestamp at build().