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
}
`,
});
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=[alicloud.cms.SiteMonitorIspCityArgs(
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
}
""")
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
})
}
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
}
",
});
});
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());
}
}
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
}
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 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",
AlertIds = new[]
{
"string",
},
Interval = 0,
IspCities = new[]
{
new AliCloud.Cms.Inputs.SiteMonitorIspCityArgs
{
City = "string",
Isp = "string",
},
},
OptionsJson = "string",
});
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"),
})
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());
site_monitor_resource = alicloud.cms.SiteMonitor("siteMonitorResource",
address="string",
task_name="string",
task_type="string",
alert_ids=["string"],
interval=0,
isp_cities=[alicloud.cms.SiteMonitorIspCityArgs(
city="string",
isp="string",
)],
options_json="string")
const siteMonitorResource = new alicloud.cms.SiteMonitor("siteMonitorResource", {
address: "string",
taskName: "string",
taskType: "string",
alertIds: ["string"],
interval: 0,
ispCities: [{
city: "string",
isp: "string",
}],
optionsJson: "string",
});
type: alicloud:cms:SiteMonitor
properties:
address: string
alertIds:
- string
interval: 0
ispCities:
- city: string
isp: string
optionsJson: 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
The SiteMonitor resource accepts the following input properties:
- Address string
- The URL or IP address monitored by the site monitoring task.
- Task
Name string - The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- Task
Type string - The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
- Alert
Ids List<string> - The IDs of existing alert rules to be associated with the site monitoring task.
- Interval int
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1
,5
,15
,30
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - Options
Json string - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- Address string
- The URL or IP address monitored by the site monitoring task.
- Task
Name string - The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- Task
Type string - The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
- Alert
Ids []string - The IDs of existing alert rules to be associated with the site monitoring task.
- Interval int
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1
,5
,15
,30
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - Options
Json string - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- address String
- The URL or IP address monitored by the site monitoring task.
- task
Name String - The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task
Type String - The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
- alert
Ids List<String> - The IDs of existing alert rules to be associated with the site monitoring task.
- interval Integer
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1
,5
,15
,30
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - options
Json String - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- address string
- The URL or IP address monitored by the site monitoring task.
- task
Name string - The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task
Type string - The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
- alert
Ids string[] - The IDs of existing alert rules to be associated with the site monitoring task.
- interval number
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1
,5
,15
,30
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - options
Json string - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- address str
- The URL or IP address monitored by the site monitoring task.
- task_
name str - The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task_
type str - The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
- alert_
ids 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
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_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 String
- The URL or IP address monitored by the site monitoring task.
- task
Name String - The name of the site monitoring task. The name must be 4 to 100 characters in length. The name can contain the following types of characters: letters, digits, and underscores.
- task
Type String - The protocol of the site monitoring task. Currently, site monitoring supports the following protocols: HTTP, PING, TCP, UDP, DNS, SMTP, POP3, and FTP.
- alert
Ids List<String> - The IDs of existing alert rules to be associated with the site monitoring task.
- interval Number
- The monitoring interval of the site monitoring task. Unit: minutes. Valid values:
1
,5
,15
,30
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - options
Json 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:
- Create
Time string - The time when the site monitoring task was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Task
State string - The status of the site monitoring task.
- Update
Time string - The time when the site monitoring task was updated.
- Create
Time string - The time when the site monitoring task was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Task
State string - The status of the site monitoring task.
- Update
Time string - The time when the site monitoring task was updated.
- create
Time String - The time when the site monitoring task was created.
- id String
- The provider-assigned unique ID for this managed resource.
- task
State String - The status of the site monitoring task.
- update
Time String - The time when the site monitoring task was updated.
- create
Time string - The time when the site monitoring task was created.
- id string
- The provider-assigned unique ID for this managed resource.
- task
State string - The status of the site monitoring task.
- update
Time 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.
- create
Time String - The time when the site monitoring task was created.
- id String
- The provider-assigned unique ID for this managed resource.
- task
State String - The status of the site monitoring task.
- update
Time 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)
Resource lookup is not supported in YAML
- 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.
- Alert
Ids List<string> - The IDs of existing alert rules to be associated with the site monitoring task.
- Create
Time 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
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - Options
Json string - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- 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 - The status of the site monitoring task.
- 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 - The time when the site monitoring task was updated.
- Address string
- The URL or IP address monitored by the site monitoring task.
- Alert
Ids []string - The IDs of existing alert rules to be associated with the site monitoring task.
- Create
Time string - 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
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - Options
Json string - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- 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 - The status of the site monitoring task.
- 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 - The time when the site monitoring task was updated.
- address String
- The URL or IP address monitored by the site monitoring task.
- alert
Ids List<String> - The IDs of existing alert rules to be associated with the site monitoring task.
- create
Time String - 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
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - options
Json String - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- 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 - The status of the site monitoring task.
- 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 - The time when the site monitoring task was updated.
- address string
- The URL or IP address monitored by the site monitoring task.
- alert
Ids string[] - The IDs of existing alert rules to be associated with the site monitoring task.
- create
Time string - 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
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - options
Json string - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- 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 - The status of the site monitoring task.
- 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 - 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
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_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 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.
- alert
Ids List<String> - The IDs of existing alert rules to be associated with the site monitoring task.
- create
Time 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
and60
. Default value:1
. NOTE: From version 1.207.0,interval
can 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_cities
below. - options
Json String - The extended options of the protocol of the site monitoring task. The options vary according to the protocol. See extended options.
- 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 - The status of the site monitoring task.
- 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 - The time when the site monitoring task was updated.
Supporting Types
SiteMonitorIspCity, SiteMonitorIspCityArgs
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
alicloud
Terraform Provider.