Mi Galaxy EMQ Book

addQueueAlertPolicy()


Add an alert policy to the queue

Parameter AddQueueAlertPolicyRequest

queueName : String : required

Queue name

alertPolicy : AlertPolicy : required

Alert policy. Contains the following three fields:

- alertType : ALERT_TYPE : required

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_REQUESTrefer 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.

- measurement : MEASUREMENT : required

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,LATENCYThe value of this statistic is P99. When configuring user settings, please noteALERT_TYPEandMEASUREMENTpairings withREQUEST-endings types should be paired with aLATENCY-beginning MEASUREMENT, andQUEUE_MESSAGE_NUMBERcan only be used paired withCOUNTotherwise it may cause an abnormality alert

- threshold : double : optional

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.

no return

deleteQueueAlertPolicy()


Delete a Queue alert policy

parameter DeleteAlertPolicyRequest

queueName : String : required

Queue name

alertPolicy : AlertPolicy : required

Alert policy. Details as above

Method no return

listQueueAlertPolicies()


Get Queue all alert policy

Method parameter ListQueueAlertPoliciesRequest

queueName : String : required

Queue name

Method return ListQueueAlertPoliciesResponse

queueName : String : required

Queue name

alertPolicies : List< AlertPolicy > : required

Alert policy table. Details as above