All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.index.outputs.EndpointConfigurationCircuitBreaker.scala Maven / Gradle / Ivy

There is a newer version: 0.0.24-core.0.3
Show newest version
package besom.api.ngrok.outputs


final case class EndpointConfigurationCircuitBreaker private(
  enabled: scala.Option[Boolean],
  errorThresholdPercentage: scala.Option[Double],
  numBuckets: scala.Option[Int],
  rollingWindow: scala.Option[Int],
  trippedDuration: scala.Option[Int],
  volumeThreshold: scala.Option[Int]
)
object EndpointConfigurationCircuitBreaker :

  given decoder(using besom.types.Context): besom.types.Decoder[EndpointConfigurationCircuitBreaker] =
    besom.internal.Decoder.derived[EndpointConfigurationCircuitBreaker]



  given outputOps: {} with
    extension(output: besom.types.Output[EndpointConfigurationCircuitBreaker])
      def enabled : besom.types.Output[scala.Option[Boolean]] = output.map(_.enabled)
      def errorThresholdPercentage : besom.types.Output[scala.Option[Double]] = output.map(_.errorThresholdPercentage)
      def numBuckets : besom.types.Output[scala.Option[Int]] = output.map(_.numBuckets)
      def rollingWindow : besom.types.Output[scala.Option[Int]] = output.map(_.rollingWindow)
      def trippedDuration : besom.types.Output[scala.Option[Int]] = output.map(_.trippedDuration)
      def volumeThreshold : besom.types.Output[scala.Option[Int]] = output.map(_.volumeThreshold)

  given optionOutputOps: {} with
    extension(output: besom.types.Output[scala.Option[EndpointConfigurationCircuitBreaker]])
      def enabled : besom.types.Output[scala.Option[Boolean]] = output.map(_.flatMap(_.enabled))
      def errorThresholdPercentage : besom.types.Output[scala.Option[Double]] = output.map(_.flatMap(_.errorThresholdPercentage))
      def numBuckets : besom.types.Output[scala.Option[Int]] = output.map(_.flatMap(_.numBuckets))
      def rollingWindow : besom.types.Output[scala.Option[Int]] = output.map(_.flatMap(_.rollingWindow))
      def trippedDuration : besom.types.Output[scala.Option[Int]] = output.map(_.flatMap(_.trippedDuration))
      def volumeThreshold : besom.types.Output[scala.Option[Int]] = output.map(_.flatMap(_.volumeThreshold))





© 2015 - 2024 Weber Informatics LLC | Privacy Policy