You can call this operation to report the monitoring data for one or more custom events.

Debugging

You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can call APIs, dynamically generate SDK example code, and retrieve APIs.

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 No IOException

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

EventInfo.N.EventName String No myEvent

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

EventInfo.N.GroupId String No 0

The ID of the application group. The value of 0 indicates that the monitoring data for a random application group is reported. Valid values of N: 1 to 50.

EventInfo.N.Time String No 20171013T170923.456+0800

The time when the event occurred. Valid values of N: 1 to 50.

Response parameters

Parameter Type Example Description
Code String 200

The status code. A value of 200 indicates that the call is successful.

Message String success

The error message.

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

The request ID for troubleshooting.

Examples

Sample requests


http(s)://[Endpoint]/? Action=PutCustomEvent
&<Common request parameters>

Successful response examples

XML format

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

JSON format

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

Error codes

View error codes