---
name: "function::json_add_array_string_metric"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::json_add_array_string_metric"
---

# function::json\_add\_array\_string\_metric(3stap)

Add a string metric to an array

## NAME

function::json\_add\_array\_string\_metric - Add a string metric to an array

## SYNOPSIS

```
    json_add_array_string_metric:long(array_name:string,metric_name:string,metric_description:string)
```

## ARGUMENTS

*array\_name*

The name of the array the string metric should be added to.

*metric\_name*

The name of the string metric.

*metric\_description*

Metric description. An empty string can be used.

## DESCRIPTION

This function adds a string metric to an array, setting up everything needed.

## SEE ALSO0

[*tapset::json*(3stap)](/tapset::json/3stap.md)
