public class ContentServerVarianceDetector extends Object
EndpointAbuseAnalysis
in the HTTPRequest pipeline.
Currently, this has only one transform, whether an ip exists in the content server logs. Eventually this could be extended to only consider certain events (such as metrics) or meet more complex conditions.
Modifier and Type | Class and Description |
---|---|
static class |
ContentServerVarianceDetector.PresenceBased
Provides a basic transform for detecting variance based on whether an ip exists
|
Constructor and Description |
---|
ContentServerVarianceDetector() |
Modifier and Type | Method and Description |
---|---|
static org.apache.beam.sdk.values.PCollectionView<Map<String,Boolean>> |
getEmptyView(org.apache.beam.sdk.Pipeline p)
Return an empty variance view, suitable as a placeholder if variance detection is not desired
|
static org.apache.beam.sdk.values.PCollectionView<Map<String,Boolean>> |
getView(org.apache.beam.sdk.values.PCollection<Event> events)
Execute transform returning a
PCollectionView of ips accessing content server
resources, that can be used as a side input. |
public static org.apache.beam.sdk.values.PCollectionView<Map<String,Boolean>> getEmptyView(org.apache.beam.sdk.Pipeline p)
p
- Pipeline to create view forPCollectionView
public static org.apache.beam.sdk.values.PCollectionView<Map<String,Boolean>> getView(org.apache.beam.sdk.values.PCollection<Event> events)
PCollectionView
of ips accessing content server
resources, that can be used as a side input.events
- Input eventsPCollectionView
representing output of analysisCopyright © 2022. All rights reserved.