public class CreateApplicationMonitorRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
acceleratorId
The ID of the GA instance on which to execute the origin probing task.
|
String |
address
The URL or IP address that you want to probe.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
detectEnable
Specifies whether to enable the automatic diagnostics feature.
|
Integer |
detectThreshold
The threshold that is used to trigger the automatic diagnostics feature.
|
Integer |
detectTimes
The number of times that are required to reach the threshold before the automatic diagnostics feature can be triggered.
|
String |
listenerId
The ID of the listener on which to execute the origin probing task.
|
String |
optionsJson
The extended options of the listener protocol that is used by the origin probing task.
|
String |
regionId
The ID of the region where the GA instance is deployed.
|
Integer |
silenceTime
The silence period of the automatic diagnostics feature.
|
String |
taskName
The name of the origin probing task.
|
| 构造器和说明 |
|---|
CreateApplicationMonitorRequest() |
@NameInMap(value="AcceleratorId") public String acceleratorId
The ID of the GA instance on which to execute the origin probing task.
@NameInMap(value="Address") public String address
The URL or IP address that you want to probe.
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must make sure that it is unique among different requests. ClientToken can contain only ASCII characters.
> If you do not set this parameter, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** may be different for each API request.
@NameInMap(value="DetectEnable") public Boolean detectEnable
Specifies whether to enable the automatic diagnostics feature. Default value: false. Valid values:
* **true**: yes
* **false**: no
@NameInMap(value="DetectThreshold") public Integer detectThreshold
The threshold that is used to trigger the automatic diagnostics feature. Unit: %.
Valid values: **0** to **100**.
The default value is **0**, which indicates that the automatic diagnostics feature is not triggered.
@NameInMap(value="DetectTimes") public Integer detectTimes
The number of times that are required to reach the threshold before the automatic diagnostics feature can be triggered.
Valid values: **1** to **20**. Default value: **1**.
@NameInMap(value="ListenerId") public String listenerId
The ID of the listener on which to execute the origin probing task.
@NameInMap(value="OptionsJson") public String optionsJson
The extended options of the listener protocol that is used by the origin probing task. The options vary based on the listener protocol.
@NameInMap(value="RegionId") public String regionId
The ID of the region where the GA instance is deployed. Set the value to **cn-hangzhou**.
@NameInMap(value="SilenceTime") public Integer silenceTime
The silence period of the automatic diagnostics feature. This parameter specifies the interval at which the automatic diagnostics feature is triggered. If the availability rate does not return to normal after GA triggers an automatic diagnostic, GA must wait until the silence period ends before GA can trigger another automatic diagnostic.
If the number of consecutive times that the availability rate drops below the threshold of automatic diagnostics reaches the value of the **DetectTimes** parameter, the automatic diagnostics feature is triggered. The automatic diagnostics feature is not triggered again within the silence period even if the availability rate stays below the threshold. If the availability rate does not return to normal after the silence period ends, the automatic diagnostics feature is triggered again.
Unit: seconds. Valid values: **300** to **86400**. Default value: **300**.
@NameInMap(value="TaskName") public String taskName
The name of the origin probing task.
The name must be 4 to 100 characters in length, and can contain digits, underscores (\_), and hyphens (-). It must start with a letter.
public static CreateApplicationMonitorRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateApplicationMonitorRequest setAcceleratorId(String acceleratorId)
public String getAcceleratorId()
public CreateApplicationMonitorRequest setAddress(String address)
public String getAddress()
public CreateApplicationMonitorRequest setClientToken(String clientToken)
public String getClientToken()
public CreateApplicationMonitorRequest setDetectEnable(Boolean detectEnable)
public Boolean getDetectEnable()
public CreateApplicationMonitorRequest setDetectThreshold(Integer detectThreshold)
public Integer getDetectThreshold()
public CreateApplicationMonitorRequest setDetectTimes(Integer detectTimes)
public Integer getDetectTimes()
public CreateApplicationMonitorRequest setListenerId(String listenerId)
public String getListenerId()
public CreateApplicationMonitorRequest setOptionsJson(String optionsJson)
public String getOptionsJson()
public CreateApplicationMonitorRequest setRegionId(String regionId)
public String getRegionId()
public CreateApplicationMonitorRequest setSilenceTime(Integer silenceTime)
public Integer getSilenceTime()
public CreateApplicationMonitorRequest setTaskName(String taskName)
public String getTaskName()
Copyright © 2023. All rights reserved.