Reports one or more custom events.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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.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.

Format: yyyyMMddTHHmmss.SSSZ.

Valid values of N: 1 to 50.

Note You can also specify a UNIX timestamp. Example: 1552199984000. Unit: milliseconds.
EventInfo.N.GroupId String No 123456

The ID of the application group. Valid values of N: 0 to 50.

Default value: 0. This value indicates that the custom event to be reported does not belong to any application group.

EventInfo.N.Content String Yes IOException

The content of the custom event. Valid values of N: 1 to 50.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String success

The returned message.

RequestId String 131DD9C8-9A32-4428-AD2E-4E3013B6E3A7

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=PutCustomEvent
&EventInfo.1.Content=IOException
&EventInfo.1.EventName=myEvent
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<Message>success</Message>
<RequestId>131DD9C8-9A32-4428-AD2E-4E3013B6E3A7</RequestId>
<Code>200</Code>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Message" : "success",
  "RequestId" : "131DD9C8-9A32-4428-AD2E-4E3013B6E3A7",
  "Code" : "200"
}

Error codes

For a list of error codes, see Service error codes.