Skip to content

Commit 12e16df

Browse files
committed
METRON-2308 Fix 'Degrees' Example Profile (nickwallen) closes #1555
1 parent 604a106 commit 12e16df

File tree

1 file changed

+6
-4
lines changed
  • metron-analytics/metron-profiler-common

1 file changed

+6
-4
lines changed

metron-analytics/metron-profiler-common/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,15 +363,17 @@ This profile captures the vertex degree of a host. If you view network communica
363363
"profile": "in-degrees",
364364
"onlyif": "source.type == 'yaf'",
365365
"foreach": "ip_dst_addr",
366-
"update": { "in": "HLLP_ADD(in, ip_src_addr)" },
367-
"result": "HLLP_CARDINALITY(in)"
366+
"init": { "estimator": "HLLP_INIT()" },
367+
"update": { "estimator": "HLLP_ADD(estimator, ip_src_addr)" },
368+
"result": "HLLP_CARDINALITY(estimator)"
368369
},
369370
{
370371
"profile": "out-degrees",
371372
"onlyif": "source.type == 'yaf'",
372373
"foreach": "ip_src_addr",
373-
"update": { "out": "HLLP_ADD(out, ip_dst_addr)" },
374-
"result": "HLLP_CARDINALITY(out)"
374+
"init": { "estimator": "HLLP_INIT()" },
375+
"update": { "estimator": "HLLP_ADD(estimator, ip_dst_addr)" },
376+
"result": "HLLP_CARDINALITY(estimator)"
375377
}
376378
]
377379
}

0 commit comments

Comments
 (0)