Class EppMetric
- java.lang.Object
-
- google.registry.monitoring.whitebox.EppMetric
-
public abstract class EppMetric extends java.lang.Object
A value class for recording attributes of an EPP metric.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EppMetric.Builder
A builder to create instances ofEppMetric
.
-
Constructor Summary
Constructors Constructor Description EppMetric()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static EppMetric.Builder
builder()
Create anEppMetric.Builder
.static EppMetric.Builder
builderForRequest(Clock clock)
Create anEppMetric.Builder
for a request context, with the given request ID and with start and end timestamps taken from the given clock.abstract java.util.Optional<java.lang.String>
getCommandName()
abstract org.joda.time.DateTime
getEndTimestamp()
abstract java.util.Optional<java.lang.String>
getRegistrarId()
abstract org.joda.time.DateTime
getStartTimestamp()
abstract java.util.Optional<Result.Code>
getStatus()
abstract java.util.Optional<java.lang.String>
getTld()
-
-
-
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()
-
builder
public static EppMetric.Builder builder()
Create anEppMetric.Builder
.
-
builderForRequest
public static EppMetric.Builder builderForRequest(Clock clock)
Create anEppMetric.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()
.
-
-