Home

Traffic Server Software Developers Kit

Traffic Server Configuration Read Functions

INKMgmtCounterGet

Gets a records.config variable of type counter.

Prototype

int INKMgmtCounterGet (const char *var_name, INKMgmtCounter *result)

Arguments

var_name is the name of the variable you want from records.config.

result is a pointer to the value of the variable; this value is of type INKMgmtCounter.

Description

INKMgmtCounterGet obtains the value of the specified records.config variable of type counter, and then stores the value in result.

Returns

If INKMgmtCounterGet could not get the variable, then it returns zero.

If INKMgmtCounterGet is successful, then a nonzero value is returned.