.Creates a global coupled stat.
INKStat INKStatCoupledGlobalAdd (INKCoupledStat
global_copy
, const char *
the_name
, INKStatTypes
the_type
)
is
the name of the global coupled stat category to which your new
coupled stat belongs.global_copy
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
(see How to Add Coupled Statistics).
A handle to the newly-created global coupled stat.
INK_ERROR_PTR
if an error occurs.
Creates a local copy of a global coupled stat.
INKStat INKStatCoupledLocalAdd (INKCoupledStat
local_copy
, const char *
the_name
, INKStatTypes
the_type
)
is
the name of the local coupled stat category to which your new
coupled stat belongs.local_copy
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
(see To Add Coupled Statistics).
A handle to a local copy of the global coupled stat.
INK_ERROR_PTR
if an error occurs.
Creates a global coupled stat category.
INKCoupledStat INKStatCoupledGlobalCategoryCreate
( const char *
the_name
)
Returns a new global coupled stat category; use this
function in INKPluginInit
. The name
argument is the name you use to access this stat in Traffic
Line (see Viewing Statistics Using Traffic Line and To Add Coupled Statistics).
A handle to a the newly-created global coupled stat category.
INK_ERROR_PTR
if an error occurs.
.Creates a local copy of a global coupled stat category.
INKCoupledStat INKStatCoupledLocalCopyCreate (
const char *
the_name
,
INKCoupledStat
global_copy
)
Returns a new local coupled stat category; use this function in any routine where you need to modify local copies of global statistics. The name argument is the name you use to access this stat in Traffic Line (see Viewing Statistics Using Traffic Line and How to Add Coupled Statistics).
A handle to the local copy of the global coupled stat category.
INK_ERROR_PTR
.Destroys a local category of statistics.
INKReturnCode INKStatCoupledLocalCopyDestroy
(INKCoupledStat
local_copy
)
Destroys a local statistics category. You should always destroy the local category when you are finished with it (see How to Add Coupled Statistics).
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.
Updates a category of coupled statistics.
INKReturnCode INKStatsCoupledUpdate
(INKCoupledStat
local_copy
)
Updates all of the coupled stats belonging to the
category
.
See How to Add Coupled Statistics.local_copy
INK_SUCCESS
if the operation completes
successfully.
INK_ERROR
if an error occurs.