Python
import requests url = "https://{FUSION HOST}/api/collections/{collection}/stats" response = requests.get(url) print(response.json())
{ "collectionId": "<string>", "documentCount": 123, "requestCount": 123, "avgTimePerRequestMs": 123, "sizeInBytes": 123, "lastModified": "2023-11-07T05:31:56Z" }
Stats include the number of documents in the index, how many requests have been made of the collection, the average request time, and the index size in bytes.
The name of a collection.
successful operation
Was this page helpful?