File tree Expand file tree Collapse file tree 4 files changed +28
-8
lines changed
uncoder-core/app/translator/platforms Expand file tree Collapse file tree 4 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 2727from app .translator .managers import render_manager
2828from app .translator .platforms .elasticsearch .const import elasticsearch_esql_query_details
2929from app .translator .platforms .elasticsearch .mapping import ElasticESQLMappings , esql_query_mappings
30- from app .translator .platforms .elasticsearch .str_value_manager import ESQLStrValueManager , esql_str_value_manager
30+ from app .translator .platforms .elasticsearch .str_value_manager import (
31+ ESQLQueryStrValueManager ,
32+ esql_query_str_value_manager
33+ )
3134
3235
3336class ESQLFieldValueRender (BaseFieldValueRender ):
3437 details : PlatformDetails = elasticsearch_esql_query_details
35- str_value_manager : ESQLStrValueManager = esql_str_value_manager
38+ str_value_manager : ESQLQueryStrValueManager = esql_query_str_value_manager
3639
3740 @staticmethod
3841 def _make_case_insensitive (value : str ) -> str :
Original file line number Diff line number Diff line change 11import os .path
22
33from app .translator .core .functions import PlatformFunctions
4- from app .translator .platforms .palo_alto .functions .manager import CortexXQLFunctionsManager , cortex_xql_functions_manager
4+ from app .translator .platforms .palo_alto .functions .manager import (
5+ CortexXQLFunctionsManager ,
6+ cortex_xdr_xql_functions_manager ,
7+ cortex_xsiam_xql_functions_manager ,
8+ )
59
610
711class CortexXQLFunctions (PlatformFunctions ):
812 dir_path : str = os .path .abspath (os .path .dirname (__file__ ))
9- manager : CortexXQLFunctionsManager = cortex_xql_functions_manager
1013
1114
12- cortex_xql_functions = CortexXQLFunctions ()
15+ class CortexXSIAMXQLFunctions (CortexXQLFunctions ):
16+ manager : CortexXQLFunctionsManager = cortex_xsiam_xql_functions_manager
17+
18+
19+ class CortexXDRXQLFunctions (CortexXQLFunctions ):
20+ manager : CortexXQLFunctionsManager = cortex_xdr_xql_functions_manager
21+
22+
23+ cortex_xsiam_xql_functions = CortexXSIAMXQLFunctions ()
24+ cortex_xdr_xql_functions = CortexXDRXQLFunctions ()
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class CortexXQLFunctionType(CustomEnum):
1111 values = "values"
1212
1313 divide = "divide"
14+ multiply = "multiply"
1415
1516 lower = "lowercase"
1617 split = "split"
@@ -26,18 +27,21 @@ class CortexXQLFunctionType(CustomEnum):
2627 config = "config"
2728 fields = "fields"
2829 filter = "filter"
30+ iploc = "iploc"
31+ join = "join"
2932 limit = "limit"
3033 sort = "sort"
3134 timeframe = "timeframe"
35+ timestamp_diff = "timestamp_diff"
3236 union = "union"
3337
3438
35- class XqlSortOrderType (CustomEnum ):
39+ class CortexXQLSortOrderType (CustomEnum ):
3640 asc = "asc"
3741 desc = "desc"
3842
3943
40- class XqlTimeFrameType (CustomEnum ):
44+ class CortexXQLTimeFrameType (CustomEnum ):
4145 years = "y"
4246 months = "mo"
4347 days = "d"
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ class CortexXQLFunctionsManager(PlatformFunctionsManager):
55 ...
66
77
8- cortex_xql_functions_manager = CortexXQLFunctionsManager ()
8+ cortex_xsiam_xql_functions_manager = CortexXQLFunctionsManager ()
9+ cortex_xdr_xql_functions_manager = CortexXQLFunctionsManager ()
You can’t perform that action at this time.
0 commit comments