Skip to content

info Statement ​

The info statement retrieves detailed stream information.

Syntax ​

info
info <stream_name>

Description ​

This statement queries detailed stream metrics and metadata. Without parameters, it returns information for all streams; with a stream name, it provides detailed metrics for that specific stream.

Parameters ​

  • stream_name (optional): Name of the specific stream to get information about

Examples ​

Get All Stream Information ​

info

Output:

Stream information retrieved
{
  "sensor_data": {
    "documentCount": 150,
    "subscriberCount": 2,
    "createdAt": "2024-01-15T10:30:00Z"
  },
  "events": {
    "documentCount": 25,
    "subscriberCount": 1,
    "createdAt": "2024-01-15T11:00:00Z"
  }
}

Get Specific Stream Information ​

info sensor_data

Output:

Stream 'sensor_data' info retrieved
{
  "documentCount": 150,
  "subscriberCount": 2,
  "createdAt": "2024-01-15T10:30:00Z",
  "lastActivity": "2024-01-15T12:45:00Z"
}

Information Fields ​

Document Count ​

Number of documents currently in the stream.

Subscriber Count ​

Number of active subscribers to the stream.

Created At ​

Timestamp when the stream was created.

Last Activity ​

Timestamp of the last activity on the stream.