c

uk.gov.hmrc.alertconfig.builder.custom

CustomHttpEndpointAlert

case class CustomHttpEndpointAlert(checkIntervalMinutes: Option[CheckIntervalMinutes] = None, checkName: String, componentName: String, cronCheckSchedule: String, environmentsEnabled: EnvironmentsEnabled, expectedHttpStatusCode: Option[Int] = None, expectedStringInResponse: Option[String] = None, httpEndpoint: String, integrations: Seq[String], pendingPeriodMinutes: Option[Int] = None, queryTimeRangeMinutes: TimeRangeAsMinutes = TimeRangeAsMinutes.ONE_HOUR, runbookUrl: Option[String], severity: CustomAlertSeverity.AlertSeverity, summary: String, teamName: String) extends CustomAlert with Product with Serializable

This alert will notify when it fails to receive the expected response (status code and/or string pattern) from the given endpoint

checkIntervalMinutes

Number of minutes between each check. See CheckIntervalMinutes for supported values

checkName

Name to be used in the metric path. Only lowercase letters and - are allowed: ^[a-z-]+$

componentName

The name of the component you are testing. e.g. jira / proxy / sensu / mongo. Only lowercase letters and - are allowed: ^[a-z-]+$

cronCheckSchedule

The cron schedule for how often the endpoint will be checked creating a metric data point.

environmentsEnabled

The specific environments to enable this alert in

expectedHttpStatusCode

The HTTP status code expected from the endpoint.

expectedStringInResponse

A substring that is expect in the endpoint's response.

httpEndpoint

The HTTP endpoint to be checked.

integrations

Which PagerDuty integrations to direct this alert to

pendingPeriodMinutes

Amount of time in minutes that a threshold needs to be breached before the alert fires

queryTimeRangeMinutes

The sample period to check data for. If you set it to FIVE_MINUTES, the alert check will evaluate data starting from 6 minutes ago until one minute ago (so that only fully shipped metrics are evaluated).

runbookUrl

Runbook for when this alert fires

severity

The severity level of the alert (critical or warning). Defaults to critical.

summary

The description to populate in PagerDuty when the alert fires

teamName

All alerts are prefixed with the team name

Annotations
@JsonFilter()
Linear Supertypes
Serializable, Product, Equals, CustomAlert, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CustomHttpEndpointAlert
  2. Serializable
  3. Product
  4. Equals
  5. CustomAlert
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CustomHttpEndpointAlert(checkIntervalMinutes: Option[CheckIntervalMinutes] = None, checkName: String, componentName: String, cronCheckSchedule: String, environmentsEnabled: EnvironmentsEnabled, expectedHttpStatusCode: Option[Int] = None, expectedStringInResponse: Option[String] = None, httpEndpoint: String, integrations: Seq[String], pendingPeriodMinutes: Option[Int] = None, queryTimeRangeMinutes: TimeRangeAsMinutes = TimeRangeAsMinutes.ONE_HOUR, runbookUrl: Option[String], severity: CustomAlertSeverity.AlertSeverity, summary: String, teamName: String)

    checkIntervalMinutes

    Number of minutes between each check. See CheckIntervalMinutes for supported values

    checkName

    Name to be used in the metric path. Only lowercase letters and - are allowed: ^[a-z-]+$

    componentName

    The name of the component you are testing. e.g. jira / proxy / sensu / mongo. Only lowercase letters and - are allowed: ^[a-z-]+$

    cronCheckSchedule

    The cron schedule for how often the endpoint will be checked creating a metric data point.

    environmentsEnabled

    The specific environments to enable this alert in

    expectedHttpStatusCode

    The HTTP status code expected from the endpoint.

    expectedStringInResponse

    A substring that is expect in the endpoint's response.

    httpEndpoint

    The HTTP endpoint to be checked.

    integrations

    Which PagerDuty integrations to direct this alert to

    pendingPeriodMinutes

    Amount of time in minutes that a threshold needs to be breached before the alert fires

    queryTimeRangeMinutes

    The sample period to check data for. If you set it to FIVE_MINUTES, the alert check will evaluate data starting from 6 minutes ago until one minute ago (so that only fully shipped metrics are evaluated).

    runbookUrl

    Runbook for when this alert fires

    severity

    The severity level of the alert (critical or warning). Defaults to critical.

    summary

    The description to populate in PagerDuty when the alert fires

    teamName

    All alerts are prefixed with the team name

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 checkIntervalMinutes: Option[CheckIntervalMinutes]
  6. val checkName: String
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. val componentName: String
  9. val cronCheckSchedule: String
  10. val environmentsEnabled: EnvironmentsEnabled
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val expectedHttpStatusCode: Option[Int]
  13. val expectedStringInResponse: Option[String]
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. val httpEndpoint: String
  16. val integrations: Seq[String]
    Definition Classes
    CustomHttpEndpointAlertCustomAlert
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. val pendingPeriodMinutes: Option[Int]
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. val queryTimeRangeMinutes: TimeRangeAsMinutes
  24. val runbookUrl: Option[String]
  25. val severity: CustomAlertSeverity.AlertSeverity
    Definition Classes
    CustomHttpEndpointAlertCustomAlert
  26. val summary: String
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. val teamName: String
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 CustomAlert

Inherited from AnyRef

Inherited from Any

Ungrouped