Record Class StConfiguration.OpenTelemetry.Metrics
java.lang.Object
java.lang.Record
com.io7m.stonesignal.server.StConfiguration.OpenTelemetry.Metrics
- Record Components:
endpoint- The endpoint to which OTLP metrics data will be sent.protocol- The protocol used to deliver OpenTelemetry data.
- Enclosing class:
StConfiguration.OpenTelemetry
public static record StConfiguration.OpenTelemetry.Metrics(URI endpoint, StConfiguration.OpenTelemetry.OTLPProtocol protocol)
extends Record
Metrics configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionMetrics(URI endpoint, StConfiguration.OpenTelemetry.OTLPProtocol protocol) Metrics configuration. -
Method Summary
Modifier and TypeMethodDescriptionendpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.protocol()Returns the value of theprotocolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metrics
public Metrics(@JsonPropertyDescription("The endpoint address for OTLP data.") URI endpoint, @JsonPropertyDescription("The protocol used to deliver OTLP data.") StConfiguration.OpenTelemetry.OTLPProtocol protocol) Metrics configuration.
-
-
Method Details
-
toString
-
hashCode
-
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
-
protocol
@JsonPropertyDescription("The protocol used to deliver OTLP data.") public StConfiguration.OpenTelemetry.OTLPProtocol protocol()Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-