macro::json_output_array_numeric_value



Name

macro::json_output_array_numeric_value — Output a numeric value for metric in an array.

Synopsis

@json_output_array_numeric_value(array_name,array_index,metric_name,value)

Arguments

array_name
The name of the array.
array_index
The array index (as a string) indicating where to store the numeric value.
metric_name
The name of the numeric metric.
value
The numeric value to output.

Description

The json_output_array_numeric_value macro is designed to be called from the 'json_data' probe in the user's script to output a metric's numeric value that is in an array. This metric should have been added with json_add_array_numeric_metric.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.