published on Tuesday, Apr 28, 2026 by Pulumi
published on Tuesday, Apr 28, 2026 by Pulumi
Provides a Alidns Cloud Gtm Monitor Template resource.
A Cloud GTM monitor template defines reusable health-check probe configurations (protocol, interval, failure thresholds, probe nodes) that can be attached to Cloud GTM address pools.
For information about Alidns Cloud Gtm Monitor Template and how to use it, see What is Cloud Gtm Monitor Template.
NOTE: Available since v1.277.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 _default = new alicloud.alidnscloudgtm.MonitorTemplate("default", {
name: name,
protocol: "http",
ipVersion: "IPv4",
interval: "60",
timeout: "2000",
evaluationCount: 2,
failureRate: 50,
extendInfo: JSON.stringify({
code: 500,
followRedirect: true,
path: "/",
}),
remark: "terraform-example-remark",
ispCityNodes: [
{
cityCode: "357",
ispCode: "465",
},
{
cityCode: "738",
ispCode: "465",
},
],
});
import pulumi
import json
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.alidnscloudgtm.MonitorTemplate("default",
name=name,
protocol="http",
ip_version="IPv4",
interval="60",
timeout="2000",
evaluation_count=2,
failure_rate=50,
extend_info=json.dumps({
"code": 500,
"followRedirect": True,
"path": "/",
}),
remark="terraform-example-remark",
isp_city_nodes=[
{
"city_code": "357",
"isp_code": "465",
},
{
"city_code": "738",
"isp_code": "465",
},
])
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alidnscloudgtm"
"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
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"code": 500,
"followRedirect": true,
"path": "/",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = alidnscloudgtm.NewMonitorTemplate(ctx, "default", &alidnscloudgtm.MonitorTemplateArgs{
Name: pulumi.String(pulumi.String(name)),
Protocol: pulumi.String("http"),
IpVersion: pulumi.String("IPv4"),
Interval: pulumi.String("60"),
Timeout: pulumi.String("2000"),
EvaluationCount: pulumi.Int(2),
FailureRate: pulumi.Int(50),
ExtendInfo: pulumi.String(pulumi.String(json0)),
Remark: pulumi.String("terraform-example-remark"),
IspCityNodes: alidnscloudgtm.MonitorTemplateIspCityNodeArray{
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("357"),
IspCode: pulumi.String("465"),
},
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("738"),
IspCode: pulumi.String("465"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.AlidnsCloudGtm.MonitorTemplate("default", new()
{
Name = name,
Protocol = "http",
IpVersion = "IPv4",
Interval = "60",
Timeout = "2000",
EvaluationCount = 2,
FailureRate = 50,
ExtendInfo = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["code"] = 500,
["followRedirect"] = true,
["path"] = "/",
}),
Remark = "terraform-example-remark",
IspCityNodes = new[]
{
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "357",
IspCode = "465",
},
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "738",
IspCode = "465",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.alidnscloudgtm.MonitorTemplate;
import com.pulumi.alicloud.alidnscloudgtm.MonitorTemplateArgs;
import com.pulumi.alicloud.alidnscloudgtm.inputs.MonitorTemplateIspCityNodeArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 default_ = new MonitorTemplate("default", MonitorTemplateArgs.builder()
.name(name)
.protocol("http")
.ipVersion("IPv4")
.interval("60")
.timeout("2000")
.evaluationCount(2)
.failureRate(50)
.extendInfo(serializeJson(
jsonObject(
jsonProperty("code", 500),
jsonProperty("followRedirect", true),
jsonProperty("path", "/")
)))
.remark("terraform-example-remark")
.ispCityNodes(
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("357")
.ispCode("465")
.build(),
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("738")
.ispCode("465")
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:alidnscloudgtm:MonitorTemplate
properties:
name: ${name}
protocol: http
ipVersion: IPv4
interval: '60'
timeout: '2000'
evaluationCount: 2
failureRate: 50
extendInfo:
fn::toJSON:
code: 500
followRedirect: true
path: /
remark: terraform-example-remark
ispCityNodes:
- cityCode: '357'
ispCode: '465'
- cityCode: '738'
ispCode: '465'
📚 Need more examples? VIEW MORE EXAMPLES
Create MonitorTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorTemplate(name: string, args: MonitorTemplateArgs, opts?: CustomResourceOptions);@overload
def MonitorTemplate(resource_name: str,
args: MonitorTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
evaluation_count: Optional[int] = None,
failure_rate: Optional[int] = None,
interval: Optional[str] = None,
ip_version: Optional[str] = None,
isp_city_nodes: Optional[Sequence[MonitorTemplateIspCityNodeArgs]] = None,
protocol: Optional[str] = None,
timeout: Optional[str] = None,
extend_info: Optional[str] = None,
name: Optional[str] = None,
remark: Optional[str] = None)func NewMonitorTemplate(ctx *Context, name string, args MonitorTemplateArgs, opts ...ResourceOption) (*MonitorTemplate, error)public MonitorTemplate(string name, MonitorTemplateArgs args, CustomResourceOptions? opts = null)
public MonitorTemplate(String name, MonitorTemplateArgs args)
public MonitorTemplate(String name, MonitorTemplateArgs args, CustomResourceOptions options)
type: alicloud:alidnscloudgtm:MonitorTemplate
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 MonitorTemplateArgs
- 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 MonitorTemplateArgs
- 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 MonitorTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorTemplateArgs
- 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 monitorTemplateResource = new AliCloud.AlidnsCloudGtm.MonitorTemplate("monitorTemplateResource", new()
{
EvaluationCount = 0,
FailureRate = 0,
Interval = "string",
IpVersion = "string",
IspCityNodes = new[]
{
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "string",
IspCode = "string",
},
},
Protocol = "string",
Timeout = "string",
ExtendInfo = "string",
Name = "string",
Remark = "string",
});
example, err := alidnscloudgtm.NewMonitorTemplate(ctx, "monitorTemplateResource", &alidnscloudgtm.MonitorTemplateArgs{
EvaluationCount: pulumi.Int(0),
FailureRate: pulumi.Int(0),
Interval: pulumi.String("string"),
IpVersion: pulumi.String("string"),
IspCityNodes: alidnscloudgtm.MonitorTemplateIspCityNodeArray{
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("string"),
IspCode: pulumi.String("string"),
},
},
Protocol: pulumi.String("string"),
Timeout: pulumi.String("string"),
ExtendInfo: pulumi.String("string"),
Name: pulumi.String("string"),
Remark: pulumi.String("string"),
})
var monitorTemplateResource = new MonitorTemplate("monitorTemplateResource", MonitorTemplateArgs.builder()
.evaluationCount(0)
.failureRate(0)
.interval("string")
.ipVersion("string")
.ispCityNodes(MonitorTemplateIspCityNodeArgs.builder()
.cityCode("string")
.ispCode("string")
.build())
.protocol("string")
.timeout("string")
.extendInfo("string")
.name("string")
.remark("string")
.build());
monitor_template_resource = alicloud.alidnscloudgtm.MonitorTemplate("monitorTemplateResource",
evaluation_count=0,
failure_rate=0,
interval="string",
ip_version="string",
isp_city_nodes=[{
"city_code": "string",
"isp_code": "string",
}],
protocol="string",
timeout="string",
extend_info="string",
name="string",
remark="string")
const monitorTemplateResource = new alicloud.alidnscloudgtm.MonitorTemplate("monitorTemplateResource", {
evaluationCount: 0,
failureRate: 0,
interval: "string",
ipVersion: "string",
ispCityNodes: [{
cityCode: "string",
ispCode: "string",
}],
protocol: "string",
timeout: "string",
extendInfo: "string",
name: "string",
remark: "string",
});
type: alicloud:alidnscloudgtm:MonitorTemplate
properties:
evaluationCount: 0
extendInfo: string
failureRate: 0
interval: string
ipVersion: string
ispCityNodes:
- cityCode: string
ispCode: string
name: string
protocol: string
remark: string
timeout: string
MonitorTemplate 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 MonitorTemplate resource accepts the following input properties:
- Evaluation
Count int - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - Failure
Rate int - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - Interval string
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - Ip
Version string - The IP version of the probing node. Valid values:
IPv4,IPv6. - Isp
City List<Pulumi.Nodes Ali Cloud.alidns Cloud Gtm. Inputs. Monitor Template Isp City Node> - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - Protocol string
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - Timeout string
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000. - Extend
Info string - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - Name string
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- Remark string
- The remark of the monitor template. Passing an empty value clears the existing remark.
- Evaluation
Count int - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - Failure
Rate int - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - Interval string
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - Ip
Version string - The IP version of the probing node. Valid values:
IPv4,IPv6. - Isp
City []MonitorNodes Template Isp City Node Args - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - Protocol string
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - Timeout string
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000. - Extend
Info string - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - Name string
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- Remark string
- The remark of the monitor template. Passing an empty value clears the existing remark.
- evaluation
Count Integer - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - failure
Rate Integer - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval String
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip
Version String - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp
City List<MonitorNodes Template Isp City Node> - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - protocol String
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - timeout String
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000. - extend
Info String - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - name String
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- remark String
- The remark of the monitor template. Passing an empty value clears the existing remark.
- evaluation
Count number - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - failure
Rate number - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval string
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip
Version string - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp
City MonitorNodes Template Isp City Node[] - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - protocol string
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - timeout string
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000. - extend
Info string - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - name string
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- remark string
- The remark of the monitor template. Passing an empty value clears the existing remark.
- evaluation_
count int - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - failure_
rate int - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval str
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip_
version str - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp_
city_ Sequence[Monitornodes Template Isp City Node Args] - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - protocol str
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - timeout str
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000. - extend_
info str - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - name str
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- remark str
- The remark of the monitor template. Passing an empty value clears the existing remark.
- evaluation
Count Number - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - failure
Rate Number - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval String
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip
Version String - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp
City List<Property Map>Nodes - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - protocol String
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - timeout String
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000. - extend
Info String - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - name String
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- remark String
- The remark of the monitor template. Passing an empty value clears the existing remark.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorTemplate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MonitorTemplate Resource
Get an existing MonitorTemplate 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?: MonitorTemplateState, opts?: CustomResourceOptions): MonitorTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
evaluation_count: Optional[int] = None,
extend_info: Optional[str] = None,
failure_rate: Optional[int] = None,
interval: Optional[str] = None,
ip_version: Optional[str] = None,
isp_city_nodes: Optional[Sequence[MonitorTemplateIspCityNodeArgs]] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
remark: Optional[str] = None,
timeout: Optional[str] = None) -> MonitorTemplatefunc GetMonitorTemplate(ctx *Context, name string, id IDInput, state *MonitorTemplateState, opts ...ResourceOption) (*MonitorTemplate, error)public static MonitorTemplate Get(string name, Input<string> id, MonitorTemplateState? state, CustomResourceOptions? opts = null)public static MonitorTemplate get(String name, Output<String> id, MonitorTemplateState state, CustomResourceOptions options)resources: _: type: alicloud:alidnscloudgtm:MonitorTemplate 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.
- Evaluation
Count int - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - Extend
Info string - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - Failure
Rate int - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - Interval string
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - Ip
Version string - The IP version of the probing node. Valid values:
IPv4,IPv6. - Isp
City List<Pulumi.Nodes Ali Cloud.alidns Cloud Gtm. Inputs. Monitor Template Isp City Node> - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - Name string
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- Protocol string
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - Remark string
- The remark of the monitor template. Passing an empty value clears the existing remark.
- Timeout string
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000.
- Evaluation
Count int - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - Extend
Info string - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - Failure
Rate int - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - Interval string
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - Ip
Version string - The IP version of the probing node. Valid values:
IPv4,IPv6. - Isp
City []MonitorNodes Template Isp City Node Args - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - Name string
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- Protocol string
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - Remark string
- The remark of the monitor template. Passing an empty value clears the existing remark.
- Timeout string
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000.
- evaluation
Count Integer - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - extend
Info String - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - failure
Rate Integer - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval String
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip
Version String - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp
City List<MonitorNodes Template Isp City Node> - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - name String
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- protocol String
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - remark String
- The remark of the monitor template. Passing an empty value clears the existing remark.
- timeout String
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000.
- evaluation
Count number - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - extend
Info string - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - failure
Rate number - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval string
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip
Version string - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp
City MonitorNodes Template Isp City Node[] - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - name string
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- protocol string
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - remark string
- The remark of the monitor template. Passing an empty value clears the existing remark.
- timeout string
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000.
- evaluation_
count int - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - extend_
info str - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - failure_
rate int - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval str
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip_
version str - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp_
city_ Sequence[Monitornodes Template Isp City Node Args] - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - name str
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- protocol str
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - remark str
- The remark of the monitor template. Passing an empty value clears the existing remark.
- timeout str
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000.
- evaluation
Count Number - The number of retries after a probe failure. A service is marked abnormal only after this many consecutive failures, preventing transient network fluctuations from triggering false alarms. Valid values:
0,1,2,3. - extend
Info String - A JSON string containing protocol-specific probe configuration. The supported keys depend on
protocol. SeeextendInfobelow. - failure
Rate Number - The failure-rate threshold (%) among selected probe nodes. If the percentage of failing nodes exceeds this value, the service address is marked as abnormal. Valid values:
0,20,50,80,100. - interval String
- The interval between consecutive probes, in seconds. Valid values:
15,60,300,900,1800,3600. The15seconds interval is only available for Flagship Edition instances. - ip
Version String - The IP version of the probing node. Valid values:
IPv4,IPv6. - isp
City List<Property Map>Nodes - The set of monitoring nodes that this template will probe from. Use the ListCloudGtmMonitorNodes API to look up available
cityCode/ispCodecombinations. SeeispCityNodesbelow. - name String
- The name of the monitor template. It is recommended to use a name that reflects the health-check protocol for easier identification.
- protocol String
- The probing protocol of the template. Valid values:
ping,tcp,http,https. - remark String
- The remark of the monitor template. Passing an empty value clears the existing remark.
- timeout String
- Probe request timeout, in milliseconds. Probe packets that do not return within this duration are treated as timeouts. Valid values:
2000,3000,5000,10000.
Supporting Types
MonitorTemplateIspCityNode, MonitorTemplateIspCityNodeArgs
Import
Alidns Cloud Gtm Monitor Template can be imported using the id, e.g.
$ pulumi import alicloud:alidnscloudgtm/monitorTemplate:MonitorTemplate example <template_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.
published on Tuesday, Apr 28, 2026 by Pulumi
