Skip to content

Commit

Permalink
Merge pull request #2261 from kayrus/octavia-new-monitors
Browse files Browse the repository at this point in the history
octavia: add new pool monitor types
  • Loading branch information
EmilienM committed Nov 5, 2021
2 parents 3889f57 + 102e0d9 commit 2cf8e4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 7 additions & 4 deletions openstack/loadbalancer/v2/monitors/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager {

// Constants that represent approved monitoring types.
const (
TypePING = "PING"
TypeTCP = "TCP"
TypeHTTP = "HTTP"
TypeHTTPS = "HTTPS"
TypePING = "PING"
TypeTCP = "TCP"
TypeHTTP = "HTTP"
TypeHTTPS = "HTTPS"
TypeTLSHELLO = "TLS-HELLO"
TypeUDPConnect = "UDP-CONNECT"
TypeSCTP = "SCTP"
)

var (
Expand Down
5 changes: 4 additions & 1 deletion openstack/loadbalancer/v2/monitors/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type PoolID struct {
// TCP: used to connect to the members using TCP.
// HTTP: used to send an HTTP request to the member.
// HTTPS: used to send a secure HTTP request to the member.
// TLS-HELLO: used to send TLS-HELLO request to the member.
// UDP-CONNECT: used to send UDP-CONNECT request to the member.
// SCTP: used to send SCTP request to the member.
//
// When a pool has several monitors associated with it, each member of the pool
// is monitored by all these monitors. If any monitor declares the member as
Expand All @@ -35,7 +38,7 @@ type Monitor struct {
ProjectID string `json:"project_id"`

// The type of probe sent by the load balancer to verify the member state,
// which is PING, TCP, HTTP, or HTTPS.
// which is PING, TCP, HTTP, HTTPS, TLS-HELLO, UDP-CONNECT or SCTP.
Type string `json:"type"`

// The time, in seconds, between sending probes to members.
Expand Down

0 comments on commit 2cf8e4c

Please sign in to comment.