From d75f9a4f09e45e84775841af07211a864915b93f Mon Sep 17 00:00:00 2001 From: DimDroll Date: Thu, 9 Jan 2020 19:09:07 -0600 Subject: [PATCH 1/9] METRON-2330: Add global profile in foreach desc I had a hard time figuring out the reason behind using exactly 'global'. --- .../metron-profiler-common/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index 59ea1a17bf..fc68961a68 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -289,7 +289,16 @@

profile

foreach

Required

A separate profile is maintained ‘for each’ 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.

-

For example, if ip_src_addr 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.

+

For example, if ip_src_addr 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.

+

Also, global profile can be declared using Stellar expression that returns a string:

+ +
+
+
"foreach": "‘global"’
+
+ +

Any other string can be used instead of global.

Any other string can be used instead of global.Any other string can be used instead of global. +

onlyif

Optional

From ac738774172065fa43ffd43ba23bf46308479081 Mon Sep 17 00:00:00 2001 From: DimDroll Date: Thu, 9 Jan 2020 19:31:07 -0600 Subject: [PATCH 2/9] Removed doubled sentence --- .../metron-analytics/metron-profiler-common/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index fc68961a68..4fcf8d24b4 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -297,7 +297,7 @@

foreach

"foreach": "‘global"’
 
-

Any other string can be used instead of global.

Any other string can be used instead of global.Any other string can be used instead of global. +

Any other string can be used instead of global.

onlyif

From 77a598aac826a047cfccf2c4f729ab456ce73841 Mon Sep 17 00:00:00 2001 From: DimDroll Date: Thu, 9 Jan 2020 19:34:00 -0600 Subject: [PATCH 3/9] Fixed quote --- .../metron-analytics/metron-profiler-common/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index 4fcf8d24b4..bff094e530 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -294,7 +294,7 @@

foreach

-
"foreach": "‘global"’
+
"foreach": "'global'’
 

Any other string can be used instead of global.

From ac52b42f1594cac177feb762f2533d5fda86bb91 Mon Sep 17 00:00:00 2001 From: DimDroll Date: Thu, 9 Jan 2020 19:36:09 -0600 Subject: [PATCH 4/9] Fixed quot #2 --- .../metron-analytics/metron-profiler-common/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index bff094e530..d0c682116f 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -294,7 +294,7 @@

foreach

-
"foreach": "'global'’
+
"foreach": "'global'"
 

Any other string can be used instead of global.

From 0fd22f2b5f6283c011e9141268b39b689d143ceb Mon Sep 17 00:00:00 2001 From: Dima Kovalyov Date: Sun, 12 Jan 2020 21:07:58 -0600 Subject: [PATCH 5/9] Revert "Fixed quot #2" This reverts commit ac52b42f1594cac177feb762f2533d5fda86bb91. --- .../metron-analytics/metron-profiler-common/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index d0c682116f..bff094e530 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -294,7 +294,7 @@

foreach

-
"foreach": "'global'"
+
"foreach": "'global'’
 

Any other string can be used instead of global.

From f37520661dc030553a62bb7af4f4ecbf9e992e53 Mon Sep 17 00:00:00 2001 From: Dima Kovalyov Date: Sun, 12 Jan 2020 21:09:19 -0600 Subject: [PATCH 6/9] Revert "Fixed quote" This reverts commit 77a598aac826a047cfccf2c4f729ab456ce73841. --- .../metron-analytics/metron-profiler-common/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index bff094e530..4fcf8d24b4 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -294,7 +294,7 @@

foreach

-
"foreach": "'global'’
+
"foreach": "‘global"’
 

Any other string can be used instead of global.

From 5fd3487865e096a57fdf7bf6fc1a72d9c84ba5df Mon Sep 17 00:00:00 2001 From: Dima Kovalyov Date: Sun, 12 Jan 2020 21:09:31 -0600 Subject: [PATCH 7/9] Revert "Removed doubled sentence" This reverts commit ac738774172065fa43ffd43ba23bf46308479081. --- .../metron-analytics/metron-profiler-common/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index 4fcf8d24b4..fc68961a68 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -297,7 +297,7 @@

foreach

"foreach": "‘global"’
 
-

Any other string can be used instead of global.

+

Any other string can be used instead of global.

Any other string can be used instead of global.Any other string can be used instead of global.

onlyif

From cb3c9f7d84b29ae8e357cca175e8cc186ed7fe23 Mon Sep 17 00:00:00 2001 From: Dima Kovalyov Date: Sun, 12 Jan 2020 21:09:38 -0600 Subject: [PATCH 8/9] Revert "METRON-2330: Add global profile in foreach desc" This reverts commit d75f9a4f09e45e84775841af07211a864915b93f. --- .../metron-profiler-common/index.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/site/current-book/metron-analytics/metron-profiler-common/index.html b/site/current-book/metron-analytics/metron-profiler-common/index.html index fc68961a68..59ea1a17bf 100644 --- a/site/current-book/metron-analytics/metron-profiler-common/index.html +++ b/site/current-book/metron-analytics/metron-profiler-common/index.html @@ -289,16 +289,7 @@

profile

foreach

Required

A separate profile is maintained ‘for each’ 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.

-

For example, if ip_src_addr 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.

-

Also, global profile can be declared using Stellar expression that returns a string:

- -
-
-
"foreach": "‘global"’
-
- -

Any other string can be used instead of global.

Any other string can be used instead of global.Any other string can be used instead of global. - +

For example, if ip_src_addr 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.

onlyif

Optional

From 2ddba6220d9e8e1aabbb14c1b33a7ebb0f251df5 Mon Sep 17 00:00:00 2001 From: Dima Kovalyov Date: Sun, 12 Jan 2020 21:17:14 -0600 Subject: [PATCH 9/9] Re-added changes --- metron-analytics/metron-profiler-common/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/metron-analytics/metron-profiler-common/README.md b/metron-analytics/metron-profiler-common/README.md index 5841efc963..bf343cdb60 100644 --- a/metron-analytics/metron-profiler-common/README.md +++ b/metron-analytics/metron-profiler-common/README.md @@ -150,6 +150,13 @@ A separate profile is maintained 'for each' of these. This is effectively the e For example, if `ip_src_addr` 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. +Also, global profile can be declared using Stellar expression that returns a string: +``` +"foreach": "'global'" +``` + +Any other string can be used instead of global. + #### `onlyif` *Optional*