Add an alert policy to the queue
Queue name
Alert policy. Contains the following three fields:
Alert operation. The type has the following options:
SEND_REQUEST, RECEIVE_REQUEST, CHANGE_REQUEST, DELETE_REQUEST, SINGLE_SEND_REQUEST, BATCH_SEND_REQUEST, SHORT_RECEIVE_REQUEST, LONG_RECEIVE_REQUEST, QUEUE_MESSAGE_NUMBER
among whichSEND_REQUEST, CHANGE_REQUEST, DELETE_REQUEST
refer to all, do not distinguish between single and batch, and do not distinguish between short and long polling; for the matter of distinctions we currently only provide a distinction between send and receive.
Statistical indicators. We compute statistics according to the measurement index. The type has the following options:
LATENCY, LATENCY_P999, COUNT
Only alerts for delays and number of message items are currently available,LATENCY
The value of this statistic is P99. When configuring user settings, please noteALERT_TYPE
andMEASUREMENT
pairings withREQUEST
-endings types should be paired with aLATENCY
-beginning MEASUREMENT, andQUEUE_MESSAGE_NUMBER
can only be used paired withCOUNT
otherwise it may cause an abnormality alert
Threshold value: There is an alert message when the threshold is exceeded.LATENCY
's unit is milliseconds.COUNT
's unit is the item. When a user does not explicitly set a threshold, the system alerts you at the default threshold value.LATENCY
's default threshold value is 5000ms. COUNT
's default threshold value is 50000 items
Note: For a Queue alert policy, it is uniquely identified by QueueName, OPERATION, and MEASUREMENT. In addition, the user's email address must be set in order to receive alerts.
Delete a Queue alert policy
Queue name
Alert policy. Details as above
Get Queue all alert policy
Queue name
Queue name
Alert policy table. Details as above