public class VpcHealthConfigInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VpcHealthConfigInfo.MethodEnum
健康检查时的请求方法
|
static class |
VpcHealthConfigInfo.ProtocolEnum
使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
|
static class |
VpcHealthConfigInfo.StatusEnum
健康检查状态 - 1:可用 - 2:不可用
|
| Constructor and Description |
|---|
VpcHealthConfigInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
java.time.OffsetDateTime |
getCreateTime()
创建时间
|
Boolean |
getEnableClientSsl()
是否开启双向认证。若开启,则使用实例配置中的backend_client_certificate配置项的证书
|
String |
getHttpCode()
检查目标HTTP响应时,判断成功使用的HTTP响应码。取值范围为100到599之前的任意整数值,支持如下三种格式: - 多个值,如:200,201,202 - 一系列值,如:200-299 - 组合值,如:201,202,210-299 protocol = http时必选
|
String |
getId()
健康检查的编号
|
VpcHealthConfigInfo.MethodEnum |
getMethod()
健康检查时的请求方法
|
String |
getPath()
健康检查时的目标路径。protocol = http或https时必选
|
Integer |
getPort()
健康检查的目标端口,缺少或port = 0时为VPC中主机的端口号。 若此端口存在非0值,则使用此端口进行健康检查。
minimum: 0
maximum: 65535
|
VpcHealthConfigInfo.ProtocolEnum |
getProtocol()
使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
|
VpcHealthConfigInfo.StatusEnum |
getStatus()
健康检查状态 - 1:可用 - 2:不可用
|
Integer |
getThresholdAbnormal()
异常阙值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
minimum: 2
maximum: 10
|
Integer |
getThresholdNormal()
正常阈值。判定VPC通道中主机正常的依据为:连续检查x成功,x为您设置的正常阈值。
minimum: 2
maximum: 10
|
Integer |
getTimeInterval()
间隔时间:连续两次检查的间隔时间,单位为秒。必须大于timeout字段取值。
minimum: 5
maximum: 300
|
Integer |
getTimeout()
超时时间:检查期间,无响应的时间,单位为秒。必须小于time_interval字段取值。
minimum: 2
maximum: 30
|
String |
getVpcChannelId()
VPC通道的编号
|
int |
hashCode() |
void |
setCreateTime(java.time.OffsetDateTime createTime) |
void |
setEnableClientSsl(Boolean enableClientSsl) |
void |
setHttpCode(String httpCode) |
void |
setId(String id) |
void |
setMethod(VpcHealthConfigInfo.MethodEnum method) |
void |
setPath(String path) |
void |
setPort(Integer port) |
void |
setProtocol(VpcHealthConfigInfo.ProtocolEnum protocol) |
void |
setStatus(VpcHealthConfigInfo.StatusEnum status) |
void |
setThresholdAbnormal(Integer thresholdAbnormal) |
void |
setThresholdNormal(Integer thresholdNormal) |
void |
setTimeInterval(Integer timeInterval) |
void |
setTimeout(Integer timeout) |
void |
setVpcChannelId(String vpcChannelId) |
String |
toString() |
VpcHealthConfigInfo |
withCreateTime(java.time.OffsetDateTime createTime) |
VpcHealthConfigInfo |
withEnableClientSsl(Boolean enableClientSsl) |
VpcHealthConfigInfo |
withHttpCode(String httpCode) |
VpcHealthConfigInfo |
withId(String id) |
VpcHealthConfigInfo |
withMethod(VpcHealthConfigInfo.MethodEnum method) |
VpcHealthConfigInfo |
withPath(String path) |
VpcHealthConfigInfo |
withPort(Integer port) |
VpcHealthConfigInfo |
withProtocol(VpcHealthConfigInfo.ProtocolEnum protocol) |
VpcHealthConfigInfo |
withStatus(VpcHealthConfigInfo.StatusEnum status) |
VpcHealthConfigInfo |
withThresholdAbnormal(Integer thresholdAbnormal) |
VpcHealthConfigInfo |
withThresholdNormal(Integer thresholdNormal) |
VpcHealthConfigInfo |
withTimeInterval(Integer timeInterval) |
VpcHealthConfigInfo |
withTimeout(Integer timeout) |
VpcHealthConfigInfo |
withVpcChannelId(String vpcChannelId) |
public VpcHealthConfigInfo withProtocol(VpcHealthConfigInfo.ProtocolEnum protocol)
public VpcHealthConfigInfo.ProtocolEnum getProtocol()
public void setProtocol(VpcHealthConfigInfo.ProtocolEnum protocol)
public VpcHealthConfigInfo withPath(String path)
public String getPath()
public void setPath(String path)
public VpcHealthConfigInfo withMethod(VpcHealthConfigInfo.MethodEnum method)
public VpcHealthConfigInfo.MethodEnum getMethod()
public void setMethod(VpcHealthConfigInfo.MethodEnum method)
public VpcHealthConfigInfo withPort(Integer port)
public Integer getPort()
public void setPort(Integer port)
public VpcHealthConfigInfo withThresholdNormal(Integer thresholdNormal)
public Integer getThresholdNormal()
public void setThresholdNormal(Integer thresholdNormal)
public VpcHealthConfigInfo withThresholdAbnormal(Integer thresholdAbnormal)
public Integer getThresholdAbnormal()
public void setThresholdAbnormal(Integer thresholdAbnormal)
public VpcHealthConfigInfo withTimeInterval(Integer timeInterval)
public Integer getTimeInterval()
public void setTimeInterval(Integer timeInterval)
public VpcHealthConfigInfo withHttpCode(String httpCode)
public String getHttpCode()
public void setHttpCode(String httpCode)
public VpcHealthConfigInfo withEnableClientSsl(Boolean enableClientSsl)
public Boolean getEnableClientSsl()
public void setEnableClientSsl(Boolean enableClientSsl)
public VpcHealthConfigInfo withStatus(VpcHealthConfigInfo.StatusEnum status)
public VpcHealthConfigInfo.StatusEnum getStatus()
public void setStatus(VpcHealthConfigInfo.StatusEnum status)
public VpcHealthConfigInfo withTimeout(Integer timeout)
public Integer getTimeout()
public void setTimeout(Integer timeout)
public VpcHealthConfigInfo withVpcChannelId(String vpcChannelId)
public String getVpcChannelId()
public void setVpcChannelId(String vpcChannelId)
public VpcHealthConfigInfo withId(String id)
public String getId()
public void setId(String id)
public VpcHealthConfigInfo withCreateTime(java.time.OffsetDateTime createTime)
public java.time.OffsetDateTime getCreateTime()
public void setCreateTime(java.time.OffsetDateTime createTime)
Copyright © 2022. All rights reserved.