You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2011/05/30 03:33:47 UTC

[jira] [Updated] (TS-600) New stats api for plugins

     [ https://issues.apache.org/jira/browse/TS-600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-600:
-----------------------------

    Component/s:     (was: TS API)
                 Documentation

> New stats api for plugins
> -------------------------
>
>                 Key: TS-600
>                 URL: https://issues.apache.org/jira/browse/TS-600
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Leif Hedstrom
>             Fix For: 3.0.0
>
>
> We added new Stats APIs in the v2.x release lines, and I'm making a small change to keep this new API in line with another change made to the SDK. So,  the new APIs available for creating / manipulating stats are:
>   tsapi int TSStatCreate(const char *the_name, TSRecordDataType the_type, TSStatPersistence persist, TSStatSync sync);
>   tsapi TSReturnCode TSStatIntIncrement(int the_stat, TSMgmtInt amount);
>   tsapi TSReturnCode TSStatIntDecrement(int the_stat, TSMgmtInt amount);
>   tsapi TSReturnCode TSStatIntSet(int the_stat, TSMgmtInt value);
>   tsapi int TSStatFindName(const char* name);
> The one notable change here, from previous implementation, is the name change of the "type" data type. It is now TSRecordDataType, which is used in another new API, and it makes perfect sense to reuse / merge these into one data type instead of two.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira