build_stats()

build_stats()#

Build statistical data for a GObj and format it as a JSON object.

Prototype

PUBLIC json_t *build_stats(
    hgobj       gobj,
    const char *stats_name,
    const char *options
);
        

Parameters

Key

Type

Description

gobj

hgobj

The GObj to build statistical data for.

stats_name

const char *

The name of the specific statistics to build, or NULL for all statistics.

options

const char *

Options to customize the data building process (e.g., filters or format specifications).


Return Value

Returns a json_t * object containing the built statistical data, or NULL on failure.

Prototype

// Not applicable in JS

Prototype

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