Details of an add-on schema.
Operation description
This topic provides an example of how to modify version 1 of alert template 123456. In this example, the alert level is set to Critical, the statistical method is set to Average, the comparison operator for the alert threshold is set to GreaterThanOrEqualToThreshold, the alert threshold is set to 90, and the number of retries is set to 3. The response indicates that the alert template was successfully modified.
Try it now
Test
RAM authorization
Request syntax
GET /addons/{addonName}/alert-code-template HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| addonName |
string |
Yes |
The name of the add-on. |
apm-opentelemetry |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| aliyunLang |
string |
No |
The language. Valid values: zh (Chinese) and en (English). Default value: zh. |
zh |
| environmentType |
string |
No |
The type of environment. Valid values: CS (Container Service) and ECS. |
Client |
| version |
string |
No |
The version of the component. |
0.1.0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| codes |
array<object> |
The list of code templates. |
|
|
object |
|||
| codeTemplate |
string |
The code template. |
javascript\nnpm install @arms/rum-miniapp --save |
| name |
string |
The name of the code template. |
cs-default-CS-cs-default-1753236205394-cs-default-CS-kubeApiserver |
| requestId |
string |
The ID of the request. |
0CEC5375-C554-562B-A65F-*** |
Examples
Success response
JSON format
{
"codes": [
{
"codeTemplate": "javascript\\nnpm install @arms/rum-miniapp --save",
"name": "cs-default-CS-cs-default-1753236205394-cs-default-CS-kubeApiserver"
}
],
"requestId": "0CEC5375-C554-562B-A65F-***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.