All Products
Search
Document Center

Application Real-Time Monitoring Service:UpdateTimingSyntheticTask

Last Updated:May 17, 2024

Updates a scheduled synthetic test task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
arms:UpdateTimingSyntheticTaskWrite
  • SyntheticTask
    acs:arms:{#regionId}:{#accountId}:synthetictask/{#TaskId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID.

cn-hangzhou
TaskIdstringNo

The ID of the synthetic monitoring task.

5308a2691f59422c8c3b7aeccxxxxxxx
NamestringNo

The name of the task.

AlibabaCloud DNS Task
TaskTypeintegerNo

The type of the task. Valid values:

1: ICMP. 2: TCP. 3: DNS. 4: HTTP. 5: website speed measurement. 6: file download.

1
MonitorConfobjectNo

The monitoring configurations.

NetICMPobjectNo

The ICMP synthetic test parameters.

TargetUrlstringNo

The destination host IP address or domain name. Port numbers, protocol headers, or request paths are not supported.

www.aliyun.com
IntervallongNo

The interval at which ICMP packets are sent. Unit: milliseconds. Minimum value: 200. Maximum value: 10000.

300
PackageNumintegerNo

The number of ICMP packets that are sent. Minimum value: 1. Maximum value: 50. Default value: 4.

4
PackageSizeintegerNo

The size of each ICMP packet. Unit: bytes. Valid values: 32, 64, 128, 256, 512, 1024.

32
SplitPackagebooleanNo

Specifies whether to split ICMP packets. Default value: true.

true
TimeoutlongNo

The timeout period for the TCP synthetic test. Unit: milliseconds. Minimum value: 1000. Maximum value: 300000. Default value: 20000.

5000
TracertEnablebooleanNo

Specifies whether to enable the tracert command. Default value: true.

true
TracertNumMaxintegerNo

The maximum number of hops for tracert. Minimum value: 1. Maximum value: 128. Default value: 64.

20
TracertTimeoutlongNo

The timeout period of tracert. Unit: milliseconds. Minimum value: 1000. Maximum value: 300000. Default value: 60000.

60000
NetTCPobjectNo

The TCP synthetic tests parameters. This parameter is required if the TaskType parameter is set to 2.

TargetUrlstringNo

The destination host IP address.

127.0.0.1:8888
ConnectTimesintegerNo

The number of TCP connections that are established in a test. Minimum value: 1. Maximum value: 16. Default value: 4.

4
IntervallongNo

The interval at which TCP connections are established. Unit: milliseconds. Minimum value: 200. Maximum value: 10000. Default value: 200.

300
TimeoutlongNo

The timeout period for the TCP synthetic test. Unit: milliseconds. Minimum value: 1000. Maximum value: 300000. Default value: 20000.

1000
TracertEnablebooleanNo

Specifies whether to enable the tracert command. Default value: true.

true
TracertNumMaxintegerNo

The maximum number of hops for tracert. Minimum value: 1. Maximum value: 128. Default value: 20.

20
TracertTimeoutlongNo

The timeout period of tracert. Unit: milliseconds. Minimum value: 1000. Maximum value: 300000. Default value: 60000.

1000
NetDNSobjectNo

The DNS synthetic test parameters.

TargetUrlstringNo

The destination domain name.

www.aliyun.com
DigintegerNo

Specifies whether to use dig to display the data. 0: No. 1: Yes.

0
DnsServerIpTypeintegerNo

The IP version of the DNS server. 0: IPv4. 1: IPv6. 2: A version is automatically selected. Default value: 0.

0
NsServerstringNo

The IP address of the DNS server. Default value: 114.114.114.114.

114.114.114.114
QueryMethodintegerNo

The DNS query. 0: recursive, 1: iterative. Default value: 0.

0
TimeoutlongNo

The timeout period for the DNS synthetic test. Unit: milliseconds. The minimum value is 1000 and the maximum value is 45000. Default value: 5000.

1000
ApiHTTPobjectNo

The HTTP(S) synthetic test parameters.

TargetUrlstringNo

The URL or request path for synthetic monitoring.

https://********
MethodstringNo

The request method.

  • POST
  • GET
POST
RequestHeadersobjectNo

The custom header field.

stringNo

Format: JSON map.

{ "key1": "value1", "key2": "value2" }
RequestBodyobjectNo

The HTTP request body.

ContentstringNo

The content of the request body. Format: JSON string. The parameter is required if the type parameter is set to text/plain, application/json, application/xml, or text/html. Format: JSON string.

{ "key1": "value1", "key2": "value2" }
TypestringNo

The type of the request body. Valid values: text/plain, application/json, application/x-www-form-urlencoded, multipart/form-data, application/xml, and text/html.

application/json
ConnectTimeoutlongNo

The connection timeout period. Unit: milliseconds. Default value: 5000. Minimum value: 1000. Maximum value: 300000.

5000
TimeoutlongNo

The timeout period. Unit: milliseconds. Default value: 10000. Minimum value: 1000. Maximum value: 300000.

5000
WebsiteobjectNo

The website-speed measurement parameters.

TargetUrlstringNo

The destination URL.

https://********
AutomaticScrollingintegerNo

Specifies whether to automatically scroll up and down the screen to load a page. 0: No. 1: Yes. Default value: 0.

0
CustomHeaderintegerNo

Specifies whether to create a custom header. 0: No. 1: The first packet is modified. 2: All packets are modified. Default value: 0.

0
CustomHeaderContentobjectNo

The custom header. Format: JSON map.

stringNo

JSON Map

{ "key1": "value1", "key2": "value2" }
DisableCacheintegerNo

Specifies whether to disable the cache. 0: No. 1: Yes. Default value: 1.

0
DisableCompressionintegerNo

Specifies whether to accept compressed files based on the HTTP Accept-Encoding request header. 0: No. 1: Yes. Default value: 0.

0
FilterInvalidIPintegerNo

Specifies whether to filter invalid IP addresses.

  • 1: No
  • 0: Yes
0
IgnoreCertificateErrorintegerNo

Specifies whether to ignore SSL certificate errors during browsing. 0: No. 1: Yes. Default value: 1.

0
MonitorTimeoutlongNo

The monitoring timeout period. Unit: milliseconds. Minimum value: 5000. Maximum value: 300000. Default value: 40000.

20000
RedirectionintegerNo

Specifies whether to continue browsing after redirection. 0: No, 1:Yes. Default value: 1.

0
SlowElementThresholdlongNo

The time threshold that is used to define a slow element. Unit: milliseconds. Default value: 5000. Minimum value: 1. Maximum value: 300000.

5000
WaitCompletionTimelongNo

The maximum waiting time. Unit: milliseconds. Default value: 5000. Minimum value: 5000. Maximum value: 300000.

5000
FileDownloadobjectNo

The file download parameters.

TargetUrlstringNo

The file download URL.

https://img.alicdn.com/tfs/TB13DzOjXP7gK0jSZFjXXc5aXXa-212-48.png
DownloadKernelintegerNo

The kernel type.

  • 1: curl
  • 0: WinInet
0
QuickProtocolintegerNo

The QUIC protocol type.

  • 1: http1
  • 2: http2
  • 3: http3
1
ConnectionTimeoutlongNo

The connection timeout period. Unit: milliseconds. Minimum value: 1000. Maximum value: 120000. Default value: 5000.

5000
MonitorTimeoutlongNo

The monitoring timeout period. Unit: milliseconds. Minimum value: 1000. Maximum value: 120000. Default value: 60000.

60000
CustomHeaderContentobjectNo

The content of the custom request header.

stringNo

Format: JSON map.

{ "key1": "value1", "key2": "value2" }
IgnoreCertificateStatusErrorintegerNo

Specifies whether to ignore certificate status errors. 0: No. 1: Yes. Default value: 1.

0
IgnoreCertificateUntrustworthyErrorintegerNo

Specifies whether to ignore certificate incredibility. 0: No. 1: Yes. Default value: 1.

0
IgnoreInvalidHostErrorintegerNo

Specifies whether to ignore host invalidity. 0: No. 1: Yes. Default value: 1.

0
RedirectionintegerNo

Specifies whether to support redirection. 0: No. 1: Yes. Default value: 1.

0
TransmissionSizelongNo

The maximum file size of a single transfer. Unit: KB. Minimum value: 1. Maximum value: 20480. Valid values: 2048.

2048
IgnoreCertificateCanceledErrorintegerNo

Specifies whether to ignore certificate revocation errors. 0: No. 1: Yes. Default value: 1.

0
IgnoreCertificateAuthErrorintegerNo

Specifies whether to ignore CA certificate authentication errors. 0: No. 1: Yes. Default value: 1.

0
IgnoreCertificateOutOfDateErrorintegerNo

Specifies whether to ignore certificate invalidity. 0: No. 1: Yes. Default value: 1.

0
IgnoreCertificateUsingErrorintegerNo

Specifies whether to ignore certificate usage errors. 0: No. 1: Yes. Default value: 1.

0
MonitorCategoryintegerNo

The detection point type. 1: PC. 2: mobile device.

1
Monitorsobject []No

The list of monitoring points.

CityCodestringNo

The city code.

100001
OperatorCodestringNo

The carrier code.

1
ClientTypeintegerNo

The client type of the monitoring point. Valid values: 1: data center. 2: Internet. 3: mobile device. 4: ECS instance.

4
FrequencystringNo

The detection frequency. Valid values: 1m, 5m, 10m, 15m, 20m, 30m, 1h, 2h, 3h, 4h, 6h, 8h, 12h, and 24h.

5m
CustomPeriodobjectNo

The custom cycle.

EndHourintegerNo

The hour at which the test ends. Valid values: 0 to 24.

22
StartHourintegerNo

The hour at which the test starts. Valid values: 0 to 24.

14
CommonSettingobjectNo

The general settings.

CustomHostobjectNo

The custom host.

Hostsobject []No

The list of hosts.

DomainstringNo

The domain name.

www.aliyun.com
IpTypeintegerNo

The IP version. Valid values:

  • 0: A version is automatically selected.
  • 1: IPv4
  • 2: IPv6
0
IpsarrayNo

The list of IP addresses.

stringNo

The IP address.

127.0.0.1
SelectTypeintegerNo

The selection mode. 0: Random. 1: Polling.

0
IpTypeintegerNo

The IP version. Valid values:

  • 0: A version is automatically selected.
  • 1: IPv4
  • 2: IPv6
0
MonitorSamplesintegerNo

Specifies whether to evenly distribute monitoring samples. Valid values:

  • 0: No
  • 1: Yes
0
AvailableAssertionsobject []No

The list of assertions.

TypestringNo

The assertion type. Valid values: HttpResCode, HttpResHead, HttpResBody, HttpResBodyJson, HttpResponseTime, IcmpPackLoss (packet loss rate), IcmpPackMaxLatency (maximum packet latency), IcmpPackAvgLatency (average packet latency), TraceRouteHops (number of hops), DnsARecord (A record), DnsCName (CNAME), websiteTTFB (time to first packet), websiteTTLB (time to last packet), websiteFST (first paint time), websiteFFST (first meaningful paint), websiteOnload (full loaded time). For more information, see the following description.

TraceRouteHops
TargetstringNo

The check target. If you set the type parameter to HttpResCode, HttpResBody, or HttpResponseTime, you do not need to set the target parameter. If you set the type parameter to HttpResHead, you must specify the key in the header. If you set the type parameter to HttpResBodyJson, use jsonPath.

HttpResponseTime
OperatorstringNo

The condition. gt: greater than. gte: greater than or equal to. lt: less than. lte: less than or equal to. eq: equal to. neq: not equal to. ctn: contain. nctn: does not contain. exist: exist. n_exist: does not exist. belong: belong to. n_belong: does not belong to. reg_match: regular expression.

eq
ExpectstringNo

The expected value.

200
ResourceGroupIdstringNo

The resource group ID.

rg-acfmxyexli2****
Tagsobject []No

The list of tags.

KeystringNo

The key of the tag.

key
ValuestringNo

The value of the tag.

value

Assertion description:

HTTP synthetic tests:

● If the type parameter is set to HttpResCode, the Operator parameter supports the following values: eq, neq, gt, gte, lt, lte, belong, and n_belong.

● If the type parameter is set to HttpResHead, the Operator parameter supports all values.

● If the type parameter is set to HttpResBody, the Operator parameter supports all values.

● If the type parameter is set to HttpResBodyJson, the Operator parameter supports all values.

● If the type parameter is set to HttpResponseTime, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

ICMP synthetic tests:

● If the type parameter is set to IcmpPackLoss, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

● If the type parameter is set to IcmpPackMaxLatency, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

● If the type parameter is set to IcmpPackAvgLatency, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

● If the type parameter is set to TraceRouteHops, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

DNS synthetic tests:

● If the type parameter is set to DnsARecord, the Operator parameter supports the following values: eq, ctn, nctn, reg_match, not_reg_match. A records can be selectively displayed.

● If the type parameter is set to DnsCName, the Operator parameter supports the following values: eq, ctn, nctn, reg_match, not_reg_match. CNAME records can be selectively displayed.

Website speed measurement:

● If the type parameter is set to websiteTTFB, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

● If the type parameter is set to websiteTTLB, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

● If the type parameter is set to websiteFST, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

● If the type parameter is set to websiteFFST, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

● If the type parameter is set to websiteOnload, the Operator parameter supports the following values: gt, gte, lt, lte, eq, and belong.

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

F7781D4A-2818-41E7-B7BB-79D809E9****
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codelong

The status code. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed.

200
Messagestring

The message returned.

success
Dataobject

The struct returned.

TaskIdstring

The task ID.

1eeb351722c84e05b52c82fd0dc9953e

Examples

Sample success responses

JSONformat

{
  "RequestId": "F7781D4A-2818-41E7-B7BB-79D809E9****",
  "Success": true,
  "Code": 200,
  "Message": "success",
  "Data": {
    "TaskId": "1eeb351722c84e05b52c82fd0dc9953e"
  }
}

Error codes

HTTP status codeError codeError message
400ParameterMissing%s
400ParameterIllegal%s
400TaskQuotaLimit%s
400ParameterRegionIllegal%s
400DuplicateTagKeyParam tagKey is duplicate.
400TagNumOUTthe number of tag is out .
400NoPermissionUSERuser no permission
403RAMNotAuthorize%s
403STSNotAuthorize%s
403IllegalUserAccess%s
403APINotAuthorize%s
403CommercialStatusException%s
403SyntheticTrailExpired%s
403SyntheticInDebt%s
403SyntheticDailyTimesExhausted%s
403SyntheticDailyLimit%s
403INNER_PROHIBIT

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-04-12The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
2024-03-14The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
2024-03-01The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
2024-02-23The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
2024-01-05The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
Input ParametersThe request parameters of the API has changed.
    delete Input Parameters: TaskType
    delete Input Parameters: MonitorCategory
2023-11-07The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
2023-10-26The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 403 change
    delete Error Codes: 400
2023-09-08The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 403 change
    delete Error Codes: 400