# Get metrics for specific operation Returns sliding window metrics for a single ActivityPub operation, including count, average processing time, and percentiles. The metrics are calculated over the specified time window. Returns 404 if no data exists for the operation or the window has expired. RBAC: - requires ANY of Federation.Read, Federation.Manage Endpoint: GET /api/v1/admin/federation/metrics/running-average-single Version: 1.0 Security: ## Query parameters: - `operation` (string, required) The ActivityPub operation to get metrics for Example: "follow" - `window` (string, required) Time window for metric calculation (e.g., ONE_HOUR, SIX_HOURS, TWENTY_FOUR_HOURS) Enum: "TEN_MINUTES", "ONE_HOUR", "TWENTY_FOUR_HOURS" ## Response 200 fields (application/json): - `average` (number, required) Average duration in milliseconds for operations in this window - `count` (integer, required) Total number of operations recorded in this window - `totalTime` (integer, required) Sum of all operation durations in milliseconds - `lastUpdated` (string, required) When the last metric was added to this window Example: "2022-03-10T16:15:50Z" - `operation` (string, required) The operation name being tracked - `windowCreated` (string, required) When this window was created (first metric timestamp) Example: "2022-03-10T16:15:50Z" ## Response 403 fields (application/json): - `errorCode` (string, required) Error code - `message` (string, required) Error message - `docUrl` (string) Link to documentation ## Response 404 fields (application/json): - `errorCode` (string, required) Error code - `message` (string, required) Error message - `docUrl` (string) Link to documentation