Server statistics
get_statsRetrieve current Rustpad server statistics: start time, documents held in memory, and documents persisted in the database.
Instructions
Reads the Rustpad server statistics: start time, number of documents currently held in memory, and the number persisted in the database (0 when the instance runs without persistence).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_time | Yes | Unix seconds. | |
| database_size | Yes | Persisted pads; 0 on an instance without persistence. | |
| num_documents | Yes | Held in memory right now. | |
| start_time_iso | Yes |