src.index.inputs.EndpointConfigurationCircuitBreakerArgs.scala Maven / Gradle / Ivy
package besom.api.ngrok.inputs
final case class EndpointConfigurationCircuitBreakerArgs private(
enabled: besom.types.Output[scala.Option[Boolean]],
errorThresholdPercentage: besom.types.Output[scala.Option[Double]],
numBuckets: besom.types.Output[scala.Option[Int]],
rollingWindow: besom.types.Output[scala.Option[Int]],
trippedDuration: besom.types.Output[scala.Option[Int]],
volumeThreshold: besom.types.Output[scala.Option[Int]]
)
object EndpointConfigurationCircuitBreakerArgs:
def apply(
enabled: besom.types.Input.Optional[Boolean] = scala.None,
errorThresholdPercentage: besom.types.Input.Optional[Double] = scala.None,
numBuckets: besom.types.Input.Optional[Int] = scala.None,
rollingWindow: besom.types.Input.Optional[Int] = scala.None,
trippedDuration: besom.types.Input.Optional[Int] = scala.None,
volumeThreshold: besom.types.Input.Optional[Int] = scala.None
)(using besom.types.Context): EndpointConfigurationCircuitBreakerArgs =
new EndpointConfigurationCircuitBreakerArgs(
enabled = enabled.asOptionOutput(isSecret = false),
errorThresholdPercentage = errorThresholdPercentage.asOptionOutput(isSecret = false),
numBuckets = numBuckets.asOptionOutput(isSecret = false),
rollingWindow = rollingWindow.asOptionOutput(isSecret = false),
trippedDuration = trippedDuration.asOptionOutput(isSecret = false),
volumeThreshold = volumeThreshold.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[EndpointConfigurationCircuitBreakerArgs] =
besom.internal.Encoder.derived[EndpointConfigurationCircuitBreakerArgs]
given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[EndpointConfigurationCircuitBreakerArgs] =
besom.internal.ArgsEncoder.derived[EndpointConfigurationCircuitBreakerArgs]
© 2015 - 2024 Weber Informatics LLC | Privacy Policy