Skip to content

Get Server Metrics

Stable

Getting server metrics returns aggregate statistics for the registry — the total number of published mods and the total number of mod downloads across all releases.

PropertyValue
Applies toWebapp
TriggerClient requests GET /api/server-metrics
PreconditionsNone

Inputs

There are no inputs.

Assertions

AssertionStatus
None — the operation always succeeds

Outputs

ServerMetricsData : An object with two fields:

totalMods : Number. The total count of publicly visible mods in the registry.

totalDownloads : Number. The total count of recorded downloads across all releases.

Effects

None. This is a read-only operation.

Behavior

mermaid
flowchart TD
    Start([GET /api/server-metrics]) --> Query[modRepository.getServerMetrics]
    Query --> Done(["{ totalMods, totalDownloads }"])

    style Done fill:#4ade80,color:#000

See Also