Change the hosts view search bar placeholder text (#147599)

Closes [#147277](https://github.com/elastic/kibana/issues/147277)
## Summary

This PR changes the search bar placeholder texts on the hosts' view
page.
The new placeholder text is: 

> Search hosts (E.g. cloud.provider:gcp AND system.load.1 > 0.5)

<img width="1427" alt="image"
src="https://user-images.githubusercontent.com/14139027/207832784-4409f7e4-220d-480b-8c9e-ba9394e125a5.png">
This commit is contained in:
jennypavlova 2022-12-16 11:56:26 +01:00 committed by GitHub
parent 11a8f2e394
commit 5047b05b7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ import { useKibana } from '@kbn/kibana-react-plugin/public';
import type { Filter, Query, TimeRange } from '@kbn/es-query';
import type { DataView } from '@kbn/data-views-plugin/public';
import type { SavedQuery } from '@kbn/data-plugin/public';
import { i18n } from '@kbn/i18n';
import type { InfraClientStartDeps } from '../../../../types';
import { useUnifiedSearchContext } from '../hooks/use_unified_search';
import { ControlsContent } from './controls_content';
@ -64,6 +65,9 @@ export const UnifiedSearchBar = ({ dataView }: Props) => {
<>
<SearchBar
appName={'Infra Hosts'}
placeholder={i18n.translate('xpack.infra.hosts.searchPlaceholder', {
defaultMessage: 'Search hosts (E.g. cloud.provider:gcp AND system.load.1 > 0.5)',
})}
indexPatterns={[dataView]}
query={unifiedSearchQuery}
dateRangeFrom={unifiedSearchDateRange.from}