Obtains the value of a float statistic.
INKReturnCode INKStatFloatGet(INKStat
stat
, float
*value
)
INK_SUCCESS
if the API is called
successfully.
INK_ERROR
if an error occurs while calling
the API or if an argument is invalid.
Obtains the value of an integer statistic.
INKReturnCode INKStatIntGet(INKStat stat, INK64
*value)
INK_SUCCESS
if the API is called
successfully.
INK_ERROR
if an error occurs while calling
the API or if an argument is invalid.
Adds a float value to a float statistic.
INKReturnCode INKStatFloatAddTo ( INKStat
the_stat, float amount)
Adds a float value to a float statistic.
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.
Adds an INK64 value to an integer statistic.
INKReturnCode INKStatIntAddTo ( INKStat the_stat,
INK64 amount)
Adds an INK64
value to an integer statistic.
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.
Creates a new INKStat
.
INKStat INKStatCreate ( const char *
the_name
, INKStatTypes
the_type
)
Creates a new INKStat
. The value pointed to
by
is the
name you use to view the statistic using Traffic Line (see
Viewing Statistics Using Traffic Line). There are two
the_name
INKStatTypes
: INKSTAT_TYPE_INT64
and INKSTAT_TYPE_FLOAT
.
A handle to the newly-created
INKStat
.
INK_ERROR_PTR
if an error occurs.
Decrements a stat.
INKReturnCode INKStatDecrement(INKStat
the_stat
)
Decrements a stat.
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.
Increments a stat.
INKReturnCode INKStatIncrement(INKStat
the_stat
)
Increments a statistic.
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.
Sets the value of a float stat to a particular value.
INKReturnCode INKStatFloatSet(INKStat
the_stat
, float
the_value
)
Sets the value of a float stat to the specified value.
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.
Sets the value of an integer stat to a particular value.
INKReturnCode INKStatIntSet(INKStat
the_stat
, INK64
the_value
)
Sets the value of a integer stat to a particular value.
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.