SiteMonitorProps
Properties for defining a SiteMonitor
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cms-sitemonitor
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcms"
&alicloudroscdkcms.SiteMonitorProps {
Address: interface{},
TaskName: interface{},
TaskType: interface{},
AlertIds: interface{},
Interval: interface{},
IspCities: interface{},
OptionsJson: interface{},
}
Properties
Name | Type | Description |
---|---|---|
Address |
interface{} |
Property address: The URL or IP address monitored by the monitoring task. |
TaskName |
interface{} |
Property taskName: The name of the site monitoring task. |
TaskType |
interface{} |
Property taskType: The protocol used by the site monitoring task. |
AlertIds |
interface{} |
Property alertIds:. |
Interval |
interface{} |
Property interval: The interval at which detection requests are sent. |
IspCities |
interface{} |
Property ispCities: The information about detection points, which is specified in a JSON array. |
OptionsJson |
interface{} |
Property optionsJson: The extended options of the protocol that is used by the site monitoring task. |
Address
Required
Address interface{}
- Type: interface{}
Property address: The URL or IP address monitored by the monitoring task.
TaskName
Required
TaskName interface{}
- Type: interface{}
Property taskName: The name of the site monitoring task.
The name must be 4 to 100 characters in length. It can contain letters, digits, and underscores (_).
TaskType
Required
TaskType interface{}
- Type: interface{}
Property taskType: The protocol used by the site monitoring task.
Valid values: HTTP, HTTPS, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
AlertIds
Optional
AlertIds interface{}
- Type: interface{}
Property alertIds:.
Interval
Optional
Interval interface{}
- Type: interface{}
Property interval: The interval at which detection requests are sent.
Valid values: 1, 5, and 15. Unit: minutes. Default value: 1.
IspCities
Optional
IspCities interface{}
- Type: interface{}
Property ispCities: The information about detection points, which is specified in a JSON array.
Example: [{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]. The three city codes represent Beijing, Hangzhou, and Qingdao. Note You can call the DescribeSiteMonitorISPCityList API operation to query the detection points that can be used to create site monitoring tasks. For more information, see DescribeSiteMonitorISPCityList . If this parameter is not specified, the system randomly selects three detection points for site monitoring.
OptionsJson
Optional
OptionsJson interface{}
- Type: interface{}
Property optionsJson: The extended options of the protocol that is used by the site monitoring task.
The options vary based on the protocol.