In Kapacitor documentation, there is a sentence that reads:
Each script has a flat scope and each variable in the scope can reference a literal value, such as a string, an integer or a float value, or a node instance with methods that can then be called.
I have never heard of a flat scope, what does that mean? I tried googling for that term but I cannot find anything that explains it.
Scopes in Kapacitor is similar to the scope in JS or PowerShell
References Scopes in PowerShell Scope in JavaScript