mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
Add monitoring module
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
f98bf0d32d
commit
eab06c0296
6 changed files with 83 additions and 1 deletions
27
src/monitoring/monitoring.service.ts
Normal file
27
src/monitoring/monitoring.service.ts
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { Injectable } from '@nestjs/common';
|
||||
import { ServerStatusDto } from './server-status.dto';
|
||||
|
||||
@Injectable()
|
||||
export class MonitoringService {
|
||||
getServerStatus(): ServerStatusDto {
|
||||
return {
|
||||
connectionSocketQueueLenght: 0,
|
||||
destictOnlineUsers: 0,
|
||||
disconnectSocketQueueLength: 0,
|
||||
distictOnlineRegisteredUsers: 0,
|
||||
isConnectionBusy: false,
|
||||
isDisconnectBusy: false,
|
||||
notesCount: 0,
|
||||
onlineNotes: 0,
|
||||
onlineRegisteredUsers: 0,
|
||||
onlineUsers: 0,
|
||||
registeredUsers: 0,
|
||||
serverVersion: {
|
||||
major: 2,
|
||||
minor: 0,
|
||||
patch: 0,
|
||||
preRelease: 'dev',
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue