MACRO::JSON_OUTPUT_A(3stap)

πŸ’– MACRO::JSON_OUTPUT_A(3stap) β€” the JSON Tapset one, bestie πŸ’–

okay so you found the MACRO::JSON_OUTPUT_A(3stap) page and honestly? good instinct. this is the SystemTap JSON tapset corner of the manual and it's lowkey iconic. let's get into it πŸ¦‹


✨ NAME ✨

macro::json_output_array_numeric_value β€” spits out a numeric value for a metric that lives inside an array. that's the whole job. she's focused, she's employed, she ate πŸ’…


🌸 SYNOPSIS 🌸

@json_output_array_numeric_value(array_name,array_index,metric_name,value)

that's it, that's the call. four things go in, the numeric value comes out. periodt πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • array_name β€” the name of the array. like, which array are we talking about, bestie. that one. πŸ‘‘
  • array_index β€” the array index, and it's a string (yes, a string, not a number, don't come for me) that tells it where to store the numeric value. it's giving "coordinates of the vibe". πŸ—ΊοΈ
  • metric_name β€” the name of the numeric metric. the ✨name✨ of it. πŸ’œ
  • value β€” the actual numeric value you wanna output. the payload. the main character. πŸ”₯

πŸ’… DESCRIPTION πŸ’…

okay so the json_output_array_numeric_value macro is designed to be called from the 'json_data' probe inside your script. that's its whole situation. it's not out here doing freelance work β€” it goes in the 'json_data' probe, no cap.

what it does once it's there: it outputs a metric's numeric value that's sitting in an array. that's the task. 🫢

and important, bestie β€” this metric should have been added with json_add_array_numeric_metric first. like, you can't just show up with a metric that nobody registered. the add has to happen before the output. that's the order of operations, that's the lore. πŸ“‹βœ¨


πŸ” SEE ALSO πŸ”


and that's the page!! go forth and output your numeric array metrics responsibly, bestie πŸ¦‹πŸŒΈπŸ’…

this was the SystemTap Tapset Reference, Version Ver, dated September 2026 β€” mwah, take care of her πŸ’œβœ¨

πŸ“¦ where this page comes from