c

uk.gov.hmrc.alertconfig.builder

AlertConfigBuilder

case class AlertConfigBuilder(serviceName: String, handlers: Seq[String] = Seq("noop"), errorsLoggedThreshold: ErrorsLoggedThreshold = ErrorsLoggedThreshold(), exceptionThreshold: ExceptionThreshold = ExceptionThreshold(), http5xxThreshold: Http5xxThreshold = Http5xxThreshold(), http5xxPercentThreshold: Http5xxPercentThreshold = Http5xxPercentThreshold(100.0), http90PercentileResponseTimeThresholds: Seq[Http90PercentileResponseTimeThreshold] = Nil, httpAbsolutePercentSplitThresholds: Seq[HttpAbsolutePercentSplitThreshold] = Nil, httpAbsolutePercentSplitDownstreamServiceThresholds: Seq[HttpAbsolutePercentSplitDownstreamServiceThreshold] = Nil, httpAbsolutePercentSplitDownstreamHodThresholds: Seq[HttpAbsolutePercentSplitDownstreamHodThreshold] = Nil, containerKillThreshold: ContainerKillThreshold = ContainerKillThreshold(1), httpTrafficThresholds: Seq[HttpTrafficThreshold] = Nil, httpStatusThresholds: Seq[HttpStatusThreshold] = Nil, httpStatusPercentThresholds: Seq[HttpStatusPercentThreshold] = Nil, metricsThresholds: Seq[MetricsThreshold] = Nil, logMessageThresholds: Seq[LogMessageThreshold] = Nil, totalHttpRequestThreshold: TotalHttpRequestThreshold = TotalHttpRequestThreshold(), averageCPUThreshold: AverageCPUThreshold = AverageCPUThreshold(), platformService: Boolean = false) extends Builder[Option[String]] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, Builder[Option[String]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AlertConfigBuilder
  2. Serializable
  3. Product
  4. Equals
  5. Builder
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AlertConfigBuilder(serviceName: String, handlers: Seq[String] = Seq("noop"), errorsLoggedThreshold: ErrorsLoggedThreshold = ErrorsLoggedThreshold(), exceptionThreshold: ExceptionThreshold = ExceptionThreshold(), http5xxThreshold: Http5xxThreshold = Http5xxThreshold(), http5xxPercentThreshold: Http5xxPercentThreshold = Http5xxPercentThreshold(100.0), http90PercentileResponseTimeThresholds: Seq[Http90PercentileResponseTimeThreshold] = Nil, httpAbsolutePercentSplitThresholds: Seq[HttpAbsolutePercentSplitThreshold] = Nil, httpAbsolutePercentSplitDownstreamServiceThresholds: Seq[HttpAbsolutePercentSplitDownstreamServiceThreshold] = Nil, httpAbsolutePercentSplitDownstreamHodThresholds: Seq[HttpAbsolutePercentSplitDownstreamHodThreshold] = Nil, containerKillThreshold: ContainerKillThreshold = ContainerKillThreshold(1), httpTrafficThresholds: Seq[HttpTrafficThreshold] = Nil, httpStatusThresholds: Seq[HttpStatusThreshold] = Nil, httpStatusPercentThresholds: Seq[HttpStatusPercentThreshold] = Nil, metricsThresholds: Seq[MetricsThreshold] = Nil, logMessageThresholds: Seq[LogMessageThreshold] = Nil, totalHttpRequestThreshold: TotalHttpRequestThreshold = TotalHttpRequestThreshold(), averageCPUThreshold: AverageCPUThreshold = AverageCPUThreshold(), platformService: Boolean = false)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val averageCPUThreshold: AverageCPUThreshold
  6. def build: Option[String]
    Definition Classes
    AlertConfigBuilderBuilder
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. val containerKillThreshold: ContainerKillThreshold
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val errorsLoggedThreshold: ErrorsLoggedThreshold
  11. val exceptionThreshold: ExceptionThreshold
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. val handlers: Seq[String]
  14. val http5xxPercentThreshold: Http5xxPercentThreshold
  15. val http5xxThreshold: Http5xxThreshold
  16. val http90PercentileResponseTimeThresholds: Seq[Http90PercentileResponseTimeThreshold]
  17. val httpAbsolutePercentSplitDownstreamHodThresholds: Seq[HttpAbsolutePercentSplitDownstreamHodThreshold]
  18. val httpAbsolutePercentSplitDownstreamServiceThresholds: Seq[HttpAbsolutePercentSplitDownstreamServiceThreshold]
  19. val httpAbsolutePercentSplitThresholds: Seq[HttpAbsolutePercentSplitThreshold]
  20. val httpStatusPercentThresholds: Seq[HttpStatusPercentThreshold]
  21. val httpStatusThresholds: Seq[HttpStatusThreshold]
  22. val httpTrafficThresholds: Seq[HttpTrafficThreshold]
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isPlatformService(platformService: Boolean): AlertConfigBuilder
  25. val logMessageThresholds: Seq[LogMessageThreshold]
  26. val logger: Logger
  27. val metricsThresholds: Seq[MetricsThreshold]
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  31. val platformService: Boolean
  32. def productElementNames: Iterator[String]
    Definition Classes
    Product
  33. val serviceName: String
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. val totalHttpRequestThreshold: TotalHttpRequestThreshold
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. def withAverageCPUThreshold(averageCPUThreshold: Int, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder
  40. def withContainerKillThreshold(containerCrashThreshold: Int, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder
  41. def withErrorsLoggedThreshold(errorsLoggedThreshold: Int, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder
  42. def withExceptionThreshold(exceptionThreshold: Int, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder
  43. def withHandlers(handlers: String*): AlertConfigBuilder
  44. def withHttp5xxPercentThreshold(percentThreshold: Double, minimumHttp5xxCountThreshold: Int = 0, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder

    percentThreshold

    The %age of requests that must be 5xx to trigger the alarm

    minimumHttp5xxCountThreshold

    The minimum count of 5xxs that must be present for the percentThreshold check to kick in. Optional. If you want to create a 5xxPercentThreshold alert but only if you have a given count of 5xxs, this is the method to use. You want to use this parameter if, for example, you don't want to alert on just a one-off 5xx in the middle of the night Defaults to 0, which would mean the parameter has no effect

    severity

    How severe the alert is

    alertingPlatform

    Which platform to direct the alert to

    returns

    Configured threshold object

  45. def withHttp5xxThreshold(http5xxThreshold: Int, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder
  46. def withHttp90PercentileResponseTimeThreshold(threshold: Http90PercentileResponseTimeThreshold): AlertConfigBuilder
  47. def withHttpAbsolutePercentSplitDownstreamHodThreshold(threshold: HttpAbsolutePercentSplitDownstreamHodThreshold): AlertConfigBuilder
  48. def withHttpAbsolutePercentSplitDownstreamServiceThreshold(threshold: HttpAbsolutePercentSplitDownstreamServiceThreshold): AlertConfigBuilder
  49. def withHttpAbsolutePercentSplitThreshold(threshold: HttpAbsolutePercentSplitThreshold): AlertConfigBuilder
  50. def withHttpStatusPercentThreshold(threshold: HttpStatusPercentThreshold): AlertConfigBuilder
  51. def withHttpStatusThreshold(threshold: HttpStatusThreshold): AlertConfigBuilder
  52. def withHttpTrafficThreshold(threshold: HttpTrafficThreshold): AlertConfigBuilder
  53. def withLogMessageThreshold(message: String, threshold: Int, lessThanMode: Boolean = false, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder
  54. def withMetricsThreshold(threshold: MetricsThreshold): AlertConfigBuilder
  55. def withTotalHttpRequestsCountThreshold(threshold: Int, alertingPlatform: AlertingPlatform = AlertingPlatform.Default): AlertConfigBuilder

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Builder[Option[String]]

Inherited from AnyRef

Inherited from Any

Ungrouped