public class DetectionRule extends Object
logicalOplogicalOp; valid values are ANY (logical
OR, i.e. a finding is emitted only if any of the provided detectors match), or ALL
(logical AND, i.e. a finding is emitted only if all provided detectors match).| Constructor and Description |
|---|
DetectionRule(List<Detector> detectors,
LogicalOp logicalOp)
Create a detection rule with the provided detectors and logicalOp.
|
DetectionRule(List<Detector> detectors,
LogicalOp logicalOp,
String name)
Create a detection rule with the provided detectors and logicalOp.
|
| Modifier and Type | Method and Description |
|---|---|
List<Detector> |
getDetectors()
Get the list of detectors.
|
LogicalOp |
getLogicalOp()
Get the logical op.
|
String |
getName()
Get the name of the detection rule.
|
void |
setDetectors(List<Detector> detectors)
Set the detectors.
|
void |
setLogicalOp(LogicalOp logicalOp)
Set the logical op.
|
void |
setName(String name)
Set the detection rule name.
|
String |
toString() |
public DetectionRule(List<Detector> detectors, LogicalOp logicalOp)
detectors - a list of detectorslogicalOp - a logical op: ANY or ALLpublic List<Detector> getDetectors()
public void setDetectors(List<Detector> detectors)
detectors - a set of detectorspublic LogicalOp getLogicalOp()
public void setLogicalOp(LogicalOp logicalOp)
logicalOp - a logical op; valid values ANY or ALLpublic String getName()
public void setName(String name)
name - a name for the detection ruleCopyright © 2022. All rights reserved.