Skip to main content

MetricsDto

Application metrics response

bookCountinteger<int64>required

Total number of books across all libraries

Example: 3500
databaseSizeinteger<int64>required

Database size in bytes (approximate)

Example: 10485760
libraries object[]required

Breakdown by library

  • Array [
  • bookCountinteger<int64>required

    Number of books in this library

    Example: 1200
    idstring<uuid>required

    Library ID

    Example: 550e8400-e29b-41d4-a716-446655440000
    namestringrequired

    Library name

    Example: Comics
    seriesCountinteger<int64>required

    Number of series in this library

    Example: 45
    totalSizeinteger<int64>required

    Total size of books in bytes (approx. 15GB)

    Example: 15728640000
  • ]
  • libraryCountinteger<int64>required

    Total number of libraries in the system

    Example: 5
    pageCountinteger<int64>required

    Number of pages across all books

    Example: 175000
    seriesCountinteger<int64>required

    Total number of series across all libraries

    Example: 150
    totalBookSizeinteger<int64>required

    Total size of all books in bytes (approx. 50GB)

    Example: 52428800000
    userCountinteger<int64>required

    Number of registered users

    Example: 12
    MetricsDto
    {
    "bookCount": 3500,
    "databaseSize": 10485760,
    "libraries": [
    {
    "bookCount": 1200,
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Comics",
    "seriesCount": 45,
    "totalSize": "15728640000"
    }
    ],
    "libraryCount": 5,
    "pageCount": 175000,
    "seriesCount": 150,
    "totalBookSize": "52428800000",
    "userCount": 12
    }