SiteMonitor
This resource provides a site monitor resource and it can be used to monitor public endpoints and websites. Details at https://www.alibabacloud.com/help/doc-detail/67907.htm
Available in 1.72.0+
Create a SiteMonitor Resource
new SiteMonitor(name: string, args: SiteMonitorArgs, opts?: CustomResourceOptions);def SiteMonitor(resource_name, opts=None, address=None, alert_ids=None, interval=None, isp_cities=None, options_json=None, task_name=None, task_type=None, __props__=None);func NewSiteMonitor(ctx *Context, name string, args SiteMonitorArgs, opts ...ResourceOption) (*SiteMonitor, error)public SiteMonitor(string name, SiteMonitorArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SiteMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SiteMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SiteMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SiteMonitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SiteMonitor resource accepts the following input properties:
- Address string
The URL or IP address monitored by the site monitoring task.
- Task
Name string The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- Task
Type string The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- Alert
Ids List<string> The IDs of existing alert rules to be associated with the site monitoring task.
- Interval int
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- Isp
Cities List<Pulumi.Ali Cloud. Cms. Inputs. Site Monitor Isp City Args> The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- Options
Json string The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
- Address string
The URL or IP address monitored by the site monitoring task.
- Task
Name string The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- Task
Type string The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- Alert
Ids []string The IDs of existing alert rules to be associated with the site monitoring task.
- Interval int
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- Isp
Cities []SiteMonitor Isp City The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- Options
Json string The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
- address string
The URL or IP address monitored by the site monitoring task.
- task
Name string The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task
Type string The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- alert
Ids string[] The IDs of existing alert rules to be associated with the site monitoring task.
- interval number
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- isp
Cities SiteMonitor Isp City[] The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- options
Json string The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
- address str
The URL or IP address monitored by the site monitoring task.
- task_
name str The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task_
type str The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- alert_
ids List[str] The IDs of existing alert rules to be associated with the site monitoring task.
- interval float
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- isp_
cities List[SiteMonitor Isp City] The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- options_
json str The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
Outputs
All input properties are implicitly available as output properties. Additionally, the SiteMonitor resource produces the following output properties:
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Task
State string - Update
Time string
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Task
State string - Update
Time string
- create
Time string - id string
- The provider-assigned unique ID for this managed resource.
- task
State string - update
Time string
- create_
time str - id str
- The provider-assigned unique ID for this managed resource.
- task_
state str - update_
time str
Look up an Existing SiteMonitor Resource
Get an existing SiteMonitor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SiteMonitorState, opts?: CustomResourceOptions): SiteMonitorstatic get(resource_name, id, opts=None, address=None, alert_ids=None, create_time=None, interval=None, isp_cities=None, options_json=None, task_name=None, task_state=None, task_type=None, update_time=None, __props__=None);func GetSiteMonitor(ctx *Context, name string, id IDInput, state *SiteMonitorState, opts ...ResourceOption) (*SiteMonitor, error)public static SiteMonitor Get(string name, Input<string> id, SiteMonitorState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Address string
The URL or IP address monitored by the site monitoring task.
- Alert
Ids List<string> The IDs of existing alert rules to be associated with the site monitoring task.
- Create
Time string - Interval int
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- Isp
Cities List<Pulumi.Ali Cloud. Cms. Inputs. Site Monitor Isp City Args> The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- Options
Json string The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
- Task
Name string The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- Task
State string - Task
Type string The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- Update
Time string
- Address string
The URL or IP address monitored by the site monitoring task.
- Alert
Ids []string The IDs of existing alert rules to be associated with the site monitoring task.
- Create
Time string - Interval int
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- Isp
Cities []SiteMonitor Isp City The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- Options
Json string The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
- Task
Name string The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- Task
State string - Task
Type string The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- Update
Time string
- address string
The URL or IP address monitored by the site monitoring task.
- alert
Ids string[] The IDs of existing alert rules to be associated with the site monitoring task.
- create
Time string - interval number
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- isp
Cities SiteMonitor Isp City[] The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- options
Json string The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
- task
Name string The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task
State string - task
Type string The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- update
Time string
- address str
The URL or IP address monitored by the site monitoring task.
- alert_
ids List[str] The IDs of existing alert rules to be associated with the site monitoring task.
- create_
time str - interval float
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, and 15. Default value: 1.
- isp_
cities List[SiteMonitor Isp City] The detection points in a JSON array. For example,
[{"city":"546","isp":"465"},{"city":"572","isp":"465"},{"city":"738","isp":"465"}]indicates the detection points in Beijing, Hangzhou, and Qingdao respectively. You can call the DescribeSiteMonitorISPCityList operation to query detection point information. If this parameter is not specified, three detection points will be chosen randomly for monitoring.- options_
json str The extended options of the protocol of the site monitoring task. The options vary according to the protocol.
- task_
name str The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task_
state str - task_
type str The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, Ping, TCP, UDP, DNS, SMTP, POP3, and FTP.
- update_
time str
Supporting Types
SiteMonitorIspCity
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.