TSHttpSsnInfoIntGet

Synopsis

#include <ts/ts.h>
TSReturnCode TSHttpSsnInfoIntGet(TSHttpSsn ssnp, TSHttpSsnInfoKey key, TSMgmtInt *value, uint64_t subkey = 0)

Description

TSHttpSsnInfoIntGet() returns arbitrary integer-typed info about a session as defined in TSHttpSsnInfoKey. The API will be part of a generic API umbrella that can support returning arbitrary info about a session using custom log tags.

The TSHttpSsnInfoKey currently supports the below integer-based info about a transaction

enum TSHttpSsnInfoKey
enumerator TS_SSN_INFO_TRANSACTION_COUNT

The value indicate the number of transactions made on the session.

enumerator TS_SSN_INFO_RECEIVED_FRAME_COUNT

The value indicate the number of HTTP/2 or HTTP/3 frames received on the session. A frame type must be specified by passing it to subkey. You can use TS_SSN_INFO_RECEIVED_FRAME_COUNT_H2_UNKNOWN and TS_SSN_INFO_RECEIVED_FRAME_COUNT_H3_UNKNOWN to get the value for unknown frames.

Return values

The API returns TS_SUCCESS, if the requested info is supported, TS_ERROR otherwise.