MCPcopy Create free account
hub / github.com/apache/trafficserver / TSStatCreate

Function TSStatCreate

src/api/InkAPI.cc:6242–6253  ·  view source on GitHub ↗

REC Stats API **************************/

Source from the content-addressed store, hash-verified

6240
6241/************************ REC Stats API **************************/
6242int
6243TSStatCreate(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
6255void
6256TSStatIntIncrement(int id, TSMgmtInt amount)

Callers 15

init_statsFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
initMethod · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
GeneratorInitializeFunction · 0.85
createMethod · 0.85
register_statFunction · 0.85

Calls 1

createFunction · 0.85

Tested by 1