Package com.oracle.bmc.circuitbreaker
Class CircuitBreakerOpenEvent
- java.lang.Object
-
- com.oracle.bmc.circuitbreaker.CircuitBreakerOpenEvent
-
- All Implemented Interfaces:
Serializable
public final class CircuitBreakerOpenEvent extends Object implements Serializable
Immutable observations captured when the breaker opens, shared by subsequent locally rejected calls.The formatted ObservedFailures count is the sum of the observed failure categories. Attribution to the opening threshold is best effort: error notifications precede breaker metric updates and the diagnostic and metric windows are maintained separately. Observed counts can differ from the captured breaker metrics. A later rejection does not reach the service or add an observed failure.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCircuitBreakerOpenEvent.FailureCategoryCategories for failures observed by the diagnostic collector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCorrelationId()Returns the identifier shared by this opening and calls rejected because of it.longgetFailedCalls()Returns the captured breaker failure metric, which may differ from the observed category sum printed in the summary.Map<CircuitBreakerOpenEvent.FailureCategory,Long>getFailureCounts()Map<Integer,Long>getHttpStatusCounts()InstantgetOpenedAt()StringgetPreviousState()StringgetState()longgetTotalCalls()Returns the captured breaker buffered-call metric, omitted from the formatted summary.StringtoString()
-
-
-
Method Detail
-
getCorrelationId
public String getCorrelationId()
Returns the identifier shared by this opening and calls rejected because of it.
-
getOpenedAt
public Instant getOpenedAt()
-
getPreviousState
public String getPreviousState()
-
getState
public String getState()
-
getTotalCalls
public long getTotalCalls()
Returns the captured breaker buffered-call metric, omitted from the formatted summary.
-
getFailedCalls
public long getFailedCalls()
Returns the captured breaker failure metric, which may differ from the observed category sum printed in the summary.
-
getFailureCounts
public Map<CircuitBreakerOpenEvent.FailureCategory,Long> getFailureCounts()
-
-