[
https://issues.apache.org/jira/browse/METRON-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16986319#comment-16986319
]
Nick Allen commented on METRON-2330:
------------------------------------
This example just uses a Stellar expression that returns the same value for all
messages applied to the profile. The example just uses a String named "global"
because the profile is building a single, global profile measurement/value. We
could have just as easily used an expression that returns the same value for
all messages, like 'cheese' or 'dima'.
Hope that helps
> Document Profiler "'global'" object
> -----------------------------------
>
> Key: METRON-2330
> URL: https://issues.apache.org/jira/browse/METRON-2330
> Project: Metron
> Issue Type: Improvement
> Affects Versions: 1.7.1
> Reporter: Dima Kovalyov
> Priority: Minor
>
> Dear Metron community,
>
> "[Statistics and Mathematical
> Functions|[https://metron.apache.org/current-book/metron-analytics/metron-statistics/index.html]]"
> page makes use of:
> {code:java}
> "foreach": "'global'"
> {code}
> But nowhere on the internet, I was able to find any description of what it
> is, how it's working and how to troubleshoot it.
> The page mentions "We will capture a global statistical state for the
> {{value}} field and we will look back for a 5 minute window when computing
> the median." from which I can guess that 'global' represents the entire
> message instead of any particular field.
> Can you please shed some more light on it?
> In the comments, I'll post an example of my restle with it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)