Reports one or more custom events.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | PutCustomEvent |
The operation that you want to perform. Set the value to PutCustomEvent. |
EventInfo.N.Content | String | Yes | IOException |
The content of the custom event. Valid values of N: 1 to 50. |
EventInfo.N.EventName | String | Yes | myEvent |
The name of the custom event. Valid values of N: 1 to 50. |
EventInfo.N.Time | String | No | 20171013T170923.456+0800 |
The time when the custom event occurred. Valid values of N: 1 to 50. |
EventInfo.N.GroupId | String | No | 123456 |
The ID of the application group. Valid values of N: 1 to 50. If the reported event belongs to no application groups, set the value to 0. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 131DD9C8-9A32-4428-AD2E-4E3013B6E3A7 |
The ID of the request. |
Code | String | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | success |
The returned message. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=PutCustomEvent
&EventInfo.1.Content=IOException
&EventInfo.1.EventName=myEvent
&<Common request parameters>
Sample success responses
XML
format
<Message>success</Message>
<RequestId>131DD9C8-9A32-4428-AD2E-4E3013B6E3A7</RequestId>
<Code>200</Code>
JSON
format
{
"Message": "success",
"RequestId": "131DD9C8-9A32-4428-AD2E-4E3013B6E3A7",
"Code": "200"
}
Error codes
For a list of error codes, visit the API Error Center.