1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cms
  5. SiteMonitor
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.cms.SiteMonitor

Explore with Pulumi AI

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

NOTE: Available since v1.72.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const basic = new alicloud.cms.SiteMonitor("basic", {
    address: "http://www.alibabacloud.com",
    taskName: "tf-example",
    taskType: "HTTP",
    interval: 5,
    ispCities: [{
        city: "546",
        isp: "465",
    }],
    optionsJson: `{
    "http_method": "get",
    "waitTime_after_completion": null,
    "ipv6_task": false,
    "diagnosis_ping": false,
    "diagnosis_mtr": false,
    "assertions": [
        {
            "operator": "lessThan",
            "type": "response_time",
            "target": 1000
        }
    ],
    "time_out": 30000
}
`,
});
Copy
import pulumi
import pulumi_alicloud as alicloud

basic = alicloud.cms.SiteMonitor("basic",
    address="http://www.alibabacloud.com",
    task_name="tf-example",
    task_type="HTTP",
    interval=5,
    isp_cities=[{
        "city": "546",
        "isp": "465",
    }],
    options_json="""{
    "http_method": "get",
    "waitTime_after_completion": null,
    "ipv6_task": false,
    "diagnosis_ping": false,
    "diagnosis_mtr": false,
    "assertions": [
        {
            "operator": "lessThan",
            "type": "response_time",
            "target": 1000
        }
    ],
    "time_out": 30000
}
""")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cms.NewSiteMonitor(ctx, "basic", &cms.SiteMonitorArgs{
			Address:  pulumi.String("http://www.alibabacloud.com"),
			TaskName: pulumi.String("tf-example"),
			TaskType: pulumi.String("HTTP"),
			Interval: pulumi.Int(5),
			IspCities: cms.SiteMonitorIspCityArray{
				&cms.SiteMonitorIspCityArgs{
					City: pulumi.String("546"),
					Isp:  pulumi.String("465"),
				},
			},
			OptionsJson: pulumi.String(`{
    "http_method": "get",
    "waitTime_after_completion": null,
    "ipv6_task": false,
    "diagnosis_ping": false,
    "diagnosis_mtr": false,
    "assertions": [
        {
            "operator": "lessThan",
            "type": "response_time",
            "target": 1000
        }
    ],
    "time_out": 30000
}
`),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var basic = new AliCloud.Cms.SiteMonitor("basic", new()
    {
        Address = "http://www.alibabacloud.com",
        TaskName = "tf-example",
        TaskType = "HTTP",
        Interval = 5,
        IspCities = new[]
        {
            new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs
            {
                City = "546",
                Isp = "465",
            },
        },
        OptionsJson = @"{
    ""http_method"": ""get"",
    ""waitTime_after_completion"": null,
    ""ipv6_task"": false,
    ""diagnosis_ping"": false,
    ""diagnosis_mtr"": false,
    ""assertions"": [
        {
            ""operator"": ""lessThan"",
            ""type"": ""response_time"",
            ""target"": 1000
        }
    ],
    ""time_out"": 30000
}
",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.SiteMonitor;
import com.pulumi.alicloud.cms.SiteMonitorArgs;
import com.pulumi.alicloud.cms.inputs.SiteMonitorIspCityArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var basic = new SiteMonitor("basic", SiteMonitorArgs.builder()
            .address("http://www.alibabacloud.com")
            .taskName("tf-example")
            .taskType("HTTP")
            .interval(5)
            .ispCities(SiteMonitorIspCityArgs.builder()
                .city("546")
                .isp("465")
                .build())
            .optionsJson("""
{
    "http_method": "get",
    "waitTime_after_completion": null,
    "ipv6_task": false,
    "diagnosis_ping": false,
    "diagnosis_mtr": false,
    "assertions": [
        {
            "operator": "lessThan",
            "type": "response_time",
            "target": 1000
        }
    ],
    "time_out": 30000
}
            """)
            .build());

    }
}
Copy
resources:
  basic:
    type: alicloud:cms:SiteMonitor
    properties:
      address: http://www.alibabacloud.com
      taskName: tf-example
      taskType: HTTP
      interval: 5
      ispCities:
        - city: '546'
          isp: '465'
      optionsJson: |
        {
            "http_method": "get",
            "waitTime_after_completion": null,
            "ipv6_task": false,
            "diagnosis_ping": false,
            "diagnosis_mtr": false,
            "assertions": [
                {
                    "operator": "lessThan",
                    "type": "response_time",
                    "target": 1000
                }
            ],
            "time_out": 30000
        }        
Copy

Create SiteMonitor Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SiteMonitor(name: string, args: SiteMonitorArgs, opts?: CustomResourceOptions);
@overload
def SiteMonitor(resource_name: str,
                args: SiteMonitorArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def SiteMonitor(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                address: Optional[str] = None,
                task_name: Optional[str] = None,
                task_type: Optional[str] = None,
                alert_ids: Optional[Sequence[str]] = None,
                interval: Optional[int] = None,
                isp_cities: Optional[Sequence[SiteMonitorIspCityArgs]] = None,
                options_json: Optional[str] = None)
func NewSiteMonitor(ctx *Context, name string, args SiteMonitorArgs, opts ...ResourceOption) (*SiteMonitor, error)
public SiteMonitor(string name, SiteMonitorArgs args, CustomResourceOptions? opts = null)
public SiteMonitor(String name, SiteMonitorArgs args)
public SiteMonitor(String name, SiteMonitorArgs args, CustomResourceOptions options)
type: alicloud:cms:SiteMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SiteMonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SiteMonitorArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SiteMonitorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SiteMonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SiteMonitorArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var siteMonitorResource = new AliCloud.Cms.SiteMonitor("siteMonitorResource", new()
{
    Address = "string",
    TaskName = "string",
    TaskType = "string",
    AlertIds = new[]
    {
        "string",
    },
    Interval = 0,
    IspCities = new[]
    {
        new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs
        {
            City = "string",
            Isp = "string",
        },
    },
    OptionsJson = "string",
});
Copy
example, err := cms.NewSiteMonitor(ctx, "siteMonitorResource", &cms.SiteMonitorArgs{
	Address:  pulumi.String("string"),
	TaskName: pulumi.String("string"),
	TaskType: pulumi.String("string"),
	AlertIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	Interval: pulumi.Int(0),
	IspCities: cms.SiteMonitorIspCityArray{
		&cms.SiteMonitorIspCityArgs{
			City: pulumi.String("string"),
			Isp:  pulumi.String("string"),
		},
	},
	OptionsJson: pulumi.String("string"),
})
Copy
var siteMonitorResource = new SiteMonitor("siteMonitorResource", SiteMonitorArgs.builder()
    .address("string")
    .taskName("string")
    .taskType("string")
    .alertIds("string")
    .interval(0)
    .ispCities(SiteMonitorIspCityArgs.builder()
        .city("string")
        .isp("string")
        .build())
    .optionsJson("string")
    .build());
Copy
site_monitor_resource = alicloud.cms.SiteMonitor("siteMonitorResource",
    address="string",
    task_name="string",
    task_type="string",
    alert_ids=["string"],
    interval=0,
    isp_cities=[{
        "city": "string",
        "isp": "string",
    }],
    options_json="string")
Copy
const siteMonitorResource = new alicloud.cms.SiteMonitor("siteMonitorResource", {
    address: "string",
    taskName: "string",
    taskType: "string",
    alertIds: ["string"],
    interval: 0,
    ispCities: [{
        city: "string",
        isp: "string",
    }],
    optionsJson: "string",
});
Copy
type: alicloud:cms:SiteMonitor
properties:
    address: string
    alertIds:
        - string
    interval: 0
    ispCities:
        - city: string
          isp: string
    optionsJson: string
    taskName: string
    taskType: string
Copy

SiteMonitor Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SiteMonitor resource accepts the following input properties:

Address This property is required. string
The URL or IP address monitored by the site monitoring task.
TaskName This property is required. 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.
TaskType
This property is required.
Changes to this property will trigger replacement.
string
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
AlertIds 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, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
IspCities List<Pulumi.AliCloud.Cms.Inputs.SiteMonitorIspCity>
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. See isp_cities below.
OptionsJson string
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
Address This property is required. string
The URL or IP address monitored by the site monitoring task.
TaskName This property is required. 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.
TaskType
This property is required.
Changes to this property will trigger replacement.
string
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
AlertIds []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, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
IspCities []SiteMonitorIspCityArgs
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. See isp_cities below.
OptionsJson string
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
address This property is required. String
The URL or IP address monitored by the site monitoring task.
taskName This property is required. 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.
taskType
This property is required.
Changes to this property will trigger replacement.
String
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
alertIds List<String>
The IDs of existing alert rules to be associated with the site monitoring task.
interval Integer
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
ispCities List<SiteMonitorIspCity>
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. See isp_cities below.
optionsJson String
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
address This property is required. string
The URL or IP address monitored by the site monitoring task.
taskName This property is required. 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.
taskType
This property is required.
Changes to this property will trigger replacement.
string
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
alertIds 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, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
ispCities SiteMonitorIspCity[]
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. See isp_cities below.
optionsJson string
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
address This property is required. str
The URL or IP address monitored by the site monitoring task.
task_name This property is required. 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
This property is required.
Changes to this property will trigger replacement.
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 Sequence[str]
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, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
isp_cities Sequence[SiteMonitorIspCityArgs]
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. See isp_cities below.
options_json str
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
address This property is required. String
The URL or IP address monitored by the site monitoring task.
taskName This property is required. 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.
taskType
This property is required.
Changes to this property will trigger replacement.
String
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
alertIds List<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, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
ispCities List<Property Map>
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. See isp_cities below.
optionsJson String
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.

Outputs

All input properties are implicitly available as output properties. Additionally, the SiteMonitor resource produces the following output properties:

CreateTime string
The time when the site monitoring task was created.
Id string
The provider-assigned unique ID for this managed resource.
TaskState string
The status of the site monitoring task.
UpdateTime string
The time when the site monitoring task was updated.
CreateTime string
The time when the site monitoring task was created.
Id string
The provider-assigned unique ID for this managed resource.
TaskState string
The status of the site monitoring task.
UpdateTime string
The time when the site monitoring task was updated.
createTime String
The time when the site monitoring task was created.
id String
The provider-assigned unique ID for this managed resource.
taskState String
The status of the site monitoring task.
updateTime String
The time when the site monitoring task was updated.
createTime string
The time when the site monitoring task was created.
id string
The provider-assigned unique ID for this managed resource.
taskState string
The status of the site monitoring task.
updateTime string
The time when the site monitoring task was updated.
create_time str
The time when the site monitoring task was created.
id str
The provider-assigned unique ID for this managed resource.
task_state str
The status of the site monitoring task.
update_time str
The time when the site monitoring task was updated.
createTime String
The time when the site monitoring task was created.
id String
The provider-assigned unique ID for this managed resource.
taskState String
The status of the site monitoring task.
updateTime String
The time when the site monitoring task was updated.

Look up 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): SiteMonitor
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        alert_ids: Optional[Sequence[str]] = None,
        create_time: Optional[str] = None,
        interval: Optional[int] = None,
        isp_cities: Optional[Sequence[SiteMonitorIspCityArgs]] = None,
        options_json: Optional[str] = None,
        task_name: Optional[str] = None,
        task_state: Optional[str] = None,
        task_type: Optional[str] = None,
        update_time: Optional[str] = None) -> SiteMonitor
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)
public static SiteMonitor get(String name, Output<String> id, SiteMonitorState state, CustomResourceOptions options)
resources:  _:    type: alicloud:cms:SiteMonitor    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
AlertIds List<string>
The IDs of existing alert rules to be associated with the site monitoring task.
CreateTime string
The time when the site monitoring task was created.
Interval int
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
IspCities List<Pulumi.AliCloud.Cms.Inputs.SiteMonitorIspCity>
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. See isp_cities below.
OptionsJson string
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
TaskName 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.
TaskState string
The status of the site monitoring task.
TaskType Changes to this property will trigger replacement. string
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
UpdateTime string
The time when the site monitoring task was updated.
Address string
The URL or IP address monitored by the site monitoring task.
AlertIds []string
The IDs of existing alert rules to be associated with the site monitoring task.
CreateTime string
The time when the site monitoring task was created.
Interval int
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
IspCities []SiteMonitorIspCityArgs
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. See isp_cities below.
OptionsJson string
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
TaskName 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.
TaskState string
The status of the site monitoring task.
TaskType Changes to this property will trigger replacement. string
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
UpdateTime string
The time when the site monitoring task was updated.
address String
The URL or IP address monitored by the site monitoring task.
alertIds List<String>
The IDs of existing alert rules to be associated with the site monitoring task.
createTime String
The time when the site monitoring task was created.
interval Integer
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
ispCities List<SiteMonitorIspCity>
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. See isp_cities below.
optionsJson String
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
taskName 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.
taskState String
The status of the site monitoring task.
taskType Changes to this property will trigger replacement. String
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
updateTime String
The time when the site monitoring task was updated.
address string
The URL or IP address monitored by the site monitoring task.
alertIds string[]
The IDs of existing alert rules to be associated with the site monitoring task.
createTime string
The time when the site monitoring task was created.
interval number
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
ispCities SiteMonitorIspCity[]
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. See isp_cities below.
optionsJson string
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
taskName 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.
taskState string
The status of the site monitoring task.
taskType Changes to this property will trigger replacement. string
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
updateTime string
The time when the site monitoring task was updated.
address str
The URL or IP address monitored by the site monitoring task.
alert_ids Sequence[str]
The IDs of existing alert rules to be associated with the site monitoring task.
create_time str
The time when the site monitoring task was created.
interval int
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
isp_cities Sequence[SiteMonitorIspCityArgs]
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. See isp_cities below.
options_json str
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
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
The status of the site monitoring task.
task_type Changes to this property will trigger replacement. 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
The time when the site monitoring task was updated.
address String
The URL or IP address monitored by the site monitoring task.
alertIds List<String>
The IDs of existing alert rules to be associated with the site monitoring task.
createTime String
The time when the site monitoring task was created.
interval Number
The monitoring interval of the site monitoring task. Unit: minutes. Valid values: 1, 5, 15, 30 and 60. Default value: 1. NOTE: From version 1.207.0, interval can be set to 30, 60.
ispCities List<Property Map>
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. See isp_cities below.
optionsJson String
The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
taskName 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.
taskState String
The status of the site monitoring task.
taskType Changes to this property will trigger replacement. String
The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
updateTime String
The time when the site monitoring task was updated.

Supporting Types

SiteMonitorIspCity
, SiteMonitorIspCityArgs

City This property is required. string
The ID of the city.
Isp This property is required. string
The ID of the carrier.
City This property is required. string
The ID of the city.
Isp This property is required. string
The ID of the carrier.
city This property is required. String
The ID of the city.
isp This property is required. String
The ID of the carrier.
city This property is required. string
The ID of the city.
isp This property is required. string
The ID of the carrier.
city This property is required. str
The ID of the city.
isp This property is required. str
The ID of the carrier.
city This property is required. String
The ID of the city.
isp This property is required. String
The ID of the carrier.

Import

Cloud Monitor Service Site Monitor can be imported using the id, e.g.

$ pulumi import alicloud:cms/siteMonitor:SiteMonitor example <id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.