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 27
27
from app .translator .managers import render_manager
28
28
from app .translator .platforms .elasticsearch .const import elasticsearch_esql_query_details
29
29
from 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
+ )
31
34
32
35
33
36
class ESQLFieldValueRender (BaseFieldValueRender ):
34
37
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
36
39
37
40
@staticmethod
38
41
def _make_case_insensitive (value : str ) -> str :
Original file line number Diff line number Diff line change 1
1
import os .path
2
2
3
3
from 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
+ )
5
9
6
10
7
11
class CortexXQLFunctions (PlatformFunctions ):
8
12
dir_path : str = os .path .abspath (os .path .dirname (__file__ ))
9
- manager : CortexXQLFunctionsManager = cortex_xql_functions_manager
10
13
11
14
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):
11
11
values = "values"
12
12
13
13
divide = "divide"
14
+ multiply = "multiply"
14
15
15
16
lower = "lowercase"
16
17
split = "split"
@@ -26,18 +27,21 @@ class CortexXQLFunctionType(CustomEnum):
26
27
config = "config"
27
28
fields = "fields"
28
29
filter = "filter"
30
+ iploc = "iploc"
31
+ join = "join"
29
32
limit = "limit"
30
33
sort = "sort"
31
34
timeframe = "timeframe"
35
+ timestamp_diff = "timestamp_diff"
32
36
union = "union"
33
37
34
38
35
- class XqlSortOrderType (CustomEnum ):
39
+ class CortexXQLSortOrderType (CustomEnum ):
36
40
asc = "asc"
37
41
desc = "desc"
38
42
39
43
40
- class XqlTimeFrameType (CustomEnum ):
44
+ class CortexXQLTimeFrameType (CustomEnum ):
41
45
years = "y"
42
46
months = "mo"
43
47
days = "d"
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ class CortexXQLFunctionsManager(PlatformFunctionsManager):
5
5
...
6
6
7
7
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