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

Function TSStatFindName

src/api/InkAPI.cc:6283–6297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6281}
6282
6283TSReturnCode
6284TSStatFindName(const char *name, int *idp)
6285{
6286 sdk_assert(sdk_sanity_check_null_ptr((void *)name) == TS_SUCCESS);
6287 sdk_assert(sdk_sanity_check_null_ptr((void *)idp) == TS_SUCCESS);
6288
6289 int id = global_api_metrics.lookup(name);
6290
6291 if (id == ts::Metrics::NOT_FOUND) {
6292 return TS_ERROR;
6293 } else {
6294 *idp = id;
6295 return TS_SUCCESS;
6296 }
6297}
6298
6299/************************** Logging API ****************************/
6300

Callers 15

TSPluginInitFunction · 0.85
initMethod · 0.85
GeneratorInitializeFunction · 0.85
register_statFunction · 0.85
TSRemapInitFunction · 0.85
initializeMethod · 0.85
createStatFunction · 0.85
create_statsFunction · 0.85
create_statMethod · 0.85
defineMetricMethod · 0.85
TSRemapInitFunction · 0.85

Calls 2

lookupMethod · 0.45

Tested by 1