Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clean Microsoft Sentinel functions#2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
saltar-ua merged 1 commit intomainfromsaltar-ua-clean-functions
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop

This file was deleted.

View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,9 @@
from app.converter.backends.microsoft.siem_functions.aggregation import AlaAggregationFunctionRender
from app.converter.backends.microsoft.siem_functions.search import AlaSearchFunctionRender
from app.converter.backends.microsoft.siem_functions.sort import AlaSortFunctionRender
from app.converter.backends.microsoft.siem_functions.table import AlaTableFunctionRender
from app.converter.core.functions import Functions
from app.converter.core.models.functions.aggregation import AggregationExpression
from app.converter.core.models.functions.search import SearchExpression
from app.converter.core.models.functions.sort import SortExpression
from app.converter.core.models.functions.table import TableExpression
from app.converter.core.models.functions.types import ParsedFunctions, NotSupportedFunction


class MicroSoftQueryFunctions(Functions):

render_functions_map = {
SortExpression: AlaSortFunctionRender,
SearchExpression: AlaSearchFunctionRender,
AggregationExpression: AlaAggregationFunctionRender,
TableExpression: AlaTableFunctionRender,
# WhereExpression: AlaWhereFunctionRender
}

def render(self, functions: list):
query = "| "
funcs = []
for function in functions:
if render_class := self.render_functions_map.get(type(function)):
funcs.append(render_class(function).render())
query += " | ".join(funcs)
query = query.rstrip(" ")
return query

def parse(self, query: str):
result = []
functions = query.split(self.function_delimiter)
Expand Down
View file
Open in desktop

This file was deleted.

View file
Open in desktop

This file was deleted.

View file
Open in desktop

This file was deleted.

View file
Open in desktop

This file was deleted.


[8]ページ先頭

©2009-2025 Movatter.jp