Querying Events

Function

This API is used to query events, including system events and custom events.

URI

GET /V1.0/{project_id}/events

Request

None

Response

Table 2 Parameter description

Parameter

Type

Mandatory

Description

events

Array of Events objects

No

Specifies one or more pieces of event data.

For details, see Table 3.

meta_data

MetaData object

No

Specifies the number of metadata records in the query result.

For details, see Table 4.

Table 3 events field description

Parameter

Type

Mandatory

Description

event_name

String

No

Specifies the event name.

event_type

String

No

Specifies the event type.

event_count

Integer

No

Specifies the number of occurrences of this event within the specified query time range.

latest_occur_time

Long

No

Specifies when the event last occurred.

latest_event_source

String

No

Specifies the event source. If the event is a system event, the value is the namespace of each service. To view the namespace of each service, see Services Interconnected with Cloud Eye.

If the event is a custom event, the event source is defined by the user.

Table 4 meta_data data structure description

Parameter

Type

Mandatory

Description

total

Integer

No

Specifies the total number of events.

Returned Values

Error Codes

See Error Codes.