Package com.io7m.idstore.server.api
Record Class IdServerOpenTelemetryConfiguration.IdMetrics
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerOpenTelemetryConfiguration.IdMetrics
- Record Components:
endpoint
- The endpoint to which OTLP metrics data will be sent.protocol
- The protocol used to deliver OpenTelemetry data.
- Enclosing class:
IdServerOpenTelemetryConfiguration
public static record IdServerOpenTelemetryConfiguration.IdMetrics(URI endpoint, IdServerOpenTelemetryConfiguration.IdOTLPProtocol protocol)
extends Record
Metrics configuration.
-
Constructor Summary
ConstructorDescriptionIdMetrics
(URI endpoint, IdServerOpenTelemetryConfiguration.IdOTLPProtocol protocol) Metrics configuration. -
Method Summary
Modifier and TypeMethodDescriptionendpoint()
Returns the value of theendpoint
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.protocol()
Returns the value of theprotocol
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IdMetrics
Metrics configuration.
-
-
Method Details
-
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)
. -
endpoint
Returns the value of theendpoint
record component.- Returns:
- the value of the
endpoint
record component
-
protocol
Returns the value of theprotocol
record component.- Returns:
- the value of the
protocol
record component
-