gobj_set_stat()
#
Sets the value of a statistical attribute for the given hgobj
and returns the previous value.
Prototype
json_int_t gobj_set_stat(
hgobj gobj,
const char *path,
json_int_t value
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The |
|
|
The name of the statistical attribute to modify. |
|
|
The new value to set for the statistical attribute. |
Return Value
The previous value of the statistical attribute before modification.
Notes
If the attribute does not exist, it is created with the specified value.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples