DOKK / manpages / debian 12 / systemtap-doc / function::json_add_array_numeric_metric.3stap.en
FUNCTION::JSON_ADD_A(3stap) JSON Tapset FUNCTION::JSON_ADD_A(3stap)

function::json_add_array_numeric_metric - Add a numeric metric to an array


json_add_array_numeric_metric:long(array_name:string,metric_name:string,metric_description:string,metric_units:string)

array_name

The name of the array the numeric metric should be added to.

metric_name

The name of the numeric metric.

metric_description

Metric description. An empty string can be used.

metric_units

Metic units. An empty string can be used.

This function adds a numeric metric to an array, setting up everything needed.

tapset::json(3stap)

November 2022 SystemTap Tapset Reference