.\" Man page generated from reStructuredText. . .TH "TSHTTPTXNINFOINTGET" "3ts" "January 24, 2017" "7.0" "Apache Traffic Server" .SH NAME TSHttpTxnInfoIntGet \- . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fI#include \fP .INDENT 0.0 .TP .B TSReturnCode TSHttpTxnInfoIntGet(TSHttpTxn\fI\ txnp\fP, TSHttpTxnInfoKey\fI\ key\fP, TSMgmtInt\fI\ *value\fP) .UNINDENT .SH DESCRIPTION .sp \fI\%TSHttpTxnInfoIntGet()\fP returns arbitrary integer\-typed info about a transaction as defined in \fBTSHttpTxnInfoKey\fP\&. The API will be part of a generic API umbrella that can support returning arbitrary info about a transaction using custom log tags. It works on multiple hooks depending on the requested info. For example, cache related info may be available only at or after \fBTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK\fP hook. .sp The \fBTSHttpTxnInfoKey\fP currently supports the below integer\-based info about a transaction .INDENT 0.0 .INDENT 3.5 \fBTS_TXN_INFO_CACHE_HIT_RAM\fP .INDENT 0.0 .INDENT 3.5 This info is available at or after \fBTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK\fP hook. A value of 1 indicates that the response is returned from RAM cache. A value of 0 indicates otherwise. .UNINDENT .UNINDENT .sp \fBTS_TXN_INFO_CACHE_COMPRESSED_IN_RAM\fP .INDENT 0.0 .INDENT 3.5 This info is available at or after \fBTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK\fP hook. A value of 1 indicates that the response is returned from RAM cache and is compressed. A value of 0 indicates otherwise. .UNINDENT .UNINDENT .sp \fBTS_TXN_INFO_CACHE_HIT_RWW\fP .INDENT 0.0 .INDENT 3.5 This info is available at or after \fBTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK\fP hook. A value of 1 indicates that the response is returned via Read\-While\-Writer functionality. A value of 0 indicates otherwise. .UNINDENT .UNINDENT .sp \fBTS_TXN_INFO_CACHE_OPEN_READ_TRIES\fP .INDENT 0.0 .INDENT 3.5 This info is available at or after \fBTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK\fP hook. The value indicates the number of cache open read reattempts made by the transaction on cache open read failure. .UNINDENT .UNINDENT .sp \fBTS_TXN_INFO_CACHE_OPEN_WRITE_TRIES\fP .INDENT 0.0 .INDENT 3.5 This info is available at or after \fBTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK\fP hook. The value indicates the number of cache open write reattempts made by the transaction on cache open write failure. .UNINDENT .UNINDENT .sp \fBTS_TXN_INFO_CACHE_VOLUME\fP .INDENT 0.0 .INDENT 3.5 This info is available at or after \fBTS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK\fP hook. The value indicates the cache volume ID used for the cache object associated with the transaction. .UNINDENT .UNINDENT .UNINDENT .UNINDENT .SH RETURN VALUES .sp The API returns \fBTS_SUCCESS\fP, if the requested info is supported, \fBTS_ERROR\fP otherwise. .SH COPYRIGHT 2015, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .