Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/ZWatch Operations/Alarm Operations
GETAlarm OperationsSince 2.3SynchronousAuth Required
GetAlarmData
GetAlarmData
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 records.
conditionsListOptional. The conditions to filter the results.
countbooleanOptional. Whether to query the message count.
Responses
Endpoint
GET/zstack/v1/zwatch/alarm-histories
/zstack/v1/zwatch/alarm-histories
Request Example
curl -X GET 'http://{host}/zstack/v1/zwatch/alarm-histories?startTime=1&endTime=1&limit=1&conditions=<conditions>&count=True&excludeOtherAccount=True&endpointUuid=<endpointUuid>&systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "histories": [ { "alarmUuid": "143b24a12d193c1992c4774dc3b34fda", "namespace": "ZStack/VM", "metricName": "CPUUsedUtilization", "accountUuid": "90aea7a1dfe93cf7bd3379254dddbdf9", "resourceUuid": "4e6bb5390d3938cb9ce830a4766ee4d8", "resourceType": "VmInstanceVO", "alarmStatus": "Alarm", "alarmName": "test-alarm", "threshold": 90.0, "labels": "VMUuid Equal 4e6bb5390d3938cb9ce830a4766ee4d8, CPUNum Equal 2", "metricValue": 10.0, "comparisonOperator": "LessThan", "time": 1.510669257141E12 } ] }Change History
This API has no change history records yet.
