[
https://issues.apache.org/jira/browse/TS-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14310852#comment-14310852
]
Kit Chan edited comment on TS-3346 at 2/7/15 10:57 PM:
-------------------------------------------------------
Tentatively the lua api will look like this
ts.stat_create("some_counter", persistence, sync)
ts.stat_increment("some_counter")
ts.stat_decrement("some_counter")
ts.stat_get("some_counter")
ts.stat_set("some_counter")
perisistenc can be
TS_LUA_STAT_PERSISTENT,
TS_LUA_STAT_NON_PERSISTENT
sync can be
TS_LUA_STAT_SYNC_SUM,
TS_LUA_STAT_SYNC_COUNT,
TS_LUA_STAT_SYNC_AVG,
TS_LUA_STAT_SYNC_TIMEAVG
was (Author: kichan):
Tentatively the lua api will look like this
ts.stat_create("some_counter", persistence, sync)
ts.stat_increment("some_counter")
ts.stat_decrement("some_counter")
ts.stat_get("some_counter")
ts.stat_set("some_counter")
perisistenc can be
TS_LUA_STAT_PERSISTENT,
TS_LUA_STAT_NON_PERSISTENT
sync can be
TS_LUA_STAT_SYNC_SUM,
TS_LUA_STAT_SYNC_COUNT,
TS_LUA_STAT_SYNC_AVG,
TS_STAT_SYNC_TIMEAVG
> Support TS Stat API in Lua
> --------------------------
>
> Key: TS-3346
> URL: https://issues.apache.org/jira/browse/TS-3346
> Project: Traffic Server
> Issue Type: Improvement
> Components: Lua
> Reporter: Wei Sun
> Assignee: Kit Chan
> Fix For: 5.3.0
>
>
> Lua script supports to read/collect error rate, timeout rate, avg latency by
> origin host.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)