Record Class IsolationMetricsSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.IsolationMetricsSnapshot
- Record Components:
activeExecutions- current active executionscompletedExecutions- completed execution countfailedExecutions- failed execution countcancelledExecutions- cancelled execution counttimedOutExecutions- timed-out execution countkilledExecutions- killed execution countpolicyAllowed- policy allow countpolicyDenied- policy denial countresourceRejected- resource rejection countredactionEvents- output/environment redaction count
public record IsolationMetricsSnapshot(int activeExecutions, long completedExecutions, long failedExecutions, long cancelledExecutions, long timedOutExecutions, long killedExecutions, long policyAllowed, long policyDenied, long resourceRejected, long redactionEvents)
extends Record
Provider metrics snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationMetricsSnapshot(int activeExecutions, long completedExecutions, long failedExecutions, long cancelledExecutions, long timedOutExecutions, long killedExecutions, long policyAllowed, long policyDenied, long resourceRejected, long redactionEvents) Creates a validated metrics snapshot. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveExecutionsrecord component.longReturns the value of thecancelledExecutionsrecord component.longReturns the value of thecompletedExecutionsrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedExecutionsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thekilledExecutionsrecord component.longReturns the value of thepolicyAllowedrecord component.longReturns the value of thepolicyDeniedrecord component.longReturns the value of theredactionEventsrecord component.longReturns the value of theresourceRejectedrecord component.longReturns the value of thetimedOutExecutionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IsolationMetricsSnapshot
public IsolationMetricsSnapshot(int activeExecutions, long completedExecutions, long failedExecutions, long cancelledExecutions, long timedOutExecutions, long killedExecutions, long policyAllowed, long policyDenied, long resourceRejected, long redactionEvents) Creates a validated metrics snapshot.
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
activeExecutions
public int activeExecutions()Returns the value of theactiveExecutionsrecord component.- Returns:
- the value of the
activeExecutionsrecord component
-
completedExecutions
public long completedExecutions()Returns the value of thecompletedExecutionsrecord component.- Returns:
- the value of the
completedExecutionsrecord component
-
failedExecutions
public long failedExecutions()Returns the value of thefailedExecutionsrecord component.- Returns:
- the value of the
failedExecutionsrecord component
-
cancelledExecutions
public long cancelledExecutions()Returns the value of thecancelledExecutionsrecord component.- Returns:
- the value of the
cancelledExecutionsrecord component
-
timedOutExecutions
public long timedOutExecutions()Returns the value of thetimedOutExecutionsrecord component.- Returns:
- the value of the
timedOutExecutionsrecord component
-
killedExecutions
public long killedExecutions()Returns the value of thekilledExecutionsrecord component.- Returns:
- the value of the
killedExecutionsrecord component
-
policyAllowed
public long policyAllowed()Returns the value of thepolicyAllowedrecord component.- Returns:
- the value of the
policyAllowedrecord component
-
policyDenied
public long policyDenied()Returns the value of thepolicyDeniedrecord component.- Returns:
- the value of the
policyDeniedrecord component
-
resourceRejected
public long resourceRejected()Returns the value of theresourceRejectedrecord component.- Returns:
- the value of the
resourceRejectedrecord component
-
redactionEvents
public long redactionEvents()Returns the value of theredactionEventsrecord component.- Returns:
- the value of the
redactionEventsrecord component
-