mirror of https://github.com/OpenVidu/openvidu.git
1.4 KiB
1.4 KiB
MODIFIED Requirements
Requirement: Storage and database facts in info
Edition: CE. With a valid bearer token GET /api/v1/info SHALL include database (version of the MongoDB server
and timeseriesSupported) and storage, one entry per analytics collection with documents, storageBytes,
indexBytes and oldest (the earliest value of the collection's time field when an index leads with it, and of
firstSeenAt for nodes), read with $collStats and cached for 60 seconds.
Scenario: Storage per collection
- GIVEN a database with 1 200 rooms and 20 000 raw events
- WHEN the client requests
GET /api/v1/infowith a valid token - THEN
storage.rooms.documentsis1200,storage.events.documentsis20000, every entry hasstorageBytesandindexBytes, anddatabase.versionis the server version string
Scenario: Oldest per collection
- GIVEN a database with documents in every analytics collection
- WHEN the client requests
GET /api/v1/infowith a valid token - THEN
oldestholds the earliestcreatedAtofroomsandingresses,joinedAtofparticipants,startedAtofegressesandingress_sessions,tsofevents,bucketof the 5-minute and hourly rollups and of theglobalscope of the daily rollups, andfirstSeenAtofnodes, whiletracks,track_subscriptionsandtrack_statshave nooldest