api, metrics: add endpoints and metrics for RTSP connections (#1233)

new API endpoints:

* /v1/rtspconns/list
* /v1/rtspsconns/list

new metrics:

* rtsp_conns
* rtsps_conns
This commit is contained in:
Alessandro Ros
2022-11-09 18:31:31 +01:00
committed by GitHub
parent 16580c8985
commit 4ac175d3cc
12 changed files with 291 additions and 109 deletions

View File

@@ -163,7 +163,7 @@ func TestCorePathAutoDeletion(t *testing.T) {
}
}()
res := p.pathManager.apiPathsList(pathAPIPathsListReq{})
res := p.pathManager.apiPathsList()
require.NoError(t, res.err)
require.Equal(t, 0, len(res.data.Items))