Skip to main content

MetricsDto

Application metrics response

book_countinteger<int64>required

Total number of books across all libraries

Example: 3500
database_sizeinteger<int64>required

Database size in bytes (approximate)

Example: 10485760
libraries object[]required

Breakdown by library

  • Array [
  • book_countinteger<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
    series_countinteger<int64>required

    Number of series in this library

    Example: 45
    total_sizeinteger<int64>required

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

    Example: 15728640000
  • ]
  • library_countinteger<int64>required

    Total number of libraries in the system

    Example: 5
    page_countinteger<int64>required

    Number of pages across all books

    Example: 175000
    series_countinteger<int64>required

    Total number of series across all libraries

    Example: 150
    total_book_sizeinteger<int64>required

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

    Example: 52428800000
    user_countinteger<int64>required

    Number of registered users

    Example: 12
    MetricsDto
    {
    "book_count": 3500,
    "database_size": 10485760,
    "libraries": [
    {
    "book_count": 1200,
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Comics",
    "series_count": 45,
    "total_size": "15728640000"
    }
    ],
    "library_count": 5,
    "page_count": 175000,
    "series_count": 150,
    "total_book_size": "52428800000",
    "user_count": 12
    }