gobj_stats()
#
Retrieves statistics for the given hgobj
. If the gclass has a mt_stats
method, it is used; otherwise, the global statistics parser is invoked.
Prototype
json_t *gobj_stats(
hgobj gobj,
const char *stats,
json_t *kw,
hgobj src
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The |
|
|
The name of the statistics to retrieve. If NULL, all available statistics are returned. |
|
|
Additional parameters for filtering or modifying the statistics retrieval. Owned by the function. |
|
|
The source |
Return Value
A JSON object containing the requested statistics. The caller is responsible for managing the returned JSON object.
Notes
If the gclass has a mt_stats
method, it is used to retrieve the statistics. Otherwise, the global statistics parser is invoked. If neither is available, an error response is returned.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples