REC Stats API **************************/
| 6240 | |
| 6241 | /************************ REC Stats API **************************/ |
| 6242 | int |
| 6243 | TSStatCreate(const char *the_name, TSRecordDataType /* the_type ATS_UNUSED */, TSStatPersistence /* persist ATS_UNUSED */, |
| 6244 | TSStatSync /* sync ATS_UNUSED */) |
| 6245 | { |
| 6246 | int id = Metrics::Gauge::create(the_name); // Gauges allows for all "int" operations |
| 6247 | |
| 6248 | if (id == ts::Metrics::NOT_FOUND) { |
| 6249 | return TS_ERROR; |
| 6250 | } |
| 6251 | |
| 6252 | return id; |
| 6253 | } |
| 6254 | |
| 6255 | void |
| 6256 | TSStatIntIncrement(int id, TSMgmtInt amount) |