Skip to main content

Subscriptioneventtypestats

Statistics of one event-type within a context of subscription.

event_typestringrequired

The name of the event type this partition's events belong to.

partitions object[]required

Statistics of partitions of this event-type.

  • Array [
  • partitionstringrequired

    The partition id.

    Possible values: non-empty

    statestringrequired

    The state of this partition in current subscription. Currently following values are possible:

    unassigned - the partition is currently not assigned to any client. reassigning - the partition is currently reassigning from one client to another. assigned - the partition is assigned to a client.

    Possible values: non-empty, [assigned, unassigned, reassigning]

    unconsumed_eventsintegerrequired

    The amount of events in this partition that are not yet consumed within this subscription. The property may be absent at the moment when no events were yet consumed from the partition in this subscription (In case of read_from is BEGIN or END). If the event type uses ‘compact’ cleanup policy - then the actual number of unconsumed events can be lower than the one reported in this field.

    consumer_lag_secondsinteger

    Subscription consumer lag for this partition in seconds. Measured as the age of the oldest event of this partition that is not yet consumed within this subscription.

    stream_idstringrequired

    The id of the stream that consumes data from this partition.

  • ]
  • Subscriptioneventtypestats
    {
    "event_type": "string",
    "partitions": [
    {
    "partition": "string",
    "state": "assigned",
    "unconsumed_events": 0,
    "consumer_lag_seconds": 0,
    "stream_id": "string"
    }
    ]
    }