gobj_set_stat()

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

gobj

hgobj

The hgobj instance whose statistical attribute is being modified.

path

const char *

The name of the statistical attribute to modify.

value

json_int_t

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