-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 172506-obsux-add-feedback-form-to-apm
- Loading branch information
Showing
143 changed files
with
4,469 additions
and
1,702 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
60 changes: 60 additions & 0 deletions
60
x-pack/plugins/infra/public/components/asset_details/tabs/profiling/description_callout.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,60 @@ | ||
/* | ||
* 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, { useCallback } from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { EuiButton, EuiCallOut, EuiFlexGroup, EuiLink, EuiSpacer, EuiText } from '@elastic/eui'; | ||
import useLocalStorage from 'react-use/lib/useLocalStorage'; | ||
|
||
const LOCAL_STORAGE_KEY = 'infra-profiling-description-callout-dismissed'; | ||
|
||
export function DescriptionCallout() { | ||
const [isDismissed, setIsDismissed] = useLocalStorage(LOCAL_STORAGE_KEY, false); | ||
|
||
const onDismissClick = useCallback(() => setIsDismissed(true), [setIsDismissed]); | ||
|
||
if (isDismissed) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<> | ||
<EuiCallOut | ||
title={i18n.translate('xpack.infra.profiling.descriptionCallout.title', { | ||
defaultMessage: 'Displaying Resource Consumption for this Host', | ||
})} | ||
iconType="iInCircle" | ||
> | ||
<EuiText> | ||
{i18n.translate('xpack.infra.profiling.descriptionCallout.body', { | ||
defaultMessage: | ||
'Universal Profiling helps you optimize resource usage and find performance bottlenecks by showing which lines of code are consuming resources on your host, down to the application code, kernel, and third-party libraries.', | ||
})} | ||
</EuiText> | ||
<EuiSpacer /> | ||
<EuiFlexGroup alignItems="center"> | ||
<EuiLink | ||
data-test-subj="infraProfilingDescriptionCalloutLearnMoreLink" | ||
href="https://www.elastic.co/guide/en/observability/current/profiling-get-started.html" | ||
external | ||
target="_blank" | ||
> | ||
{i18n.translate('xpack.infra.profiling.descriptionCallout.learnMore', { | ||
defaultMessage: 'Learn more', | ||
})} | ||
</EuiLink> | ||
<EuiButton data-test-subj="infraDescriptionCalloutDismissButton" onClick={onDismissClick}> | ||
{i18n.translate('xpack.infra.profiling.descriptionCallout.dismiss', { | ||
defaultMessage: 'Dismiss', | ||
})} | ||
</EuiButton> | ||
</EuiFlexGroup> | ||
</EuiCallOut> | ||
<EuiSpacer /> | ||
</> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* 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 { EuiBadge } from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import React from 'react'; | ||
|
||
export const NewBadge = () => ( | ||
<EuiBadge color="accent"> | ||
{i18n.translate('xpack.infra.newBadgeLabel', { | ||
defaultMessage: 'NEW', | ||
})} | ||
</EuiBadge> | ||
); |
Oops, something went wrong.