FUNCTION::JSON_ADD_A(3stap)
β¨ NAME β¨
function::json_add_array_string_metric β bestie, this one adds a string metric to an array π (yes, that's literally the whole job and it does it flawlessly)
So you're deep in the JSON Tapset section of the 3stap manual and you found this lil icon π
πΈ SYNOPSIS πΈ
json_add_array_string_metric:long(array_name:string,metric_name:string,metric_description:string)
Look at that signature. Gorgeous. Returns a long, takes three strings, no drama, no cap π«Ά
π¦ ARGUMENTS π¦
array_nameβ the name of the array that your string metric is getting added to. Like, which array are we decorating today? πmetric_nameβ the name of the string metric itself. Give it a cute name, it deserves one.metric_descriptionβ a description for the metric. And here's the tea β: an empty string can be used if you're not feeling descriptive. No pressure, bestie.
π DESCRIPTION π
This function adds a string metric to an array, and it sets up everything needed along the way. Like, not just the one thing β everything. It handles the whole vibe check for you so you don't have to π§β¨
π SEE ALSO π
tapset::json(3stap)β go read the main character, it knows things π
SystemTap Tapset Reference, Version β September 2026 π and yeah, this whole page is FUNCTION::JSON_ADD_A(3stap) fr fr. That's the sign-off bestie, go add some string metrics, you ate π
π
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms