nats-io / nats-architecture-and-design

Architecture and Design Docs
Apache License 2.0
196 stars 21 forks source link

Handle Account Statistics Schema Update #120

Closed scottf closed 1 year ago

scottf commented 2 years ago

Overview

The JS Management API get account statistics returns a account_info_response The account_stats object was updated and available in this server commit

Clients should be updated to support the full schema specification

Clients and Tools

Other Tasks

Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.

scottf commented 2 years ago

Sample Json:

{
    "type": "io.nats.jetstream.api.v1.account_info_response",
    "memory": 0,
    "storage": 6829550,
    "streams": 1,
    "consumers": 0,
    "limits": {
        "max_memory": 0,
        "max_storage": 0,
        "max_streams": 0,
        "max_consumers": 0,
        "max_ack_pending": 0,
        "memory_max_stream_bytes": 0,
        "storage_max_stream_bytes": 0,
        "max_bytes_required": false
    },
    "domain": "ngs",
    "api": {
        "total": 6,
        "errors": 0
    },
    "tiers": {
        "R1": {
            "memory": 0,
            "storage": 6829550,
            "streams": 1,
            "consumers": 0,
            "limits": {
                "max_memory": 0,
                "max_storage": 2000000000000,
                "max_streams": 100,
                "max_consumers": 1000,
                "max_ack_pending": -1,
                "memory_max_stream_bytes": -1,
                "storage_max_stream_bytes": -1,
                "max_bytes_required": true
            }
        },
        "R3": {
            "memory": 0,
            "storage": 0,
            "streams": 0,
            "consumers": 0,
            "limits": {
                "max_memory": 0,
                "max_storage": 500000000000,
                "max_streams": 25,
                "max_consumers": 250,
                "max_ack_pending": -1,
                "memory_max_stream_bytes": -1,
                "storage_max_stream_bytes": -1,
                "max_bytes_required": true
            }
        }
    }
}
bruth commented 1 year ago

There does not appear to be an ADR to update, so closing.