Record Class UpdateBreakerInput

java.lang.Object
java.lang.Record
dev.tripswitch.admin.UpdateBreakerInput

public record UpdateBreakerInput(String name, String metric, BreakerKind kind, Map<String,Object> kindParams, BreakerOp op, Double threshold, Integer windowMs, Integer minCount, Integer minStateDurationMs, Integer cooldownMs, Integer evalIntervalMs, Boolean halfOpenBackoffEnabled, Integer halfOpenBackoffCapMs, HalfOpenPolicy halfOpenIndeterminatePolicy, Integer recoveryAllowRateRampSteps, Map<String,Object> actions, Map<String,String> metadata) extends Record
Input for updating a breaker. All fields are optional.
  • Constructor Details

    • UpdateBreakerInput

      public UpdateBreakerInput(String name, String metric, BreakerKind kind, Map<String,Object> kindParams, BreakerOp op, Double threshold, Integer windowMs, Integer minCount, Integer minStateDurationMs, Integer cooldownMs, Integer evalIntervalMs, Boolean halfOpenBackoffEnabled, Integer halfOpenBackoffCapMs, HalfOpenPolicy halfOpenIndeterminatePolicy, Integer recoveryAllowRateRampSteps, Map<String,Object> actions, Map<String,String> metadata)
      Creates an instance of a UpdateBreakerInput record class.
      Parameters:
      name - the value for the name record component
      metric - the value for the metric record component
      kind - the value for the kind record component
      kindParams - the value for the kindParams record component
      op - the value for the op record component
      threshold - the value for the threshold record component
      windowMs - the value for the windowMs record component
      minCount - the value for the minCount record component
      minStateDurationMs - the value for the minStateDurationMs record component
      cooldownMs - the value for the cooldownMs record component
      evalIntervalMs - the value for the evalIntervalMs record component
      halfOpenBackoffEnabled - the value for the halfOpenBackoffEnabled record component
      halfOpenBackoffCapMs - the value for the halfOpenBackoffCapMs record component
      halfOpenIndeterminatePolicy - the value for the halfOpenIndeterminatePolicy record component
      recoveryAllowRateRampSteps - the value for the recoveryAllowRateRampSteps record component
      actions - the value for the actions record component
      metadata - the value for the metadata record component
  • Method Details

    • builder

      public static UpdateBreakerInput.Builder builder()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • metric

      public String metric()
      Returns the value of the metric record component.
      Returns:
      the value of the metric record component
    • kind

      public BreakerKind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • kindParams

      public Map<String,Object> kindParams()
      Returns the value of the kindParams record component.
      Returns:
      the value of the kindParams record component
    • op

      public BreakerOp op()
      Returns the value of the op record component.
      Returns:
      the value of the op record component
    • threshold

      public Double threshold()
      Returns the value of the threshold record component.
      Returns:
      the value of the threshold record component
    • windowMs

      public Integer windowMs()
      Returns the value of the windowMs record component.
      Returns:
      the value of the windowMs record component
    • minCount

      public Integer minCount()
      Returns the value of the minCount record component.
      Returns:
      the value of the minCount record component
    • minStateDurationMs

      public Integer minStateDurationMs()
      Returns the value of the minStateDurationMs record component.
      Returns:
      the value of the minStateDurationMs record component
    • cooldownMs

      public Integer cooldownMs()
      Returns the value of the cooldownMs record component.
      Returns:
      the value of the cooldownMs record component
    • evalIntervalMs

      public Integer evalIntervalMs()
      Returns the value of the evalIntervalMs record component.
      Returns:
      the value of the evalIntervalMs record component
    • halfOpenBackoffEnabled

      public Boolean halfOpenBackoffEnabled()
      Returns the value of the halfOpenBackoffEnabled record component.
      Returns:
      the value of the halfOpenBackoffEnabled record component
    • halfOpenBackoffCapMs

      public Integer halfOpenBackoffCapMs()
      Returns the value of the halfOpenBackoffCapMs record component.
      Returns:
      the value of the halfOpenBackoffCapMs record component
    • halfOpenIndeterminatePolicy

      public HalfOpenPolicy halfOpenIndeterminatePolicy()
      Returns the value of the halfOpenIndeterminatePolicy record component.
      Returns:
      the value of the halfOpenIndeterminatePolicy record component
    • recoveryAllowRateRampSteps

      public Integer recoveryAllowRateRampSteps()
      Returns the value of the recoveryAllowRateRampSteps record component.
      Returns:
      the value of the recoveryAllowRateRampSteps record component
    • actions

      public Map<String,Object> actions()
      Returns the value of the actions record component.
      Returns:
      the value of the actions record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component