public class AddonMatcher extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<Event>,org.apache.beam.sdk.values.PCollection<Alert>> implements DocumentingTransform
Processes upload log messages that include information such as the upload file name and the size of the upload. This is compared against configuration and if the criteria matches, an alert will be generated of category amo_abuse_matched_addon.
Constructor and Description |
---|
AddonMatcher(String monitoredResource,
Integer suppressRecovery,
String[] matchCriteria)
Construct new AddonMatcher
|
Modifier and Type | Method and Description |
---|---|
org.apache.beam.sdk.values.PCollection<Alert> |
expand(org.apache.beam.sdk.values.PCollection<Event> col) |
String |
getTransformDoc()
Get documentation string from transform based on it's current configuration
|
public AddonMatcher(String monitoredResource, Integer suppressRecovery, String[] matchCriteria)
monitoredResource
- Monitored resource indicatorsuppressRecovery
- Optional recovery suppression to include with alerts in secondsmatchCriteria
- Match criteria, filename_regex:minsizebytes:maxsizebytespublic String getTransformDoc()
getTransformDoc
in interface DocumentingTransform
Copyright © 2022. All rights reserved.