Fugue.AWS.ELB.HealthCheck

This is the preferred interface for creating ELB Health Checks with Fugue. The new function is the best place to start.

Module Members

http

(Function)

Type Signature

 fun (HttpSpec) -> HealthCheck
Argument: spec
Type: HttpSpec
Returns:
Type: HealthCheck

https

(Function)

Type Signature

 fun (HttpSpec) -> HealthCheck
Argument: spec
Type: HttpSpec
Returns:
Type: HealthCheck

new

(Function)

new ELB Health Check (Constructor)

Call this constructor to create a new Fugue.Core.AWS.ELB.HealthCheck value.

You can use this function directly, but the tcp, ssl, http, and https functions in this module are preferred.

Type Signature

 fun { interval: Int,
       timeout: Int,
       unhealthyThreshold: Int,
       healthyThreshold: Int,
       protocol: Protocol,
       port: Int,
       path: Optional<String> } -> HealthCheck
Argument: interval
Type: Int
Argument: timeout
Type: Int
Argument: unhealthyThreshold
Type: Int
Argument: healthyThreshold
Type: Int
Argument: protocol
Type: Protocol
Argument: port
Type: Int
Argument: path
Type: Optional<String>
Returns:

A Fugue.Core.AWS.ELB.HealthCheck value.

Type: HealthCheck

ssl

(Function)

Type Signature

 fun (TcpSpec) -> HealthCheck
Argument: spec
Type: TcpSpec
Returns:
Type: HealthCheck

tcp

(Function)

This is an alternative constructor for HealthChecks.

Example usage:

healthCheck: ELB.HealthCheck.tcp {
  port: 3000,
  interval: 15,
  timeout: 3,
  unhealthyThreshold: 3,
  healthyThreshold: 3
}

Type Signature

 fun (TcpSpec) -> HealthCheck
Argument: spec
Type: TcpSpec
Returns:
Type: HealthCheck

HealthCheckSpec

(Type)

type HealthCheckSpec:
  interval: Int
  timeout: Int
  unhealthyThreshold: Int
  healthyThreshold: Int
  protocol: Protocol
  port: Int
  path: Optional<String>

ELB Health Check Specification (Resource)

This type of value specifies an ELB Health Check for the HealthCheck. new() constructor.

Record {

Field: interval

The interval to wait between health check attempts.

Type: Int

Field: timeout

The amount of time to wait for a response to a health check test before declaring the health check failed.

Type: Int

Field: unhealthyThreshold

The number of failed health checks at which to mark an instance “unhealthy,” which means that requests are not forwarded to it.

Type: Int

Field: healthyThreshold

The number of successful health checks at which to mark an instance “healthy,” which means that requests are forwarded to it.

Type: Int

Field: protocol

The protocol to use for health check tests.

Type: Protocol

Field: port

The port to use for health check tests.

Type: Int

Field: path

The URL to use for HTTP health check tests. This is required when the health check protocol is HTTP or HTTPS.

Type: Optional<String>

}

HttpSpec

(Type)

type HttpSpec:
  Spec<{path: String}>

Spec<{path: Ludwig.String}>

Spec

(Type)

type Spec<a>:
  {
    interval: Int,
    timeout: Int,
    unhealthyThreshold: Int,
    healthyThreshold: Int,
    port: Int,
    a
  }

Record {

Field: interval
Type: Int
Field: timeout
Type: Int
Field: unhealthyThreshold
Type: Int
Field: healthyThreshold
Type: Int
Field: port
Type: Int

}

TcpSpec

(Type)

type TcpSpec:
  Spec<()>

Spec<{}>

default

(Value)

default:
  interval: 30
  timeout: 5
  unhealthyThreshold: 2
  healthyThreshold: 10

ELB Health Check Specification (Default Values)

Defaults taken from: http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html#health-check-configuration.