diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-21 11:42:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-21 11:42:52 +0200 |
commit | c6867725fb8e3dfbc2018a37ed5a963103587cb6 (patch) | |
tree | 92e00e551c95553c6090e26a7502593e72bdcfd7 /server/middlewares | |
parent | b63c607b92fd3ec62e370b73e398062bcf317738 (diff) | |
download | PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.tar.gz PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.tar.zst PeerTube-c6867725fb8e3dfbc2018a37ed5a963103587cb6.zip |
Add p2p info to metrics
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/metrics.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/middlewares/validators/metrics.ts b/server/middlewares/validators/metrics.ts index ced9afc69..986b30a19 100644 --- a/server/middlewares/validators/metrics.ts +++ b/server/middlewares/validators/metrics.ts | |||
@@ -13,12 +13,11 @@ const addPlaybackMetricValidator = [ | |||
13 | .optional() | 13 | .optional() |
14 | .isInt({ min: 0 }), | 14 | .isInt({ min: 0 }), |
15 | 15 | ||
16 | body('totalPeers') | 16 | body('p2pPeers') |
17 | .optional() | 17 | .optional() |
18 | .isInt({ min: 0 }), | 18 | .isInt({ min: 0 }), |
19 | 19 | ||
20 | body('p2pEnabled') | 20 | body('p2pEnabled') |
21 | .optional() | ||
22 | .isBoolean(), | 21 | .isBoolean(), |
23 | 22 | ||
24 | body('playerMode') | 23 | body('playerMode') |