Record Class AiServiceMethodCreateInfo.MetricsTimedInfo
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodCreateInfo.MetricsTimedInfo
- Enclosing class:
AiServiceMethodCreateInfo
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMetricsTimedInfo(String name, boolean longTask, String[] extraTags, double[] percentiles, boolean histogram, String description) Creates an instance of aMetricsTimedInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.String[]Returns the value of theextraTagsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehistogramrecord component.booleanlongTask()Returns the value of thelongTaskrecord component.name()Returns the value of thenamerecord component.double[]Returns the value of thepercentilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetricsTimedInfo
public MetricsTimedInfo(String name, boolean longTask, String[] extraTags, double[] percentiles, boolean histogram, String description) Creates an instance of aMetricsTimedInforecord class.- Parameters:
name- the value for thenamerecord componentlongTask- the value for thelongTaskrecord componentextraTags- the value for theextraTagsrecord componentpercentiles- the value for thepercentilesrecord componenthistogram- the value for thehistogramrecord componentdescription- the value for thedescriptionrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
longTask
public boolean longTask()Returns the value of thelongTaskrecord component.- Returns:
- the value of the
longTaskrecord component
-
extraTags
Returns the value of theextraTagsrecord component.- Returns:
- the value of the
extraTagsrecord component
-
percentiles
public double[] percentiles()Returns the value of thepercentilesrecord component.- Returns:
- the value of the
percentilesrecord component
-
histogram
public boolean histogram()Returns the value of thehistogramrecord component.- Returns:
- the value of the
histogramrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-