forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Uptime] Added trends chart and deep link to exp view on waterfall st…
…ep metric markers (elastic#114068) * added trend chart and link to exp view * Added step level filtering/breakdowns * fix type * make step and monitor name single select * fix test * added step filters * pr feedback * hide step filter for non step metrics * pr feedback * remove step def when it's not applicable * ^^also for step name breakdown * Update x-pack/plugins/observability/public/components/shared/exploratory_view/series_editor/breakdown/breakdowns.tsx Co-authored-by: Dominique Clarke <[email protected]> * use side effct * update monitor filter * update all_value usage * refactor * fix type * use last value operation * use last 48 intervals Co-authored-by: Dominique Clarke <[email protected]>
- Loading branch information
1 parent
c7b98c5
commit 38b0da9
Showing
13 changed files
with
293 additions
and
28 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
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
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
38 changes: 38 additions & 0 deletions
38
...ptime/public/components/monitor/synthetics/waterfall/components/waterfall_marker_icon.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,38 @@ | ||
/* | ||
* 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, { useState } from 'react'; | ||
import { EuiButtonIcon, EuiIcon, EuiPopover } from '@elastic/eui'; | ||
import { WaterfallMarkerTrend } from './waterfall_marker_trend'; | ||
|
||
export function WaterfallMarkerIcon({ field, label }: { field: string; label: string }) { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
if (!field) { | ||
return <EuiIcon type="dot" size="l" />; | ||
} | ||
|
||
return ( | ||
<EuiPopover | ||
isOpen={isOpen} | ||
closePopover={() => setIsOpen(false)} | ||
anchorPosition="downLeft" | ||
panelStyle={{ paddingBottom: 0, paddingLeft: 4 }} | ||
zIndex={100} | ||
button={ | ||
<EuiButtonIcon | ||
iconType="dot" | ||
iconSize="l" | ||
color="text" | ||
onClick={() => setIsOpen((prevState) => !prevState)} | ||
/> | ||
} | ||
> | ||
<WaterfallMarkerTrend title={label} field={field} /> | ||
</EuiPopover> | ||
); | ||
} |
Oops, something went wrong.