Class EppMetric.Builder
java.lang.Object
google.registry.monitoring.whitebox.EppMetric.Builder
- Enclosing class:
EppMetric
A builder to create instances of
EppMetric
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance ofEppMetric
using this builder.setCommandNameFromFlow
(String flowSimpleClassName) abstract EppMetric.Builder
setRegistrarId
(String registrarId) abstract EppMetric.Builder
setRegistrarId
(Optional<String> registrarId) abstract EppMetric.Builder
setStatus
(Result.Code code) abstract EppMetric.Builder
abstract EppMetric.Builder
Sets the single TLD field from a list of TLDs associated with a command.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setCommandNameFromFlow
-
setRegistrarId
-
setRegistrarId
-
setTld
-
setTld
-
setTlds
Sets the single TLD field from a list of TLDs associated with a command.Due to cardinality reasons we cannot record combinations of different TLDs as might be seen in a domain check command, so if this happens we record "_various" instead. We also record "_invalid" for a TLD that does not exist in our system, as again that could blow up cardinality. Underscore prefixes are used for these sentinel values so that they cannot be confused with actual TLDs, which cannot start with underscores.
-
setStatus
-
build
Build an instance ofEppMetric
using this builder.If a clock was provided with
setClock()
, the end timestamp will be set to the current timestamp of the clock; otherwise end timestamp must have been previously set.
-