mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* [APM] add service name to jvm * removes isLoading Co-authored-by: Brittany Joiner <brittanyjoiner15@gmail.com>
This commit is contained in:
parent
40083777df
commit
31dbd88670
2 changed files with 40 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { ServiceNodeMetrics } from '.';
|
||||
import { MockApmPluginContextWrapper } from '../../../utils/testHelpers';
|
||||
|
||||
describe('ServiceNodeMetrics', () => {
|
||||
describe('render', () => {
|
||||
it('renders', () => {
|
||||
expect(() =>
|
||||
shallow(
|
||||
<MockApmPluginContextWrapper>
|
||||
<ServiceNodeMetrics />
|
||||
</MockApmPluginContextWrapper>
|
||||
)
|
||||
).not.toThrowError();
|
||||
});
|
||||
});
|
||||
});
|
|
@ -117,6 +117,22 @@ export function ServiceNodeMetrics() {
|
|||
</EuiCallOut>
|
||||
) : (
|
||||
<EuiFlexGroup gutterSize="xl">
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiStat
|
||||
titleSize="s"
|
||||
description={i18n.translate(
|
||||
'xpack.apm.serviceNodeMetrics.serviceName',
|
||||
{
|
||||
defaultMessage: 'Service name'
|
||||
}
|
||||
)}
|
||||
title={
|
||||
<EuiToolTip content={serviceName}>
|
||||
<Truncate>{serviceName}</Truncate>
|
||||
</EuiToolTip>
|
||||
}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiStat
|
||||
titleSize="s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue