mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Alert table] Fix kibana.alert.rule.execution.timstamp timezone and format (#183905)
Related to #182650
## Summary
Fix `kibana.alert.rule.execution.timstamp` timezone and format
|Before|After|
|---|---|
||
This commit is contained in:
parent
b81225ae7a
commit
6e851a804e
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ import {
|
|||
ALERT_RULE_NAME,
|
||||
ALERT_RULE_CATEGORY,
|
||||
ALERT_START,
|
||||
ALERT_RULE_EXECUTION_TIMESTAMP,
|
||||
} from '@kbn/rule-data-utils';
|
||||
import { isEmpty } from 'lodash';
|
||||
import type { TimelineNonEcsData } from '@kbn/timelines-plugin/common';
|
||||
|
@ -97,6 +98,7 @@ export const getRenderCellValue = ({
|
|||
return <AlertStatusIndicator alertStatus={value} />;
|
||||
case TIMESTAMP:
|
||||
case ALERT_START:
|
||||
case ALERT_RULE_EXECUTION_TIMESTAMP:
|
||||
return <TimestampTooltip time={new Date(value ?? '').getTime()} timeUnit="milliseconds" />;
|
||||
case ALERT_DURATION:
|
||||
return asDuration(Number(value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue