Package io.jenkins.plugins.explain_error
Record Class UsageEvent
java.lang.Object
java.lang.Record
io.jenkins.plugins.explain_error.UsageEvent
public record UsageEvent(long timestampMillis, UsageEvent.EntryPoint entryPoint, UsageEvent.Result result, String providerName, String model, long durationMillis, int inputLogLineCount, boolean downstreamLogsCollected)
extends Record
Immutable event describing a single Explain Error request outcome.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUsageEvent(long timestampMillis, UsageEvent.EntryPoint entryPoint, UsageEvent.Result result, String providerName, String model, long durationMillis, int inputLogLineCount, boolean downstreamLogsCollected) Creates an instance of aUsageEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedownstreamLogsCollectedrecord component.longReturns the value of thedurationMillisrecord component.Returns the value of theentryPointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinputLogLineCountrecord component.model()Returns the value of themodelrecord component.Returns the value of theproviderNamerecord component.result()Returns the value of theresultrecord component.longReturns the value of thetimestampMillisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UsageEvent
public UsageEvent(long timestampMillis, UsageEvent.EntryPoint entryPoint, UsageEvent.Result result, String providerName, String model, long durationMillis, int inputLogLineCount, boolean downstreamLogsCollected) Creates an instance of aUsageEventrecord class.- Parameters:
timestampMillis- the value for thetimestampMillisrecord componententryPoint- the value for theentryPointrecord componentresult- the value for theresultrecord componentproviderName- the value for theproviderNamerecord componentmodel- the value for themodelrecord componentdurationMillis- the value for thedurationMillisrecord componentinputLogLineCount- the value for theinputLogLineCountrecord componentdownstreamLogsCollected- the value for thedownstreamLogsCollectedrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
timestampMillis
public long timestampMillis()Returns the value of thetimestampMillisrecord component.- Returns:
- the value of the
timestampMillisrecord component
-
entryPoint
Returns the value of theentryPointrecord component.- Returns:
- the value of the
entryPointrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
providerName
Returns the value of theproviderNamerecord component.- Returns:
- the value of the
providerNamerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
durationMillis
public long durationMillis()Returns the value of thedurationMillisrecord component.- Returns:
- the value of the
durationMillisrecord component
-
inputLogLineCount
public int inputLogLineCount()Returns the value of theinputLogLineCountrecord component.- Returns:
- the value of the
inputLogLineCountrecord component
-
downstreamLogsCollected
public boolean downstreamLogsCollected()Returns the value of thedownstreamLogsCollectedrecord component.- Returns:
- the value of the
downstreamLogsCollectedrecord component
-