Create Tag
Name of Tag-related Queue
Name of Tag waiting to be created
The start timestamp of the tag.
When this number is 0, it means to receive starting from the oldest remaining Message in the queue.
When this value is less than 0, it means to receive starting from the current time.
The default value is -1
User-defined attributes associated with tags, such as tag descriptions
attributeName is used together with attributeValue to filter the certain attributes of messages received via tags.
If these two parameters are not set, all messages in the Queue are received
If the attributeName is specified, the field type in the attributeValue is set to "empty", indicating that all messages with the attribute of the attributeName (case-sensitive) are received
. Otherwise, only those messages whose attributeName, attributeValue.type and attributeValue.value match at the same time will be received via Tag
For a detailed explanation of the MessageAttribute type, see sendMessage()
The backend implements a more efficient filtering interface for the filter conditions set by the attributes filter list and attributes filter logic. AttributesFilter includes 2 fields:
Same as the queueName in request
Same as tagName in request
The real start timestamp of the created Tag
When the timestamp in the creation request is less than or equal to 0, or less than the timestamp of the oldest Message retained in the Queue, this number will be greater than the value in the request
Note
Once a Tag is created, its attributes (including the start timestamp, filter, etc.) cannot be changed. If you need to adjust the attribute, you can only delete the tag and create it again.
Adding a tag will impose an additional burden on the EMQ system, so each Queue can create up to 20 corresponding tags (not adjustable).
Delete Tag
Lists the names of all the tags associated with a Queue
The name of the Tag to be obtained
When this value is null, get the Queue default tag information
Tag start timestamp, same as value in CreateTagResponse
If it is the default tag of Queue, this value is 0
For specific fields see the explanation in getQueueInfo()
.
User-defined attributes
Constitutes the tag filter information together with the following attributeValue
Filtered attribute list and logical relationship