diff options
| author | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
| commit | 4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch) | |
| tree | c296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /www/json-api/api-stat.md | |
| download | relic-4f49b16079b27d7ce633619e4cddfdf2bffbc952.tar.gz | |
Diffstat (limited to 'www/json-api/api-stat.md')
| -rw-r--r-- | www/json-api/api-stat.md | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/www/json-api/api-stat.md b/www/json-api/api-stat.md new file mode 100644 index 0000000..e4cd902 --- /dev/null +++ b/www/json-api/api-stat.md @@ -0,0 +1,59 @@ +# JSON API: /stat +([⬑JSON API Index](index.md)) + +# Repository Stats + +**Status:** implemented + +**Required privileges:** "o" + +**Request:** `/json/stat` + +**Response payload example:** (fields marked with `*` are omitted in +"brief" mode) + +```json +{ +"projectName":"Fossil", +"projectDescription":"Fossil SCM", /* added 20120217 */ +"repositorySize":24464384, +* "blobCount":13612, +* "deltaCount":9348, +* "uncompressedArtifactSize":589205834, +* "averageArtifactSize":43292, +* "maxArtifactSize":4620758, +* "compressionRatio":"24:1", +* "checkinCount":3150, +* "fileCount":456, +* "wikiPageCount":23, +* "ticketCount":940, +"ageDays":1512, +"ageYears":4.139744, +"projectCode":"25d3a4b83202c0d616a5ed17334f180dac4434dc", +"compiler":"gcc-4.1.2 20080704 (Red Hat 4.1.2-50)", +"sqlite":{ + "version":"2011-09-04 01:27:00 [6b657ae750] (3.7.8)", + "pageCount":23891, + "pageSize":1024, + "freeList":2705, + "encoding":"UTF-8", + "journalMode":"delete" +} +} +``` + +**Options:** + +- "Full detail" mode:\ + **HTTP/payload parameter:** full=bool\ + **CLI MODE:** -f|--full with no value.\ + If true then all properties are included, else certain properties + are omitted from the payload (because they take a relatively long + time to calculate).\ + **TODO:** rename this to verbose, for consistency.\ + **Default=false**. *This is in contrast to the HTML interface*, + which defaults to full detail mode. Testing shows stat to have a + relatively high per-call cost/run time, so it defaults + to "brief" mode by default. Full-detail mode can, on slow hardware, + take half a minute to respond, whereas non-full mode takes well + under one second. |
