Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

METRON-2330: Add global profile in foreach desc #1577

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,16 @@ <h4><a name="profile"></a><tt>profile</tt></h4>
<h4><a name="foreach"></a><tt>foreach</tt></h4>
<p><i>Required</i></p>
<p>A separate profile is maintained &#x2018;for each&#x2019; of these. This is effectively the entity that the profile is describing. The field is expected to contain a Stellar expression whose result is the entity name.</p>
<p>For example, if <tt>ip_src_addr</tt> then a separate profile would be maintained for each unique IP source address in the data; 10.0.0.1, 10.0.0.2, etc.</p></div>
<p>For example, if <tt>ip_src_addr</tt> then a separate profile would be maintained for each unique IP source address in the data; 10.0.0.1, 10.0.0.2, etc.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @DimDroll Thanks for the contribution. This change actually needs to be made in the file metron-analytics/metron-profiler-common/README.md, which is used to generate this HTML page.

<p>Also, global profile can be declared using Stellar expression that returns a string:</p></div>

<div>
<div>
<pre class="source">&quot;foreach&quot;: &quot;'global'&quot;
</pre></div></div>

<p>Any other string can be used instead of global.</p>

<div class="section">
<h4><a name="onlyif"></a><tt>onlyif</tt></h4>
<p><i>Optional</i></p>
Expand Down