package builder
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- builder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait AlertConfig extends AnyRef
- case class AlertConfigBuilder(serviceName: String, handlers: Seq[String] = Seq("noop"), errorsLoggedThreshold: ErrorsLoggedThreshold = ErrorsLoggedThreshold(), exceptionThreshold: ExceptionThreshold = ExceptionThreshold(), http5xxRateIncrease: Seq[Http5xxRateIncrease] = Nil, 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
- sealed trait AlertSeverity extends AnyRef
- sealed trait AlertType extends AnyRef
- sealed trait AlertingPlatform extends AnyRef
- case class AverageCPUThreshold(count: Int = Int.MaxValue, alertingPlatform: AlertingPlatform = AlertingPlatform.Default) extends Product with Serializable
- trait Builder[T] extends AnyRef
- case class ContainerKillThreshold(count: Int = Int.MaxValue, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- sealed trait Environment extends AnyRef
- case class EnvironmentAlertBuilder(handlerName: String, command: Option[JsValue] = None, enabledEnvironments: Map[Environment, Set[Severity]] = Map((Environment.Production, Set(Severity.Ok, Severity.Warning, Severity.Critical))), customEnvironmentNames: Map[Environment, String] = Map((Environment.Production, "aws_production")), handlerFilters: Map[Environment, JsValue] = Map((Environment.Production, JsString("occurrences")))) extends Product with Serializable
- case class ErrorsLoggedThreshold(count: Int = Int.MaxValue, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- case class ExceptionThreshold(count: Int = 2, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- case class Http5xxPercentThreshold(percentage: Double = 100.0, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- case class Http5xxRateIncrease(name: String, simple_threshold: Int, complex_threshold: Int) extends Product with Serializable
- case class Http5xxThreshold(count: Int = Int.MaxValue, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- case class Http90PercentileResponseTimeThreshold(warning: Option[Int], critical: Option[Int], timePeriod: Int = 15) extends Product with Serializable
- case class HttpAbsolutePercentSplitDownstreamHodThreshold(percentThreshold: Double = 100.0, crossOver: Int = 0, absoluteThreshold: Int = Int.MaxValue, hysteresis: Double = 1.0, excludeSpikes: Int = 0, errorFilter: String = "status:>498", target: String = "", severity: AlertSeverity = AlertSeverity.Critical) extends Product with Serializable
- case class HttpAbsolutePercentSplitDownstreamServiceThreshold(percentThreshold: Double = 100.0, crossOver: Int = 0, absoluteThreshold: Int = Int.MaxValue, hysteresis: Double = 1.0, excludeSpikes: Int = 0, errorFilter: String = "status:>498", target: String = "", severity: AlertSeverity = AlertSeverity.Critical) extends Product with Serializable
- case class HttpAbsolutePercentSplitThreshold(percentThreshold: Double = 100.0, crossOver: Int = 0, absoluteThreshold: Int = Int.MaxValue, hysteresis: Double = 1.0, excludeSpikes: Int = 0, errorFilter: String = "status:>498", severity: AlertSeverity = AlertSeverity.Critical) extends Product with Serializable
- sealed trait HttpMethod extends AnyRef
- case class HttpStatusPercentThreshold(httpStatus: HTTP_STATUS, percentage: Double = 100.0, severity: AlertSeverity = AlertSeverity.Critical, httpMethod: HttpMethod = HttpMethod.All, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- case class HttpStatusThreshold(httpStatus: HTTP_STATUS, count: Int = 1, severity: AlertSeverity = AlertSeverity.Critical, httpMethod: HttpMethod = HttpMethod.All, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- case class HttpTrafficThreshold(warning: Option[Int], critical: Option[Int], maxMinutesBelowThreshold: Int = 5, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- case class LogMessageThreshold(message: String, count: Int, lessThanMode: Boolean = false, severity: AlertSeverity = AlertSeverity.Critical, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- class Logger extends AnyRef
- case class MetricsThreshold(name: String, query: String, warning: Option[Double] = None, critical: Option[Double] = None, invert: Boolean = false, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
- sealed trait Severity extends AnyRef
- case class TeamAlertConfigBuilder(services: Seq[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, http5xxRateIncrease: Seq[Http5xxRateIncrease] = Nil, metricsThresholds: Seq[MetricsThreshold] = Nil, logMessageThresholds: Seq[LogMessageThreshold] = Nil, totalHttpRequestThreshold: TotalHttpRequestThreshold = TotalHttpRequestThreshold(), averageCPUThreshold: AverageCPUThreshold = AverageCPUThreshold(), platformService: Boolean = false) extends Builder[Seq[AlertConfigBuilder]] with Product with Serializable
- case class TotalHttpRequestThreshold(count: Int = Int.MaxValue, alertingPlatform: AlertingPlatform = AlertingPlatform.Sensu) extends Product with Serializable
Value Members
- val alertSeverityFormat: JsonFormat[AlertSeverity]
- implicit val alertingPlatformFormat: JsonFormat[AlertingPlatform]
- val httpMethodFormat: JsonFormat[HttpMethod]
- val httpStatusFormat: JsonFormat[HTTP_STATUS]
- object AlertSeverity
- object AlertType
- object AlertingPlatform
- object AllEnvironmentAlertConfigBuilder
- object Environment
- object ExceptionThresholdProtocol
- object GrafanaMigration
- object Http5xxPercentThresholdProtocol
- object Http5xxRateIncreaseProtocol extends DefaultJsonProtocol
- object Http5xxThresholdProtocol
- object Http90PercentileResponseTimeThresholdProtocol
- object HttpAbsolutePercentSplitDownstreamHodThresholdProtocol
- object HttpAbsolutePercentSplitDownstreamServiceThresholdProtocol
- object HttpAbsolutePercentSplitThresholdProtocol
- object HttpMethod
- object HttpStatus
- object HttpStatusPercentThresholdProtocol
- object HttpStatusThresholdProtocol
- object HttpTrafficThresholdProtocol
- object LogMessageThresholdProtocol
- object MetricsThresholdProtocol extends DefaultJsonProtocol
- object ObjectScanner
- object Severity
- object TeamAlertConfigBuilder extends Serializable
- object ZoneToServiceDomainMapper