CockroachDB · Schema

Session

An active SQL session on the CockroachDB cluster, representing a connection from a client application.

Cluster ManagementCloudDatabaseDistributed SQLInfrastructurePostgreSQL CompatibleSQL

Properties

Name Type Description
node_id integer Node ID where this session is being served.
username string SQL username of the session.
client_address string Network address of the client (host:port).
application_name string Application name reported by the SQL client driver.
start string Timestamp when the session was established.
last_active_query string Most recently executed SQL query in this session.
id string Unique identifier of the session.
alloc_bytes integer Memory allocated by this session in bytes.
max_alloc_bytes integer Peak memory allocation for this session in bytes.
active_queries array Currently executing queries within this session.
active_txn object Currently active transaction within this session, if any.
View JSON Schema on GitHub

JSON Schema

cockroachdb-session-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Session",
  "title": "Session",
  "type": "object",
  "description": "An active SQL session on the CockroachDB cluster, representing a connection from a client application.",
  "properties": {
    "node_id": {
      "type": "integer",
      "description": "Node ID where this session is being served."
    },
    "username": {
      "type": "string",
      "description": "SQL username of the session."
    },
    "client_address": {
      "type": "string",
      "description": "Network address of the client (host:port)."
    },
    "application_name": {
      "type": "string",
      "description": "Application name reported by the SQL client driver."
    },
    "start": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the session was established."
    },
    "last_active_query": {
      "type": "string",
      "description": "Most recently executed SQL query in this session."
    },
    "id": {
      "type": "string",
      "description": "Unique identifier of the session."
    },
    "alloc_bytes": {
      "type": "integer",
      "format": "int64",
      "description": "Memory allocated by this session in bytes."
    },
    "max_alloc_bytes": {
      "type": "integer",
      "format": "int64",
      "description": "Peak memory allocation for this session in bytes."
    },
    "active_queries": {
      "type": "array",
      "description": "Currently executing queries within this session.",
      "items": {
        "type": "object"
      }
    },
    "active_txn": {
      "type": "object",
      "description": "Currently active transaction within this session, if any."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cockroachdb-session"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.