Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/ZWatch Operations/Event Operations
GETEvent OperationsSince 2.3SynchronousAuth Required
GetEventData
GetEventData
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Query Parameters
Request Inputs
Query Parameters
startTimeLongOptional. The start time.
endTimeLongOptional. The end time.
limitIntegerOptional. The maximum number of returned items.
offsetAheadOfCurrentTimeLongOptional. The offset (in milliseconds) between the query time and the current time. Note that the query time is earlier than the current time. For example, if you query messages collected in the last one hour, 3600000 (the offset) will be transferred to the system.
conditionsListOptional. The filter conditions.
Responses
Endpoint
GET/zstack/v1/zwatch/events
/zstack/v1/zwatch/events
Request Example
curl -X GET 'http://{host}/zstack/v1/zwatch/events?startTime=1&endTime=1&limit=1&offsetAheadOfCurrentTime=1&conditions=<conditions>&count=True&endpointUuid=<endpointUuid>&systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "events": [ { "namespace": "ZStack/VM", "name": "org.zstack.zwatch.datatype.EventFamily@2c24d960", "labels": {}, "emergencyLevel": "Normal", "resourceId": "b7bbe5fb9ab049c5a36bf8a646471cff", "resourceName": "VmInstanceVO", "time": 1.596444516324E12 } ] }Change History
This API has no change history records yet.
