mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fixes APM -> infra links for 7.0 (#34785)
* Fixes APM -> infra links for 7.0 * Updates snapshot with correct infra links
This commit is contained in:
parent
8a333d2ee6
commit
f20059563a
2 changed files with 8 additions and 7 deletions
|
@ -23,6 +23,7 @@ import { StringMap } from 'x-pack/plugins/apm/typings/common';
|
|||
import { Transaction } from 'x-pack/plugins/apm/typings/es_schemas/Transaction';
|
||||
import { getDiscoverQuery } from '../Links/DiscoverLinks/DiscoverTransactionLink';
|
||||
import { QueryWithIndexPattern } from '../Links/DiscoverLinks/QueryWithIndexPattern';
|
||||
import { getKibanaHref } from '../Links/url_helpers';
|
||||
|
||||
function getInfraMetricsQuery(transaction: Transaction) {
|
||||
const plus5 = new Date(transaction['@timestamp']);
|
||||
|
@ -147,7 +148,7 @@ export class TransactionActionMenu extends React.Component<Props, State> {
|
|||
]
|
||||
.filter(({ target }) => Boolean(target))
|
||||
.map(({ icon, label, hash, query }, index) => {
|
||||
const href = getRisonHref({
|
||||
const href = getKibanaHref({
|
||||
location,
|
||||
pathname,
|
||||
hash,
|
||||
|
|
|
@ -20,7 +20,7 @@ exports[`TransactionActionMenu component should render with data 1`] = `
|
|||
items={
|
||||
Array [
|
||||
<EuiContextMenuItem
|
||||
href="/app/infra#/link-to/pod-logs/pod123456abcdef?_g=(refreshInterval:(pause:true,value:'0'),time:(from:now-24h,to:now))"
|
||||
href="/app/infra#/link-to/pod-logs/pod123456abcdef?time=1545092070952"
|
||||
icon="loggingApp"
|
||||
layoutAlign="center"
|
||||
toolTipPosition="right"
|
||||
|
@ -57,7 +57,7 @@ exports[`TransactionActionMenu component should render with data 1`] = `
|
|||
</EuiFlexGroup>
|
||||
</EuiContextMenuItem>,
|
||||
<EuiContextMenuItem
|
||||
href="/app/infra#/link-to/container-logs/container123456abcdef?_g=(refreshInterval:(pause:true,value:'0'),time:(from:now-24h,to:now))"
|
||||
href="/app/infra#/link-to/container-logs/container123456abcdef?time=1545092070952"
|
||||
icon="loggingApp"
|
||||
layoutAlign="center"
|
||||
toolTipPosition="right"
|
||||
|
@ -94,7 +94,7 @@ exports[`TransactionActionMenu component should render with data 1`] = `
|
|||
</EuiFlexGroup>
|
||||
</EuiContextMenuItem>,
|
||||
<EuiContextMenuItem
|
||||
href="/app/infra#/link-to/host-logs/227453131a17?_g=(refreshInterval:(pause:true,value:'0'),time:(from:now-24h,to:now))"
|
||||
href="/app/infra#/link-to/host-logs/227453131a17?time=1545092070952"
|
||||
icon="loggingApp"
|
||||
layoutAlign="center"
|
||||
toolTipPosition="right"
|
||||
|
@ -131,7 +131,7 @@ exports[`TransactionActionMenu component should render with data 1`] = `
|
|||
</EuiFlexGroup>
|
||||
</EuiContextMenuItem>,
|
||||
<EuiContextMenuItem
|
||||
href="/app/infra#/link-to/pod-detail/pod123456abcdef?_g=(refreshInterval:(pause:true,value:'0'),time:(from:now-24h,to:now))"
|
||||
href="/app/infra#/link-to/pod-detail/pod123456abcdef?from=1545091770952&to=1545092370952"
|
||||
icon="infraApp"
|
||||
layoutAlign="center"
|
||||
toolTipPosition="right"
|
||||
|
@ -168,7 +168,7 @@ exports[`TransactionActionMenu component should render with data 1`] = `
|
|||
</EuiFlexGroup>
|
||||
</EuiContextMenuItem>,
|
||||
<EuiContextMenuItem
|
||||
href="/app/infra#/link-to/container-detail/container123456abcdef?_g=(refreshInterval:(pause:true,value:'0'),time:(from:now-24h,to:now))"
|
||||
href="/app/infra#/link-to/container-detail/container123456abcdef?from=1545091770952&to=1545092370952"
|
||||
icon="infraApp"
|
||||
layoutAlign="center"
|
||||
toolTipPosition="right"
|
||||
|
@ -205,7 +205,7 @@ exports[`TransactionActionMenu component should render with data 1`] = `
|
|||
</EuiFlexGroup>
|
||||
</EuiContextMenuItem>,
|
||||
<EuiContextMenuItem
|
||||
href="/app/infra#/link-to/host-detail/227453131a17?_g=(refreshInterval:(pause:true,value:'0'),time:(from:now-24h,to:now))"
|
||||
href="/app/infra#/link-to/host-detail/227453131a17?from=1545091770952&to=1545092370952"
|
||||
icon="infraApp"
|
||||
layoutAlign="center"
|
||||
toolTipPosition="right"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue