Skip to content

Commit 3a450ba

Browse files
committed
fix: 修复事件检索跳转链接时间偏移量错误
1 parent 82c72dc commit 3a450ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bkmonitor/packages/monitor_adapter/home/alert_redirect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from bkmonitor.models import ActionInstance
2020
from bkmonitor.utils import time_tools
2121
from bkmonitor.utils.alert_drilling import merge_dimensions_into_conditions
22-
from constants.apm import ApmAlertHelper, FIVE_MIN_SECONDS
22+
from constants.apm import ApmAlertHelper
2323
from constants.data_source import DataSourceLabel, DataTypeLabel
2424
from core.drf_resource import resource
2525

@@ -189,7 +189,7 @@ def generate_event_explore_url(bk_biz_id: int, collect_id: str) -> str | None:
189189
dimension_fields=redirect_info.dimension_fields,
190190
)
191191

192-
offset: int = FIVE_MIN_SECONDS * 60 * 1000
192+
offset: int = 5 * 60 * 1000
193193
create_timestamp: int = redirect_info.alert.event.time
194194
params: dict[str, Any] = {
195195
"targets": json.dumps([{"data": {"query_configs": [query_filter]}}]),

0 commit comments

Comments
 (0)