1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
'\" t
.\" Title: macro::json_output_array_string_value
.\" Author:
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: April 2025
.\" Manual: JSON Tapset
.\" Source: SystemTap Tapset Reference
.\" Language: English
.\"
.TH "MACRO::JSON_OUTPUT_A" "3stap" "April 2025" "SystemTap Tapset Reference" "JSON Tapset"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
macro::json_output_array_string_value \- Output a string value for metric in an array\&.
.SH "SYNOPSIS"
.sp
.nf
@json_output_array_string_value(array_name,array_index,metric_name,value)
.fi
.SH "ARGUMENTS"
.PP
\fIarray_name\fR
.RS 4
The name of the array\&.
.RE
.PP
\fIarray_index\fR
.RS 4
The array index (as a string) indicating where to store the string value\&.
.RE
.PP
\fImetric_name\fR
.RS 4
The name of the string metric\&.
.RE
.PP
\fIvalue\fR
.RS 4
The string value to output\&.
.RE
.SH "DESCRIPTION"
.PP
The json_output_array_string_value macro is designed to be called from the \*(Aqjson_data\*(Aq probe in the user\*(Aqs script to output a metric\*(Aqs string value that is in an array\&. This metric should have been added with
\fBjson_add_array_string_metric\fR\&.
.SH SEE ALSO\n
.IR tapset::json (3stap)
|