User story #9976
closed
API endpoint to get information about queue status of uploaded inventories
Added by François ARMAND almost 8 years ago.
Updated almost 8 years ago.
Category:
Web - Nodes & inventories
Description
We would like to add a new api endpoint for the inventory application spec as follow:
GET /api/info
And answer:
- if the queue is not saturated: HTTP status 200 ok
{
"queueMaxSize": 200,
"queueFillCount": 89,
"queueSaturated": false
}
- if the queue is saturated: HTTP status 429 too many requests
{
"queueMaxSize": 200,
"queueFillCount": 200,
"queueSaturated": true
}
- Status changed from New to In progress
- Assignee set to François ARMAND
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/ldap-inventory/pull/97
Vincent let me remark that there is no reason to send queueMaxSize/queueFillCount as string in place of number, and queueSaturated as string in place of boolean.
So I will change answer format to:
{
"queueMaxSize": 200,
"queueFillCount": 200,
"queueSaturated": true
}
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
- Description updated (diff)
- % Done changed from 100 to 0
Updating the description to set on the top the real output format.
For the record, it was initially wrongly described as:
{
"queueMaxSize": "200",
"queueFillCount": "200",
"queueSaturated": "true"
}
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.18, 3.2.11, 4.0.3 and 4.1.0~beta3 which were released today.
- Related to Bug #11330: Inventory endpoint info api is reporting saturated off by one added
Also available in: Atom
PDF