Package google.registry.whois
Class WhoisMetrics.WhoisMetric
java.lang.Object
google.registry.whois.WhoisMetrics.WhoisMetric
- Enclosing class:
WhoisMetrics
A value class for recording attributes of a WHOIS metric.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder to create instances ofWhoisMetrics.WhoisMetric
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create aWhoisMetrics.WhoisMetric.Builder
.builderForRequest
(Clock clock) Create aWhoisMetrics.WhoisMetric.Builder
for a request context, with the start and end timestamps taken from the given clock.abstract org.joda.time.DateTime
abstract int
abstract org.joda.time.DateTime
abstract int
status()
-
Constructor Details
-
WhoisMetric
public WhoisMetric()
-
-
Method Details
-
commandName
-
numResults
public abstract int numResults() -
status
public abstract int status() -
startTimestamp
public abstract org.joda.time.DateTime startTimestamp() -
endTimestamp
public abstract org.joda.time.DateTime endTimestamp() -
builderForRequest
Create aWhoisMetrics.WhoisMetric.Builder
for a request context, with the start and end timestamps taken from the given clock.The start timestamp is recorded now, and the end timestamp at
build()
. -
builder
Create aWhoisMetrics.WhoisMetric.Builder
.
-