gobj_get_stat()

gobj_get_stat()#

Retrieves the value of a statistical attribute from the given hgobj.

Prototype

json_int_t gobj_get_stat(
    hgobj gobj,
    const char *path
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance from which the statistic is retrieved.

path

const char *

The name of the statistical attribute to retrieve.


Return Value

Returns the value of the specified statistical attribute as a json_int_t. If the attribute does not exist, returns 0.

Notes

This function does not check if the attribute exists before retrieving its value. Ensure that the attribute is valid before calling gobj_get_stat().

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples