Class EppMetric

java.lang.Object
google.registry.monitoring.whitebox.EppMetric

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

    • EppMetric

      public EppMetric()
  • Method Details

    • getStartTimestamp

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

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

      public abstract Optional<String> getCommandName()
    • getRegistrarId

      public abstract Optional<String> getRegistrarId()
    • getTld

      public abstract Optional<String> getTld()
    • getStatus

      public abstract Optional<Result.Code> getStatus()
    • builder

      public static EppMetric.Builder builder()
    • 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().