Record Class IncidentSummary
java.lang.Object
java.lang.Record
io.jenkins.plugins.batchcontrol.store.IncidentSummary
- Record Components:
id- incident idrunId- the failed runjobFullName- the jobresult- the run resultcreatedAt- when the incident was opened, ornullif the line lacks it
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public record IncidentSummary(String id, String runId, String jobFullName, String result, Instant createdAt)
extends Record
One line of the monthly incident index (
incidents/index/YYYY-MM.jsonl). A page query
filters on these fields before it loads an incident's XML (security-10 S-06).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thejobFullNamerecord component.result()Returns the value of theresultrecord component.runId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IncidentSummary
public IncidentSummary(String id, @CheckForNull String runId, @CheckForNull String jobFullName, @CheckForNull String result, @CheckForNull Instant createdAt) Creates an instance of aIncidentSummaryrecord class.- Parameters:
id- the value for theidrecord componentrunId- the value for therunIdrecord componentjobFullName- the value for thejobFullNamerecord componentresult- the value for theresultrecord componentcreatedAt- the value for thecreatedAtrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
jobFullName
Returns the value of thejobFullNamerecord component.- Returns:
- the value of the
jobFullNamerecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-