Record Class CheckApiMetric
java.lang.Object
java.lang.Record
google.registry.monitoring.whitebox.CheckApiMetric
public record CheckApiMetric(org.joda.time.DateTime startTimestamp, org.joda.time.DateTime endTimestamp, CheckApiMetric.Status status, Optional<CheckApiMetric.Tier> tier, Optional<CheckApiMetric.Availability> availability)
extends Record
A record for recording attributes of a domain check metric.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Availability status of a domain.static class
Builder forCheckApiMetric
.static enum
Status of the CheckApi command.static enum
Price tier of a domain name. -
Constructor Summary
ConstructorDescriptionCheckApiMetric
(org.joda.time.DateTime startTimestamp, org.joda.time.DateTime endTimestamp, CheckApiMetric.Status status, Optional<CheckApiMetric.Tier> tier, Optional<CheckApiMetric.Availability> availability) Creates an instance of aCheckApiMetric
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailability
record component.static CheckApiMetric.Builder
org.joda.time.DateTime
Returns the value of theendTimestamp
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.joda.time.DateTime
Returns the value of thestartTimestamp
record component.status()
Returns the value of thestatus
record component.tier()
Returns the value of thetier
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CheckApiMetric
public CheckApiMetric(org.joda.time.DateTime startTimestamp, org.joda.time.DateTime endTimestamp, CheckApiMetric.Status status, Optional<CheckApiMetric.Tier> tier, Optional<CheckApiMetric.Availability> availability) Creates an instance of aCheckApiMetric
record class.- Parameters:
startTimestamp
- the value for thestartTimestamp
record componentendTimestamp
- the value for theendTimestamp
record componentstatus
- the value for thestatus
record componenttier
- the value for thetier
record componentavailability
- the value for theavailability
record component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
startTimestamp
public org.joda.time.DateTime startTimestamp()Returns the value of thestartTimestamp
record component.- Returns:
- the value of the
startTimestamp
record component
-
endTimestamp
public org.joda.time.DateTime endTimestamp()Returns the value of theendTimestamp
record component.- Returns:
- the value of the
endTimestamp
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
tier
Returns the value of thetier
record component.- Returns:
- the value of the
tier
record component
-
availability
Returns the value of theavailability
record component.- Returns:
- the value of the
availability
record component
-