alicloud.cms.SiteMonitor
Provides a Cloud Monitor Service Site Monitor resource.
Describes the SITE monitoring tasks created by the user.
For information about Cloud Monitor Service Site Monitor and how to use it, see What is Site Monitor.
NOTE: Available since v1.72.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const basic = new alicloud.cms.SiteMonitor("basic", {
address: "https://www.alibabacloud.com",
taskName: name,
taskType: "HTTP",
interval: "5",
ispCities: [{
isp: "232",
city: "641",
type: "IDC",
}],
optionJson: {
responseContent: "example",
expectValue: "example",
port: 81,
isBaseEncode: true,
pingNum: 5,
matchRule: 1,
failureRate: "0.3",
requestContent: "example",
attempts: 4,
requestFormat: "hex",
password: "YourPassword123!",
diagnosisPing: true,
responseFormat: "hex",
cookie: "key2=value2",
pingPort: 443,
userName: "example",
dnsMatchRule: "DNS_IN",
timeout: 3000,
dnsServer: "223.6.6.6",
diagnosisMtr: true,
header: "key2:value2",
minTlsVersion: "1.1",
pingType: "udp",
dnsType: "NS",
dnsHijackWhitelist: "DnsHijackWhitelist",
httpMethod: "post",
assertions: [{
operator: "lessThan",
target: "300",
type: "response_time",
}],
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
basic = alicloud.cms.SiteMonitor("basic",
address="https://www.alibabacloud.com",
task_name=name,
task_type="HTTP",
interval="5",
isp_cities=[{
"isp": "232",
"city": "641",
"type": "IDC",
}],
option_json={
"response_content": "example",
"expect_value": "example",
"port": 81,
"is_base_encode": True,
"ping_num": 5,
"match_rule": 1,
"failure_rate": "0.3",
"request_content": "example",
"attempts": 4,
"request_format": "hex",
"password": "YourPassword123!",
"diagnosis_ping": True,
"response_format": "hex",
"cookie": "key2=value2",
"ping_port": 443,
"user_name": "example",
"dns_match_rule": "DNS_IN",
"timeout": 3000,
"dns_server": "223.6.6.6",
"diagnosis_mtr": True,
"header": "key2:value2",
"min_tls_version": "1.1",
"ping_type": "udp",
"dns_type": "NS",
"dns_hijack_whitelist": "DnsHijackWhitelist",
"http_method": "post",
"assertions": [{
"operator": "lessThan",
"target": "300",
"type": "response_time",
}],
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := cms.NewSiteMonitor(ctx, "basic", &cms.SiteMonitorArgs{
Address: pulumi.String("https://www.alibabacloud.com"),
TaskName: pulumi.String(name),
TaskType: pulumi.String("HTTP"),
Interval: pulumi.String("5"),
IspCities: cms.SiteMonitorIspCityArray{
&cms.SiteMonitorIspCityArgs{
Isp: pulumi.String("232"),
City: pulumi.String("641"),
Type: pulumi.String("IDC"),
},
},
OptionJson: &cms.SiteMonitorOptionJsonArgs{
ResponseContent: pulumi.String("example"),
ExpectValue: pulumi.String("example"),
Port: pulumi.Int(81),
IsBaseEncode: pulumi.Bool(true),
PingNum: pulumi.Int(5),
MatchRule: pulumi.Int(1),
FailureRate: pulumi.String("0.3"),
RequestContent: pulumi.String("example"),
Attempts: pulumi.Int(4),
RequestFormat: pulumi.String("hex"),
Password: pulumi.String("YourPassword123!"),
DiagnosisPing: pulumi.Bool(true),
ResponseFormat: pulumi.String("hex"),
Cookie: pulumi.String("key2=value2"),
PingPort: pulumi.Int(443),
UserName: pulumi.String("example"),
DnsMatchRule: pulumi.String("DNS_IN"),
Timeout: pulumi.Int(3000),
DnsServer: pulumi.String("223.6.6.6"),
DiagnosisMtr: pulumi.Bool(true),
Header: pulumi.String("key2:value2"),
MinTlsVersion: pulumi.String("1.1"),
PingType: pulumi.String("udp"),
DnsType: pulumi.String("NS"),
DnsHijackWhitelist: pulumi.String("DnsHijackWhitelist"),
HttpMethod: pulumi.String("post"),
Assertions: cms.SiteMonitorOptionJsonAssertionArray{
&cms.SiteMonitorOptionJsonAssertionArgs{
Operator: pulumi.String("lessThan"),
Target: pulumi.String("300"),
Type: pulumi.String("response_time"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var basic = new AliCloud.Cms.SiteMonitor("basic", new()
{
Address = "https://www.alibabacloud.com",
TaskName = name,
TaskType = "HTTP",
Interval = "5",
IspCities = new[]
{
new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs
{
Isp = "232",
City = "641",
Type = "IDC",
},
},
OptionJson = new AliCloud.Cms.Inputs.SiteMonitorOptionJsonArgs
{
ResponseContent = "example",
ExpectValue = "example",
Port = 81,
IsBaseEncode = true,
PingNum = 5,
MatchRule = 1,
FailureRate = "0.3",
RequestContent = "example",
Attempts = 4,
RequestFormat = "hex",
Password = "YourPassword123!",
DiagnosisPing = true,
ResponseFormat = "hex",
Cookie = "key2=value2",
PingPort = 443,
UserName = "example",
DnsMatchRule = "DNS_IN",
Timeout = 3000,
DnsServer = "223.6.6.6",
DiagnosisMtr = true,
Header = "key2:value2",
MinTlsVersion = "1.1",
PingType = "udp",
DnsType = "NS",
DnsHijackWhitelist = "DnsHijackWhitelist",
HttpMethod = "post",
Assertions = new[]
{
new AliCloud.Cms.Inputs.SiteMonitorOptionJsonAssertionArgs
{
Operator = "lessThan",
Target = "300",
Type = "response_time",
},
},
},
});
});
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 com.pulumi.alicloud.cms.inputs.SiteMonitorOptionJsonArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var basic = new SiteMonitor("basic", SiteMonitorArgs.builder()
.address("https://www.alibabacloud.com")
.taskName(name)
.taskType("HTTP")
.interval("5")
.ispCities(SiteMonitorIspCityArgs.builder()
.isp("232")
.city("641")
.type("IDC")
.build())
.optionJson(SiteMonitorOptionJsonArgs.builder()
.responseContent("example")
.expectValue("example")
.port(81)
.isBaseEncode(true)
.pingNum(5)
.matchRule(1)
.failureRate("0.3")
.requestContent("example")
.attempts(4)
.requestFormat("hex")
.password("YourPassword123!")
.diagnosisPing(true)
.responseFormat("hex")
.cookie("key2=value2")
.pingPort(443)
.userName("example")
.dnsMatchRule("DNS_IN")
.timeout(3000)
.dnsServer("223.6.6.6")
.diagnosisMtr(true)
.header("key2:value2")
.minTlsVersion("1.1")
.pingType("udp")
.dnsType("NS")
.dnsHijackWhitelist("DnsHijackWhitelist")
.httpMethod("post")
.assertions(SiteMonitorOptionJsonAssertionArgs.builder()
.operator("lessThan")
.target("300")
.type("response_time")
.build())
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
basic:
type: alicloud:cms:SiteMonitor
properties:
address: https://www.alibabacloud.com
taskName: ${name}
taskType: HTTP
interval: 5
ispCities:
- isp: '232'
city: '641'
type: IDC
optionJson:
responseContent: example
expectValue: example
port: 81
isBaseEncode: true
pingNum: 5
matchRule: 1
failureRate: '0.3'
requestContent: example
attempts: 4
requestFormat: hex
password: YourPassword123!
diagnosisPing: true
responseFormat: hex
cookie: key2=value2
pingPort: 443
userName: example
dnsMatchRule: DNS_IN
timeout: 3000
dnsServer: 223.6.6.6
diagnosisMtr: true
header: key2:value2
minTlsVersion: '1.1'
pingType: udp
dnsType: NS
dnsHijackWhitelist: DnsHijackWhitelist
httpMethod: post
assertions:
- operator: lessThan
target: 300
type: response_time
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,
agent_group: Optional[str] = None,
alert_ids: Optional[Sequence[str]] = None,
custom_schedule: Optional[SiteMonitorCustomScheduleArgs] = None,
interval: Optional[str] = None,
isp_cities: Optional[Sequence[SiteMonitorIspCityArgs]] = None,
option_json: Optional[SiteMonitorOptionJsonArgs] = None,
options_json: Optional[str] = None,
status: 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 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.
- args 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 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.
- name String
- The unique name of the resource.
- args 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",
AgentGroup = "string",
CustomSchedule = new AliCloud.Cms.Inputs.SiteMonitorCustomScheduleArgs
{
Days = new[]
{
0,
},
EndHour = 0,
StartHour = 0,
TimeZone = "string",
},
Interval = "string",
IspCities = new[]
{
new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs
{
City = "string",
Isp = "string",
Type = "string",
},
},
OptionJson = new AliCloud.Cms.Inputs.SiteMonitorOptionJsonArgs
{
Assertions = new[]
{
new AliCloud.Cms.Inputs.SiteMonitorOptionJsonAssertionArgs
{
Operator = "string",
Target = "string",
Type = "string",
},
},
Attempts = 0,
Cookie = "string",
DiagnosisMtr = false,
DiagnosisPing = false,
DnsHijackWhitelist = "string",
DnsMatchRule = "string",
DnsServer = "string",
DnsType = "string",
ExpectValue = "string",
FailureRate = "string",
Header = "string",
HttpMethod = "string",
IsBaseEncode = false,
MatchRule = 0,
MinTlsVersion = "string",
Password = "string",
PingNum = 0,
PingPort = 0,
PingType = "string",
Port = 0,
RequestContent = "string",
RequestFormat = "string",
ResponseContent = "string",
ResponseFormat = "string",
Timeout = 0,
UserName = "string",
},
Status = "string",
});
example, err := cms.NewSiteMonitor(ctx, "siteMonitorResource", &cms.SiteMonitorArgs{
Address: pulumi.String("string"),
TaskName: pulumi.String("string"),
TaskType: pulumi.String("string"),
AgentGroup: pulumi.String("string"),
CustomSchedule: &cms.SiteMonitorCustomScheduleArgs{
Days: pulumi.IntArray{
pulumi.Int(0),
},
EndHour: pulumi.Int(0),
StartHour: pulumi.Int(0),
TimeZone: pulumi.String("string"),
},
Interval: pulumi.String("string"),
IspCities: cms.SiteMonitorIspCityArray{
&cms.SiteMonitorIspCityArgs{
City: pulumi.String("string"),
Isp: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
OptionJson: &cms.SiteMonitorOptionJsonArgs{
Assertions: cms.SiteMonitorOptionJsonAssertionArray{
&cms.SiteMonitorOptionJsonAssertionArgs{
Operator: pulumi.String("string"),
Target: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Attempts: pulumi.Int(0),
Cookie: pulumi.String("string"),
DiagnosisMtr: pulumi.Bool(false),
DiagnosisPing: pulumi.Bool(false),
DnsHijackWhitelist: pulumi.String("string"),
DnsMatchRule: pulumi.String("string"),
DnsServer: pulumi.String("string"),
DnsType: pulumi.String("string"),
ExpectValue: pulumi.String("string"),
FailureRate: pulumi.String("string"),
Header: pulumi.String("string"),
HttpMethod: pulumi.String("string"),
IsBaseEncode: pulumi.Bool(false),
MatchRule: pulumi.Int(0),
MinTlsVersion: pulumi.String("string"),
Password: pulumi.String("string"),
PingNum: pulumi.Int(0),
PingPort: pulumi.Int(0),
PingType: pulumi.String("string"),
Port: pulumi.Int(0),
RequestContent: pulumi.String("string"),
RequestFormat: pulumi.String("string"),
ResponseContent: pulumi.String("string"),
ResponseFormat: pulumi.String("string"),
Timeout: pulumi.Int(0),
UserName: pulumi.String("string"),
},
Status: pulumi.String("string"),
})
var siteMonitorResource = new SiteMonitor("siteMonitorResource", SiteMonitorArgs.builder()
.address("string")
.taskName("string")
.taskType("string")
.agentGroup("string")
.customSchedule(SiteMonitorCustomScheduleArgs.builder()
.days(0)
.endHour(0)
.startHour(0)
.timeZone("string")
.build())
.interval("string")
.ispCities(SiteMonitorIspCityArgs.builder()
.city("string")
.isp("string")
.type("string")
.build())
.optionJson(SiteMonitorOptionJsonArgs.builder()
.assertions(SiteMonitorOptionJsonAssertionArgs.builder()
.operator("string")
.target("string")
.type("string")
.build())
.attempts(0)
.cookie("string")
.diagnosisMtr(false)
.diagnosisPing(false)
.dnsHijackWhitelist("string")
.dnsMatchRule("string")
.dnsServer("string")
.dnsType("string")
.expectValue("string")
.failureRate("string")
.header("string")
.httpMethod("string")
.isBaseEncode(false)
.matchRule(0)
.minTlsVersion("string")
.password("string")
.pingNum(0)
.pingPort(0)
.pingType("string")
.port(0)
.requestContent("string")
.requestFormat("string")
.responseContent("string")
.responseFormat("string")
.timeout(0)
.userName("string")
.build())
.status("string")
.build());
site_monitor_resource = alicloud.cms.SiteMonitor("siteMonitorResource",
address="string",
task_name="string",
task_type="string",
agent_group="string",
custom_schedule={
"days": [0],
"end_hour": 0,
"start_hour": 0,
"time_zone": "string",
},
interval="string",
isp_cities=[{
"city": "string",
"isp": "string",
"type": "string",
}],
option_json={
"assertions": [{
"operator": "string",
"target": "string",
"type": "string",
}],
"attempts": 0,
"cookie": "string",
"diagnosis_mtr": False,
"diagnosis_ping": False,
"dns_hijack_whitelist": "string",
"dns_match_rule": "string",
"dns_server": "string",
"dns_type": "string",
"expect_value": "string",
"failure_rate": "string",
"header": "string",
"http_method": "string",
"is_base_encode": False,
"match_rule": 0,
"min_tls_version": "string",
"password": "string",
"ping_num": 0,
"ping_port": 0,
"ping_type": "string",
"port": 0,
"request_content": "string",
"request_format": "string",
"response_content": "string",
"response_format": "string",
"timeout": 0,
"user_name": "string",
},
status="string")
const siteMonitorResource = new alicloud.cms.SiteMonitor("siteMonitorResource", {
address: "string",
taskName: "string",
taskType: "string",
agentGroup: "string",
customSchedule: {
days: [0],
endHour: 0,
startHour: 0,
timeZone: "string",
},
interval: "string",
ispCities: [{
city: "string",
isp: "string",
type: "string",
}],
optionJson: {
assertions: [{
operator: "string",
target: "string",
type: "string",
}],
attempts: 0,
cookie: "string",
diagnosisMtr: false,
diagnosisPing: false,
dnsHijackWhitelist: "string",
dnsMatchRule: "string",
dnsServer: "string",
dnsType: "string",
expectValue: "string",
failureRate: "string",
header: "string",
httpMethod: "string",
isBaseEncode: false,
matchRule: 0,
minTlsVersion: "string",
password: "string",
pingNum: 0,
pingPort: 0,
pingType: "string",
port: 0,
requestContent: "string",
requestFormat: "string",
responseContent: "string",
responseFormat: "string",
timeout: 0,
userName: "string",
},
status: "string",
});
type: alicloud:cms:SiteMonitor
properties:
address: string
agentGroup: string
customSchedule:
days:
- 0
endHour: 0
startHour: 0
timeZone: string
interval: string
ispCities:
- city: string
isp: string
type: string
optionJson:
assertions:
- operator: string
target: string
type: string
attempts: 0
cookie: string
diagnosisMtr: false
diagnosisPing: false
dnsHijackWhitelist: string
dnsMatchRule: string
dnsServer: string
dnsType: string
expectValue: string
failureRate: string
header: string
httpMethod: string
isBaseEncode: false
matchRule: 0
minTlsVersion: string
password: string
pingNum: 0
pingPort: 0
pingType: string
port: 0
requestContent: string
requestFormat: string
responseContent: string
responseFormat: string
timeout: 0
userName: string
status: string
taskName: string
taskType: string
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 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.
- Agent
Group string - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - Alert
Ids List<string> - Field
alert_idshas been deprecated from provider version 1.262.0. - Custom
Schedule Pulumi.Ali Cloud. Cms. Inputs. Site Monitor Custom Schedule - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - Interval string
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - Isp
Cities List<Pulumi.Ali Cloud. Cms. Inputs. Site Monitor 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. Seeisp_citiesbelow. - Option
Json Pulumi.Ali Cloud. Cms. Inputs. Site Monitor Option Json - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - Options
Json string - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - Status string
- The status of the site monitoring task. Valid values:
- 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.
- Agent
Group string - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - Alert
Ids []string - Field
alert_idshas been deprecated from provider version 1.262.0. - Custom
Schedule SiteMonitor Custom Schedule Args - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - Interval string
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - Isp
Cities []SiteMonitor 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. Seeisp_citiesbelow. - Option
Json SiteMonitor Option Json Args - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - Options
Json string - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - Status string
- The status of the site monitoring task. Valid values:
- 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.
- agent
Group String - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert
Ids List<String> - Field
alert_idshas been deprecated from provider version 1.262.0. - custom
Schedule SiteMonitor Custom Schedule - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval String
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - 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. Seeisp_citiesbelow. - option
Json SiteMonitor Option Json - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options
Json String - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status String
- The status of the site monitoring task. Valid values:
- 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.
- agent
Group string - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert
Ids string[] - Field
alert_idshas been deprecated from provider version 1.262.0. - custom
Schedule SiteMonitor Custom Schedule - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval string
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - 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. Seeisp_citiesbelow. - option
Json SiteMonitor Option Json - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options
Json string - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status string
- The status of the site monitoring task. Valid values:
- 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.
- agent_
group str - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert_
ids Sequence[str] - Field
alert_idshas been deprecated from provider version 1.262.0. - custom_
schedule SiteMonitor Custom Schedule Args - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval str
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - isp_
cities Sequence[SiteMonitor 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. Seeisp_citiesbelow. - option_
json SiteMonitor Option Json Args - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options_
json str - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status str
- The status of the site monitoring task. Valid values:
- 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.
- agent
Group String - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert
Ids List<String> - Field
alert_idshas been deprecated from provider version 1.262.0. - custom
Schedule Property Map - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval String
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - isp
Cities 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. Seeisp_citiesbelow. - option
Json Property Map - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options
Json String - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status String
- The status of the site monitoring task. Valid values:
Outputs
All input properties are implicitly available as output properties. Additionally, the SiteMonitor resource produces the following output properties:
- Create
Time string - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - Id string
- The provider-assigned unique ID for this managed resource.
- Task
State string - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - Update
Time string - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- Create
Time string - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - Id string
- The provider-assigned unique ID for this managed resource.
- Task
State string - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - Update
Time string - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- create
Time String - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - id String
- The provider-assigned unique ID for this managed resource.
- task
State String - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - update
Time String - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- create
Time string - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - id string
- The provider-assigned unique ID for this managed resource.
- task
State string - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - update
Time string - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- create_
time str - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - id str
- The provider-assigned unique ID for this managed resource.
- task_
state str - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - update_
time str - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- create
Time String - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - id String
- The provider-assigned unique ID for this managed resource.
- task
State String - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - update
Time String - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
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,
agent_group: Optional[str] = None,
alert_ids: Optional[Sequence[str]] = None,
create_time: Optional[str] = None,
custom_schedule: Optional[SiteMonitorCustomScheduleArgs] = None,
interval: Optional[str] = None,
isp_cities: Optional[Sequence[SiteMonitorIspCityArgs]] = None,
option_json: Optional[SiteMonitorOptionJsonArgs] = None,
options_json: Optional[str] = None,
status: Optional[str] = None,
task_name: Optional[str] = None,
task_state: Optional[str] = None,
task_type: Optional[str] = None,
update_time: Optional[str] = None) -> SiteMonitorfunc 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
- 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.
- 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.
- Address string
- The URL or IP address monitored by the site monitoring task.
- Agent
Group string - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - Alert
Ids List<string> - Field
alert_idshas been deprecated from provider version 1.262.0. - Create
Time string - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - Custom
Schedule Pulumi.Ali Cloud. Cms. Inputs. Site Monitor Custom Schedule - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - Interval string
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - Isp
Cities List<Pulumi.Ali Cloud. Cms. Inputs. Site Monitor 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. Seeisp_citiesbelow. - Option
Json Pulumi.Ali Cloud. Cms. Inputs. Site Monitor Option Json - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - Options
Json string - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - Status string
- The status of the site monitoring task. Valid values:
- 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 - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - 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 - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- Address string
- The URL or IP address monitored by the site monitoring task.
- Agent
Group string - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - Alert
Ids []string - Field
alert_idshas been deprecated from provider version 1.262.0. - Create
Time string - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - Custom
Schedule SiteMonitor Custom Schedule Args - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - Interval string
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - Isp
Cities []SiteMonitor 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. Seeisp_citiesbelow. - Option
Json SiteMonitor Option Json Args - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - Options
Json string - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - Status string
- The status of the site monitoring task. Valid values:
- 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 - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - 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 - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- address String
- The URL or IP address monitored by the site monitoring task.
- agent
Group String - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert
Ids List<String> - Field
alert_idshas been deprecated from provider version 1.262.0. - create
Time String - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - custom
Schedule SiteMonitor Custom Schedule - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval String
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - 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. Seeisp_citiesbelow. - option
Json SiteMonitor Option Json - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options
Json String - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status String
- The status of the site monitoring task. Valid values:
- 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 - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - 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 - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- address string
- The URL or IP address monitored by the site monitoring task.
- agent
Group string - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert
Ids string[] - Field
alert_idshas been deprecated from provider version 1.262.0. - create
Time string - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - custom
Schedule SiteMonitor Custom Schedule - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval string
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - 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. Seeisp_citiesbelow. - option
Json SiteMonitor Option Json - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options
Json string - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status string
- The status of the site monitoring task. Valid values:
- 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 - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - 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 - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- address str
- The URL or IP address monitored by the site monitoring task.
- agent_
group str - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert_
ids Sequence[str] - Field
alert_idshas been deprecated from provider version 1.262.0. - create_
time str - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - custom_
schedule SiteMonitor Custom Schedule Args - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval str
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - isp_
cities Sequence[SiteMonitor 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. Seeisp_citiesbelow. - option_
json SiteMonitor Option Json Args - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options_
json str - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status str
- The status of the site monitoring task. Valid values:
- 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 - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - 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 - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
- address String
- The URL or IP address monitored by the site monitoring task.
- agent
Group String - The type of the detection point. Default value:
PC. Valid values:PC,MOBILE. - alert
Ids List<String> - Field
alert_idshas been deprecated from provider version 1.262.0. - create
Time String - (Deprecated since v1.262.0) Field
create_timehas been deprecated from provider version 1.262.0. - custom
Schedule Property Map - Custom probing period. Only a certain period of time from Monday to Sunday can be selected for detection. See
custom_schedulebelow. - interval String
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1,5,15,30and60. Default value:1. NOTE: From version 1.207.0,intervalcan be set to30,60. - isp
Cities 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. Seeisp_citiesbelow. - option
Json Property Map - The extended options of the protocol that is used by the site monitoring task. See
option_jsonbelow. - options
Json String - Field
options_jsonhas been deprecated from provider version 1.262.0. New fieldoption_jsoninstead. - status String
- The status of the site monitoring task. Valid values:
- 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 - (Deprecated since v1.262.0) Field
task_statehas been deprecated from provider version 1.262.0. New fieldstatusinstead. - 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 - (Deprecated since v1.262.0) Field
update_timehas been deprecated from provider version 1.262.0.
Supporting Types
SiteMonitorCustomSchedule, SiteMonitorCustomScheduleArgs
- days Sequence[int]
- The days in a week.
- end_
hour int - The end time of the detection. Unit: hours.
- start_
hour int - The start time of the detection. Unit: hours.
- time_
zone str - The time zone of the detection.
SiteMonitorIspCity, SiteMonitorIspCityArgs
SiteMonitorOptionJson, SiteMonitorOptionJsonArgs
- Assertions
List<Pulumi.
Ali Cloud. Cms. Inputs. Site Monitor Option Json Assertion> - Assertion configuration group. See
assertionsbelow. - Attempts int
- Number of retries after DNS failed.
- string
- The Cookie that sends the HTTP request.
- Diagnosis
Mtr bool - Whether to enable automatic MTR network diagnosis after a task failure. Value:
- false: does not enable automatic MTR network diagnosis.
- true to turn on automatic MTR network diagnostics.
- Diagnosis
Ping bool - Whether to enable the automatic PING network delay detection after the task fails. Value:
- false: does not enable automatic PING network delay detection.
- true: Enable automatic PING network delay detection.
- Dns
Hijack stringWhitelist - List of DNS hijacking configurations.
- Dns
Match stringRule - Matching Rules for DNS. Value:
- IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
- DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
- EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
- ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
- Dns
Server string The IP address of the DNS server.
NOTE: only applicable to DNS probe types.
- Dns
Type string - DNS resolution type. Only applicable to DNS probe types. Value:
- A (default): specifies the IP address corresponding to the host name or domain name.
- CNAME: maps multiple domain names to another domain name.
- NS: specifies that the domain name is resolved by a DNS server.
- MX: point domain name to a mail server address.
- TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
- Expect
Value string The alias or address to be resolved.
NOTE: This parameter applies only to DNS probe types.
- Failure
Rate string Packet loss rate.
NOTE: This parameter only applies to PING probe types.
- Header string
- HTTP request header.
- Http
Method string - HTTP request method. Value:
- get
- post
- head
- Is
Base boolEncode - Whether the parameter' Password' is Base64 encoded.
- true: Yes.
- false: No.
- Match
Rule int - Whether alarm rules are included. Value:
- 0: Yes.
- 1: No.
- Min
Tls stringVersion - Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
- Password string
- The password of the SMTP, POP3, or FTP probe type.
- Ping
Num int - The heartbeat of the PING probe type.
- Ping
Port int - PING the port. Applies to TCP PING.
- Ping
Type string - The PING protocol type. Value:
- icmp
- tcp
- udp
- Port int
- Ports of TCP, UDP, SMTP, and POP3 probe types.
- Request
Content string - The request content of the HTTP probe type.
- Request
Format string - HTTP request content format. Value:
- hex: hexadecimal format.
- text: text format.
- Response
Content string - Match the response content.
- Response
Format string - HTTP response content format. Value:
- hex: hexadecimal format.
- text: text format.
- Timeout int
- Timeout time. Unit: milliseconds.
- User
Name string - The username of FTP, SMTP, or pop3.
- Assertions
[]Site
Monitor Option Json Assertion - Assertion configuration group. See
assertionsbelow. - Attempts int
- Number of retries after DNS failed.
- string
- The Cookie that sends the HTTP request.
- Diagnosis
Mtr bool - Whether to enable automatic MTR network diagnosis after a task failure. Value:
- false: does not enable automatic MTR network diagnosis.
- true to turn on automatic MTR network diagnostics.
- Diagnosis
Ping bool - Whether to enable the automatic PING network delay detection after the task fails. Value:
- false: does not enable automatic PING network delay detection.
- true: Enable automatic PING network delay detection.
- Dns
Hijack stringWhitelist - List of DNS hijacking configurations.
- Dns
Match stringRule - Matching Rules for DNS. Value:
- IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
- DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
- EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
- ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
- Dns
Server string The IP address of the DNS server.
NOTE: only applicable to DNS probe types.
- Dns
Type string - DNS resolution type. Only applicable to DNS probe types. Value:
- A (default): specifies the IP address corresponding to the host name or domain name.
- CNAME: maps multiple domain names to another domain name.
- NS: specifies that the domain name is resolved by a DNS server.
- MX: point domain name to a mail server address.
- TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
- Expect
Value string The alias or address to be resolved.
NOTE: This parameter applies only to DNS probe types.
- Failure
Rate string Packet loss rate.
NOTE: This parameter only applies to PING probe types.
- Header string
- HTTP request header.
- Http
Method string - HTTP request method. Value:
- get
- post
- head
- Is
Base boolEncode - Whether the parameter' Password' is Base64 encoded.
- true: Yes.
- false: No.
- Match
Rule int - Whether alarm rules are included. Value:
- 0: Yes.
- 1: No.
- Min
Tls stringVersion - Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
- Password string
- The password of the SMTP, POP3, or FTP probe type.
- Ping
Num int - The heartbeat of the PING probe type.
- Ping
Port int - PING the port. Applies to TCP PING.
- Ping
Type string - The PING protocol type. Value:
- icmp
- tcp
- udp
- Port int
- Ports of TCP, UDP, SMTP, and POP3 probe types.
- Request
Content string - The request content of the HTTP probe type.
- Request
Format string - HTTP request content format. Value:
- hex: hexadecimal format.
- text: text format.
- Response
Content string - Match the response content.
- Response
Format string - HTTP response content format. Value:
- hex: hexadecimal format.
- text: text format.
- Timeout int
- Timeout time. Unit: milliseconds.
- User
Name string - The username of FTP, SMTP, or pop3.
- assertions
List<Site
Monitor Option Json Assertion> - Assertion configuration group. See
assertionsbelow. - attempts Integer
- Number of retries after DNS failed.
- String
- The Cookie that sends the HTTP request.
- diagnosis
Mtr Boolean - Whether to enable automatic MTR network diagnosis after a task failure. Value:
- false: does not enable automatic MTR network diagnosis.
- true to turn on automatic MTR network diagnostics.
- diagnosis
Ping Boolean - Whether to enable the automatic PING network delay detection after the task fails. Value:
- false: does not enable automatic PING network delay detection.
- true: Enable automatic PING network delay detection.
- dns
Hijack StringWhitelist - List of DNS hijacking configurations.
- dns
Match StringRule - Matching Rules for DNS. Value:
- IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
- DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
- EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
- ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
- dns
Server String The IP address of the DNS server.
NOTE: only applicable to DNS probe types.
- dns
Type String - DNS resolution type. Only applicable to DNS probe types. Value:
- A (default): specifies the IP address corresponding to the host name or domain name.
- CNAME: maps multiple domain names to another domain name.
- NS: specifies that the domain name is resolved by a DNS server.
- MX: point domain name to a mail server address.
- TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
- expect
Value String The alias or address to be resolved.
NOTE: This parameter applies only to DNS probe types.
- failure
Rate String Packet loss rate.
NOTE: This parameter only applies to PING probe types.
- header String
- HTTP request header.
- http
Method String - HTTP request method. Value:
- get
- post
- head
- is
Base BooleanEncode - Whether the parameter' Password' is Base64 encoded.
- true: Yes.
- false: No.
- match
Rule Integer - Whether alarm rules are included. Value:
- 0: Yes.
- 1: No.
- min
Tls StringVersion - Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
- password String
- The password of the SMTP, POP3, or FTP probe type.
- ping
Num Integer - The heartbeat of the PING probe type.
- ping
Port Integer - PING the port. Applies to TCP PING.
- ping
Type String - The PING protocol type. Value:
- icmp
- tcp
- udp
- port Integer
- Ports of TCP, UDP, SMTP, and POP3 probe types.
- request
Content String - The request content of the HTTP probe type.
- request
Format String - HTTP request content format. Value:
- hex: hexadecimal format.
- text: text format.
- response
Content String - Match the response content.
- response
Format String - HTTP response content format. Value:
- hex: hexadecimal format.
- text: text format.
- timeout Integer
- Timeout time. Unit: milliseconds.
- user
Name String - The username of FTP, SMTP, or pop3.
- assertions
Site
Monitor Option Json Assertion[] - Assertion configuration group. See
assertionsbelow. - attempts number
- Number of retries after DNS failed.
- string
- The Cookie that sends the HTTP request.
- diagnosis
Mtr boolean - Whether to enable automatic MTR network diagnosis after a task failure. Value:
- false: does not enable automatic MTR network diagnosis.
- true to turn on automatic MTR network diagnostics.
- diagnosis
Ping boolean - Whether to enable the automatic PING network delay detection after the task fails. Value:
- false: does not enable automatic PING network delay detection.
- true: Enable automatic PING network delay detection.
- dns
Hijack stringWhitelist - List of DNS hijacking configurations.
- dns
Match stringRule - Matching Rules for DNS. Value:
- IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
- DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
- EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
- ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
- dns
Server string The IP address of the DNS server.
NOTE: only applicable to DNS probe types.
- dns
Type string - DNS resolution type. Only applicable to DNS probe types. Value:
- A (default): specifies the IP address corresponding to the host name or domain name.
- CNAME: maps multiple domain names to another domain name.
- NS: specifies that the domain name is resolved by a DNS server.
- MX: point domain name to a mail server address.
- TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
- expect
Value string The alias or address to be resolved.
NOTE: This parameter applies only to DNS probe types.
- failure
Rate string Packet loss rate.
NOTE: This parameter only applies to PING probe types.
- header string
- HTTP request header.
- http
Method string - HTTP request method. Value:
- get
- post
- head
- is
Base booleanEncode - Whether the parameter' Password' is Base64 encoded.
- true: Yes.
- false: No.
- match
Rule number - Whether alarm rules are included. Value:
- 0: Yes.
- 1: No.
- min
Tls stringVersion - Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
- password string
- The password of the SMTP, POP3, or FTP probe type.
- ping
Num number - The heartbeat of the PING probe type.
- ping
Port number - PING the port. Applies to TCP PING.
- ping
Type string - The PING protocol type. Value:
- icmp
- tcp
- udp
- port number
- Ports of TCP, UDP, SMTP, and POP3 probe types.
- request
Content string - The request content of the HTTP probe type.
- request
Format string - HTTP request content format. Value:
- hex: hexadecimal format.
- text: text format.
- response
Content string - Match the response content.
- response
Format string - HTTP response content format. Value:
- hex: hexadecimal format.
- text: text format.
- timeout number
- Timeout time. Unit: milliseconds.
- user
Name string - The username of FTP, SMTP, or pop3.
- assertions
Sequence[Site
Monitor Option Json Assertion] - Assertion configuration group. See
assertionsbelow. - attempts int
- Number of retries after DNS failed.
- str
- The Cookie that sends the HTTP request.
- diagnosis_
mtr bool - Whether to enable automatic MTR network diagnosis after a task failure. Value:
- false: does not enable automatic MTR network diagnosis.
- true to turn on automatic MTR network diagnostics.
- diagnosis_
ping bool - Whether to enable the automatic PING network delay detection after the task fails. Value:
- false: does not enable automatic PING network delay detection.
- true: Enable automatic PING network delay detection.
- dns_
hijack_ strwhitelist - List of DNS hijacking configurations.
- dns_
match_ strrule - Matching Rules for DNS. Value:
- IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
- DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
- EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
- ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
- dns_
server str The IP address of the DNS server.
NOTE: only applicable to DNS probe types.
- dns_
type str - DNS resolution type. Only applicable to DNS probe types. Value:
- A (default): specifies the IP address corresponding to the host name or domain name.
- CNAME: maps multiple domain names to another domain name.
- NS: specifies that the domain name is resolved by a DNS server.
- MX: point domain name to a mail server address.
- TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
- expect_
value str The alias or address to be resolved.
NOTE: This parameter applies only to DNS probe types.
- failure_
rate str Packet loss rate.
NOTE: This parameter only applies to PING probe types.
- header str
- HTTP request header.
- http_
method str - HTTP request method. Value:
- get
- post
- head
- is_
base_ boolencode - Whether the parameter' Password' is Base64 encoded.
- true: Yes.
- false: No.
- match_
rule int - Whether alarm rules are included. Value:
- 0: Yes.
- 1: No.
- min_
tls_ strversion - Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
- password str
- The password of the SMTP, POP3, or FTP probe type.
- ping_
num int - The heartbeat of the PING probe type.
- ping_
port int - PING the port. Applies to TCP PING.
- ping_
type str - The PING protocol type. Value:
- icmp
- tcp
- udp
- port int
- Ports of TCP, UDP, SMTP, and POP3 probe types.
- request_
content str - The request content of the HTTP probe type.
- request_
format str - HTTP request content format. Value:
- hex: hexadecimal format.
- text: text format.
- response_
content str - Match the response content.
- response_
format str - HTTP response content format. Value:
- hex: hexadecimal format.
- text: text format.
- timeout int
- Timeout time. Unit: milliseconds.
- user_
name str - The username of FTP, SMTP, or pop3.
- assertions List<Property Map>
- Assertion configuration group. See
assertionsbelow. - attempts Number
- Number of retries after DNS failed.
- String
- The Cookie that sends the HTTP request.
- diagnosis
Mtr Boolean - Whether to enable automatic MTR network diagnosis after a task failure. Value:
- false: does not enable automatic MTR network diagnosis.
- true to turn on automatic MTR network diagnostics.
- diagnosis
Ping Boolean - Whether to enable the automatic PING network delay detection after the task fails. Value:
- false: does not enable automatic PING network delay detection.
- true: Enable automatic PING network delay detection.
- dns
Hijack StringWhitelist - List of DNS hijacking configurations.
- dns
Match StringRule - Matching Rules for DNS. Value:
- IN_DNS: The alias or IP address that is expected to be resolved is in the DNS response.
- DNS_IN: All DNS responses appear in the alias or IP address that is expected to be resolved.
- EQUAL: the DNS response is exactly the same as the alias or IP address that is expected to be resolved.
- ANY:DNS response and the alias or IP address expected to be resolved have an intersection.
- dns
Server String The IP address of the DNS server.
NOTE: only applicable to DNS probe types.
- dns
Type String - DNS resolution type. Only applicable to DNS probe types. Value:
- A (default): specifies the IP address corresponding to the host name or domain name.
- CNAME: maps multiple domain names to another domain name.
- NS: specifies that the domain name is resolved by a DNS server.
- MX: point domain name to a mail server address.
- TXT: Description of host name or domain name. The text length is limited to 512 bytes, which is usually used as SPF(Sender Policy Framework) record, that is, anti-spam.
- expect
Value String The alias or address to be resolved.
NOTE: This parameter applies only to DNS probe types.
- failure
Rate String Packet loss rate.
NOTE: This parameter only applies to PING probe types.
- header String
- HTTP request header.
- http
Method String - HTTP request method. Value:
- get
- post
- head
- is
Base BooleanEncode - Whether the parameter' Password' is Base64 encoded.
- true: Yes.
- false: No.
- match
Rule Number - Whether alarm rules are included. Value:
- 0: Yes.
- 1: No.
- min
Tls StringVersion - Minimum TLS version. By default, TLS1.2 and later versions are supported. TLS1.0 and 1.1 have been disabled. If they still need to be supported, the configuration can be changed.
- password String
- The password of the SMTP, POP3, or FTP probe type.
- ping
Num Number - The heartbeat of the PING probe type.
- ping
Port Number - PING the port. Applies to TCP PING.
- ping
Type String - The PING protocol type. Value:
- icmp
- tcp
- udp
- port Number
- Ports of TCP, UDP, SMTP, and POP3 probe types.
- request
Content String - The request content of the HTTP probe type.
- request
Format String - HTTP request content format. Value:
- hex: hexadecimal format.
- text: text format.
- response
Content String - Match the response content.
- response
Format String - HTTP response content format. Value:
- hex: hexadecimal format.
- text: text format.
- timeout Number
- Timeout time. Unit: milliseconds.
- user
Name String - The username of FTP, SMTP, or pop3.
SiteMonitorOptionJsonAssertion, SiteMonitorOptionJsonAssertionArgs
- Operator string
- Assertion comparison operator. Value:
- contains: contains.
- doesNotContain: does not contain.
- matches: regular matching.
- doesNotMatch: regular mismatch.
- is: Numeric equals or character matches equals.
- isNot: not equal.
- Lesthan: less.
- moreThan: Greater.
- Target string
- Assertion matches the target numeric value or character of the comparison.
- Type string
- Operator string
- Assertion comparison operator. Value:
- contains: contains.
- doesNotContain: does not contain.
- matches: regular matching.
- doesNotMatch: regular mismatch.
- is: Numeric equals or character matches equals.
- isNot: not equal.
- Lesthan: less.
- moreThan: Greater.
- Target string
- Assertion matches the target numeric value or character of the comparison.
- Type string
- operator String
- Assertion comparison operator. Value:
- contains: contains.
- doesNotContain: does not contain.
- matches: regular matching.
- doesNotMatch: regular mismatch.
- is: Numeric equals or character matches equals.
- isNot: not equal.
- Lesthan: less.
- moreThan: Greater.
- target String
- Assertion matches the target numeric value or character of the comparison.
- type String
- operator string
- Assertion comparison operator. Value:
- contains: contains.
- doesNotContain: does not contain.
- matches: regular matching.
- doesNotMatch: regular mismatch.
- is: Numeric equals or character matches equals.
- isNot: not equal.
- Lesthan: less.
- moreThan: Greater.
- target string
- Assertion matches the target numeric value or character of the comparison.
- type string
- operator str
- Assertion comparison operator. Value:
- contains: contains.
- doesNotContain: does not contain.
- matches: regular matching.
- doesNotMatch: regular mismatch.
- is: Numeric equals or character matches equals.
- isNot: not equal.
- Lesthan: less.
- moreThan: Greater.
- target str
- Assertion matches the target numeric value or character of the comparison.
- type str
- operator String
- Assertion comparison operator. Value:
- contains: contains.
- doesNotContain: does not contain.
- matches: regular matching.
- doesNotMatch: regular mismatch.
- is: Numeric equals or character matches equals.
- isNot: not equal.
- Lesthan: less.
- moreThan: Greater.
- target String
- Assertion matches the target numeric value or character of the comparison.
- type String
Import
Cloud Monitor Service Site Monitor can be imported using the id, e.g.
$ pulumi import alicloud:cms/siteMonitor:SiteMonitor example <id>
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
alicloudTerraform Provider.
