From a55bd6d2bd7b11aed653f4614836caed4103bec3 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 31 Jan 2025 19:27:18 +0100 Subject: [feature] Add `instance-stats-randomize` config option (#3718) * [feature] Add `instance-stats-randomize` config option * don't use cache (overkill) --- internal/api/model/instancev2.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/api/model/instancev2.go') diff --git a/internal/api/model/instancev2.go b/internal/api/model/instancev2.go index b3d11dee2..96399ea06 100644 --- a/internal/api/model/instancev2.go +++ b/internal/api/model/instancev2.go @@ -74,6 +74,13 @@ type InstanceV2 struct { Terms string `json:"terms,omitempty"` // Raw (unparsed) version of terms. TermsText string `json:"terms_text,omitempty"` + + // Random stats generated for the instance. + // Only used if `instance-stats-randomize` is true. + // Not serialized to the frontend. + // + // swagger:ignore + RandomStats `json:"-"` } // Usage data for this instance. -- cgit v1.2.3