Show Table of Contents
macro::json_output_array_string_value
Name
macro::json_output_array_string_value — Output a string value for metric in an array.
Synopsis
@json_output_array_string_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 string value.
metric_name- The name of the string metric.
value- The string value to output.
Description
The json_output_array_string_value macro is designed to be called from the 'json_data' probe in the user's script to output a metric's string value that is in an array. This metric should have been added with
json_add_array_string_metric.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.