.\" Man page generated from reStructuredText. . .TH "TRAFFIC SERVER RECORDS" "3ts" "January 24, 2017" "7.0" "Apache Traffic Server" .SH NAME Traffic Server Records \- traffic Server maintains a set of records which cover both configuration values and statistics . .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 TSMgmtStringCreate(TSRecordType\fI\ rec_type\fP, const char*\fI\ name\fP, const TSMgmtString\fI\ data_default\fP, TSRecordUpdateType\fI\ update_type\fP, TSRecordCheckType\fI\ check_type\fP, const char*\fI\ check_regex\fP, TSRecordAccessType\fI\ access_type\fP) .UNINDENT .INDENT 0.0 .TP .B TSReturnCode TSMgmtIntCreate(TSRecordType\fI\ rec_type\fP, const char*\fI\ name\fP, const TSMgmtInt\fI\ data_default\fP, TSRecordUpdateType\fI\ update_type\fP, TSRecordCheckType\fI\ check_type\fP, const char*\fI\ check_regex\fP, TSRecordAccessType\fI\ access_type\fP) .UNINDENT .INDENT 0.0 .TP .B int TSStatCreate(const char*\fI\ name\fP, TSRecordDataType\fI\ type\fP, TSStatPersistence\fI\ persistence\fP, TSStatSync\fI\ sync_style\fP) .UNINDENT .SH DESCRIPTION .sp \fI\%TSMgmtStringCreate()\fP registers \fIname\fP as a configuration name and sets its various properties. If \fIcheck_type\fP is \fBTS_RECORDCHECK_STR\fP then \fIcheck_reg\fP must be point to a valid regular expression to use to check the string value. .sp If a plugin uses a value from \fBrecords.config\fP that is not built in to Traffic Server it must use this function or the value will be inaccessible and a warning for that name will be generated. .SH RETURN VALUES .sp \fI\%TSMgmtStringCreate()\fP and \fI\%TSMgmtIntCreate()\fP return \fBTS_SUCCESS\fP if the management value was created and \fBTS_ERROR\fP if not. .SH SEE ALSO .sp \fITSAPI(3ts)\fP .SH COPYRIGHT 2015, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .