Mapper functions
Last updated
Last updated
This page describes StackState version 4.3.
The StackState 4.3 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.3 version range to upgrade to a more recent release.
Mapper Function is defined by a groovy script and input parameters that groovy script requires. The goal of a Mapper Function is to process topology data from an external system and prepare parameters for use by a template function.
There are two specific Mapper Function parameters:
ExtTopoComponent
/ ExtTopoRelation
- these are the required system parameters. Every Mapper Function must define one of these. They are used internally by StackState and cannot be changed using the API. They indicate the type of element - component or relation - that the Mapper Function supports.
TemplateLambda
- this is an optional parameter that specifies which template functions must be used with the Mapper Function.
An example of a simple Mapper Function: