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 aMetricsTimedInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.String[]
Returns the value of theextraTags
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehistogram
record component.boolean
longTask()
Returns the value of thelongTask
record component.name()
Returns the value of thename
record component.double[]
Returns the value of thepercentiles
record component.final String
toString()
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 aMetricsTimedInfo
record class.- Parameters:
name
- the value for thename
record componentlongTask
- the value for thelongTask
record componentextraTags
- the value for theextraTags
record componentpercentiles
- the value for thepercentiles
record componenthistogram
- the value for thehistogram
record componentdescription
- the value for thedescription
record 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 thecompare
method from their corresponding wrapper classes. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
longTask
public boolean longTask()Returns the value of thelongTask
record component.- Returns:
- the value of the
longTask
record component
-
extraTags
Returns the value of theextraTags
record component.- Returns:
- the value of the
extraTags
record component
-
percentiles
public double[] percentiles()Returns the value of thepercentiles
record component.- Returns:
- the value of the
percentiles
record component
-
histogram
public boolean histogram()Returns the value of thehistogram
record component.- Returns:
- the value of the
histogram
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-