/
update_health_checker_details.go
80 lines (64 loc) · 3.21 KB
/
update_health_checker_details.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Load Balancing API
//
// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more
// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm).
//
package loadbalancer
import (
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)
// UpdateHealthCheckerDetails The health checker's configuration details.
type UpdateHealthCheckerDetails struct {
// The protocol the health check must use; either HTTP or TCP.
// Example: `HTTP`
Protocol *string `mandatory:"true" json:"protocol"`
// The backend server port against which to run the health check.
// Example: `8080`
Port *int `mandatory:"true" json:"port"`
// The status code a healthy backend server should return.
// Example: `200`
ReturnCode *int `mandatory:"true" json:"returnCode"`
// The number of retries to attempt before a backend server is considered "unhealthy". This number also applies
// when recovering a server to the "healthy" state.
// Example: `3`
Retries *int `mandatory:"true" json:"retries"`
// The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply
// returns within this timeout period.
// Example: `3000`
TimeoutInMillis *int `mandatory:"true" json:"timeoutInMillis"`
// The interval between health checks, in milliseconds.
// Example: `10000`
IntervalInMillis *int `mandatory:"true" json:"intervalInMillis"`
// A regular expression for parsing the response body from the backend server.
// Example: `^((?!false).|\s)*$`
ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"`
// The path against which to run the health check.
// Example: `/healthcheck`
UrlPath *string `mandatory:"false" json:"urlPath"`
// Specifies if health checks should always be done using plain text instead of depending on
// whether or not the associated backend set is using SSL.
// If "true", health checks will be done using plain text even if the associated backend set is configured
// to use SSL.
// If "false", health checks will be done using SSL encryption if the associated backend set is configured
// to use SSL. If the backend set is not so configured the health checks will be done using plain text.
// Example: `true`
IsForcePlainText *bool `mandatory:"false" json:"isForcePlainText"`
}
func (m UpdateHealthCheckerDetails) String() string {
return common.PointerString(m)
}
// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m UpdateHealthCheckerDetails) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}