Skip to main content

max-length

Syntax

Shorthand syntax

- max-length: number

Extended syntax

- max-length:
count: number

Description

The nax-length operation can be used to modify strings or arrays. When applied against a string, the string is trimmed to a maximum number of characters. When applied against an array, the array is trimmed to a maximum number of elements.

Examples

  var1:
- source: alarm-msg
- hash: md5
- max-length: 8
info

In the above example, alarm-msg is an identifier from another part of the adapter script