Reference to the charAt string manipulation function
Summary
charAt(metric|source|<pointTagKey>, <integer>, <tsExpression>)
Returns the character at the specified position in the specified metadata string.
Parameters
Parameter | Description |
---|---|
metric|source|<pointTagKey> | The metadata string (metric name, source name, or value of a point tag key) to extract a character from. |
integer | The position of the character that you want to extract. Positions are counted from left to right, starting with 0. |
tsExpression | The expression that describes the time series with the metadata string to extract a character from. |
Example
In the example below, we use charAt()
to extract characters from the value of the service
point tag, which is dataingester
- The character at position 0 is
d
- The character at position 5 is
n
.
The returned characters are case sensitive.