All Products
Search
Document Center

CloudMonitor:PutCustomEvent

Last Updated:Mar 01, 2024

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
EventInfoobject []Yes
EventNamestringYes

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

myEvent
TimestringNo

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.
20171013T170923.456+0800
GroupIdstringNo

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.

123456
ContentstringYes

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

IOException

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

Note The status code 200 indicates that the call was successful.
200
Messagestring

The returned message.

success
RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError message
400%s%s
500InternalErrorThe request processing has failed due to some unknown error.

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

Change history

Change timeSummary of changesOperation
No change history