Actions
User story #9976
closedAPI endpoint to get information about queue status of uploaded inventories
Status:
Released
Priority:
3
Assignee:
Category:
Web - Nodes & inventories
Target version:
Effort required:
Name check:
Fix check:
Regression:
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 }
Updated by François ARMAND almost 8 years ago
- Status changed from New to In progress
- Assignee set to François ARMAND
Updated by François ARMAND almost 8 years ago
- 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
Updated by François ARMAND almost 8 years ago
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 }
Updated by François ARMAND almost 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset ldap-inventory|04bb01d7ae71d4f4fc11bf1ed7f4ef317be68c64.
Updated by François ARMAND almost 8 years ago
- 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" }
Updated by Vincent MEMBRÉ almost 8 years ago
- Status changed from Pending release to Released
Updated by Janos Mattyasovszky over 7 years ago
- Related to Bug #11330: Inventory endpoint info api is reporting saturated off by one added
Actions