monitor — Cloud Monitor
monitor · 2018-07-24

DescribeProductEventList

POST

Get the list of product events by page.

Wire call

Converge Cloud is RPC over HTTP. There is one path — / — and the action travels in the X-TC-Action header. The /monitor/DescribeProductEventList path used in the OpenAPI document is a documentation convenience so each action is addressable; it is not a route on the server.

curl
curl -sS https://monitor.api3.convergecloud.com/ \
  -H 'Authorization: TC3-HMAC-SHA256 Credential=<SecretId>/<YYYY-MM-DD>/monitor/tc3_request, SignedHeaders=content-type;host;x-tc-action, Signature=<sig>' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Host: monitor.api3.convergecloud.com' \
  -H 'X-TC-Action: DescribeProductEventList' \
  -H 'X-TC-Version: 2018-07-24' \
  -H 'X-TC-Timestamp: <unix-seconds>' \
  -H 'X-TC-Region: luzon' \
  -d '{"Module":"<Module>"}'

Request parameters

FieldTypeRequiredDescription
ModulestringYesAPI component name. It is fixed to monitor.
ProductNamestring[]NoFilter by product type. For example, "cvm" indicates Cloud Virtual Machine.
EventNamestring[]NoFilter by event name. For example, "guest_reboot" indicates instance restart.
InstanceIdstring[]NoAffected object, such as "ins-19708ino".
DimensionsDescribeProductEventListDimensions[]NoFilter by dimension, such as by public IP: 10.0.0.1.
RegionListstring[]NoRegion filter parameter for service events.
Typestring[]NoFilter by event type. Valid values: ["status_change","abnormal"], which indicate events whose statuses have changed and events with exceptions respectively.
Statusstring[]NoFilter by event status. Valid values: ["recover","alarm","-"], which indicate that an event has been recovered, has not been recovered, and has no status respectively.
Projectstring[]NoFilter by project ID.
IsAlarmConfigintegerNoFilter by alarm status configuration. The value 1 indicates that the alarm status has been configured. The value 0 indicates that the alarm status has not been configured.
TimeOrderstringNoSorting by update time. The value ASC indicates the ascending order. The value DESC indicates the descending order. The default value is DESC.
StartTimeintegerNoStart time, which is the timestamp one day prior by default.
EndTimeintegerNoEnd time, which is the current timestamp by default.
OffsetintegerNoPage offset. The default value is 0.
LimitintegerNoThe number of parameters that can be returned on each page. The default value is 20.

Response

Fields are returned inside the Response envelope. Converge Cloud answers HTTP 200 for errors as well as successes, so read Response.Error rather than the status code — and test for the presence of that object, because Code is occasionally the empty string.

FieldTypeDescription
EventsDescribeProductEventListEvents[]Event list
OverViewDescribeProductEventListOverViewEvent statistics.
TotalintegerTotal number of events.
RequestIdstringThe unique request ID, which is returned for each request. RequestId is required for locating a problem.
Success
{
  "Response": {
    "Events": …,
    "OverView": …,
    "RequestId": "…"
  }
}
Error
{
  "Response": {
    "Error": { "Code": "…", "Message": "…" },
    "RequestId": "…"
  }
}

Try it

CredentialThe key never leaves this tab — it signs the request here. The signed request goes to /api-relay/monitor.
Request bodyvalid JSONPOST monitor.api3.convergecloud.com · DescribeProductEventList
Read-only. Creates nothing.
Recorded example response
{
  "Events": [],
  "OverView": {
    "StatusChangeAmount": 0,
    "UnConfigAlarmAmount": 0,
    "UnNormalEventAmount": 0,
    "UnRecoverAmount": 0
  },
  "Total": 0
}