Skip to content

Commit e55a7df

Browse files
committed
gis-83825 change sentinel one const
1 parent bf008fe commit e55a7df

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1+
from app.translator.core.models.platform_details import PlatformDetails
2+
3+
4+
PLATFORM_DETAILS = {"group_id": "sentinel-one", "group_name": "SentinelOne"}
5+
16
SENTINEL_ONE_EVENTS_QUERY_DETAILS = {
27
"platform_id": "s1-events",
38
"name": "SentinelOne Events Query",
4-
"group_name": "SentinelOne",
5-
"group_id": "sentinel-one",
69
"platform_name": "Query (Events)",
10+
**PLATFORM_DETAILS,
711
}
12+
13+
SENTINEL_ONE_POWER_QUERY_DETAILS = {
14+
"platform_id": "sentinel-one-power-query",
15+
"name": "SentinelOne Power Query",
16+
"platform_name": "Power Query",
17+
**PLATFORM_DETAILS,
18+
}
19+
20+
sentinel_one_events_query_details = PlatformDetails(**SENTINEL_ONE_EVENTS_QUERY_DETAILS)

uncoder-core/app/translator/platforms/sentinel_one/renders/s1_cti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
from app.translator.core.models.platform_details import PlatformDetails
2121
from app.translator.core.render_cti import RenderCTI
2222
from app.translator.managers import render_cti_manager
23-
from app.translator.platforms.sentinel_one.const import SENTINEL_ONE_EVENTS_QUERY_DETAILS
23+
from app.translator.platforms.sentinel_one.const import sentinel_one_events_query_details
2424
from app.translator.platforms.sentinel_one.mappings.s1_cti import DEFAULT_S1EVENTS_MAPPING
2525

2626

2727
@render_cti_manager.register
2828
class S1EventsCTI(RenderCTI):
29-
details: PlatformDetails = PlatformDetails(**SENTINEL_ONE_EVENTS_QUERY_DETAILS)
29+
details: PlatformDetails = sentinel_one_events_query_details
3030

3131
field_value_template: str = '"{value}"'
3232
or_operator: str = ", "

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy