-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 184084-extensions-for-doc-viewer
- Loading branch information
Showing
11 changed files
with
252 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...omponents/alerting/ui_components/alert_details_app_section/get_alert_start_annotation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import React from 'react'; | ||
import { AlertActiveTimeRangeAnnotation, AlertAnnotation } from '@kbn/observability-alert-details'; | ||
|
||
export function getAlertStartAnnotation({ | ||
alertStart, | ||
alertEnd, | ||
dateFormat, | ||
color, | ||
}: { | ||
alertStart: number; | ||
alertEnd?: number; | ||
dateFormat: string; | ||
color: string; | ||
}) { | ||
return [ | ||
<AlertActiveTimeRangeAnnotation | ||
alertStart={alertStart} | ||
alertEnd={alertEnd} | ||
color={color} | ||
id="alertActiveRect" | ||
key="alertActiveRect" | ||
/>, | ||
<AlertAnnotation | ||
key="alertAnnotationStart" | ||
id="alertAnnotationStart" | ||
alertStart={alertStart} | ||
color={color} | ||
dateFormat={dateFormat} | ||
/>, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.