mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 03:57:06 -04:00

This makes it possible for the autogenerated openapi file to contain all the dtos instead of nothing. Signed-off-by: Philip Molares <philip.molares@udo.edu>
47 lines
991 B
TypeScript
47 lines
991 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class ServerVersion {
|
|
@ApiProperty()
|
|
major: number;
|
|
@ApiProperty()
|
|
minor: number;
|
|
@ApiProperty()
|
|
patch: number;
|
|
@ApiProperty()
|
|
preRelease?: string;
|
|
@ApiProperty()
|
|
commit?: string;
|
|
}
|
|
|
|
export class ServerStatusDto {
|
|
@ApiProperty()
|
|
serverVersion: ServerVersion;
|
|
@ApiProperty()
|
|
onlineNotes: number;
|
|
@ApiProperty()
|
|
onlineUsers: number;
|
|
@ApiProperty()
|
|
distinctOnlineUsers: number;
|
|
@ApiProperty()
|
|
notesCount: number;
|
|
@ApiProperty()
|
|
registeredUsers: number;
|
|
@ApiProperty()
|
|
onlineRegisteredUsers: number;
|
|
@ApiProperty()
|
|
distinctOnlineRegisteredUsers: number;
|
|
@ApiProperty()
|
|
isConnectionBusy: boolean;
|
|
@ApiProperty()
|
|
connectionSocketQueueLength: number;
|
|
@ApiProperty()
|
|
isDisconnectBusy: boolean;
|
|
@ApiProperty()
|
|
disconnectSocketQueueLength: number;
|
|
}
|