Skip to content

Commit fe94e7d

Browse files
authored
Merge pull request #3181 from gophercloud/bp-v2-11a3fcc
[v2] octavia: add new options to health monitors
2 parents 5e42478 + 8e1a5ba commit fe94e7d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

openstack/loadbalancer/v2/monitors/requests.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ type CreateOpts struct {
119119
// is not specified, it defaults to "GET". Required for HTTP(S) types.
120120
HTTPMethod string `json:"http_method,omitempty"`
121121

122+
// The HTTP version. One of 1.0 or 1.1. The default is 1.0. New in
123+
// version 2.10.
124+
HTTPVersion string `json:"http_version,omitempty"`
125+
122126
// Expected HTTP codes for a passing HTTP(S) Monitor. You can either specify
123127
// a single status like "200", a range like "200-202", or a combination like
124128
// "200-202, 401".
@@ -139,6 +143,10 @@ type CreateOpts struct {
139143
// or false (DOWN).
140144
AdminStateUp *bool `json:"admin_state_up,omitempty"`
141145

146+
// The domain name, which be injected into the HTTP Host Header to the
147+
// backend server for HTTP health check. New in version 2.10
148+
DomainName string `json:"domain_name,omitempty"`
149+
142150
// Tags is a set of resource tags. New in version 2.5
143151
Tags []string `json:"tags,omitempty"`
144152
}
@@ -213,6 +221,10 @@ type UpdateOpts struct {
213221
// is not specified, it defaults to "GET". Required for HTTP(S) types.
214222
HTTPMethod string `json:"http_method,omitempty"`
215223

224+
// The HTTP version. One of 1.0 or 1.1. The default is 1.0. New in
225+
// version 2.10.
226+
HTTPVersion *string `json:"http_version,omitempty"`
227+
216228
// Expected HTTP codes for a passing HTTP(S) Monitor. You can either specify
217229
// a single status like "200", or a range like "200-202". Required for HTTP(S)
218230
// types.
@@ -221,6 +233,10 @@ type UpdateOpts struct {
221233
// The Name of the Monitor.
222234
Name *string `json:"name,omitempty"`
223235

236+
// The domain name, which be injected into the HTTP Host Header to the
237+
// backend server for HTTP health check. New in version 2.10
238+
DomainName *string `json:"domain_name,omitempty"`
239+
224240
// The administrative state of the Monitor. A valid value is true (UP)
225241
// or false (DOWN).
226242
AdminStateUp *bool `json:"admin_state_up,omitempty"`

openstack/loadbalancer/v2/monitors/results.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,19 @@ type Monitor struct {
6060
// The HTTP method that the monitor uses for requests.
6161
HTTPMethod string `json:"http_method"`
6262

63+
// The HTTP version that the monitor uses for requests.
64+
HTTPVersion string `json:"http_version"`
65+
6366
// The HTTP path of the request sent by the monitor to test the health of a
6467
// member. Must be a string beginning with a forward slash (/).
6568
URLPath string `json:"url_path" `
6669

6770
// Expected HTTP codes for a passing HTTP(S) monitor.
6871
ExpectedCodes string `json:"expected_codes"`
6972

73+
// The HTTP host header that the monitor uses for requests.
74+
DomainName string `json:"domain_name"`
75+
7076
// The administrative state of the health monitor, which is up (true) or
7177
// down (false).
7278
AdminStateUp bool `json:"admin_state_up"`

0 commit comments

Comments
 (0)