Skip to content

Commit

Permalink
Added Pipeline decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Aug 22, 2023
1 parent b048fec commit 10d1c35
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from sigma.pipelines.common import logsource_windows, windows_logsource_mapping
from sigma.pipelines.base import Pipeline
from sigma.processing.transformations import AddConditionTransformation, FieldMappingTransformation, DetectionItemFailureTransformation, RuleFailureTransformation, SetStateTransformation
from sigma.processing.postprocessing import EmbedQueryTransformation
from sigma.processing.conditions import LogsourceCondition, IncludeFieldCondition, ExcludeFieldCondition, RuleProcessingItemAppliedCondition
Expand All @@ -7,6 +8,7 @@
# TODO: the following code is just an example extend/adapt as required.
# See https://sigmahq-pysigma.readthedocs.io/en/latest/Processing_Pipelines.html for further documentation.

@Pipeline
def {{ cookiecutter.backend_package_name }}_pipeline() -> ProcessingPipeline: # Processing pipelines should be defined as functions that return a ProcessingPipeline object.
return ProcessingPipeline(
name="{{ cookiecutter.target_name }} example pipeline",
Expand Down

0 comments on commit 10d1c35

Please sign in to comment.