mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Logs UI] Replace KIP with data views in user facing copy (#118307)
* Change user facing copy from index pattern to data view
This commit is contained in:
parent
3768cc6de3
commit
1bf369e396
7 changed files with 33 additions and 53 deletions
|
@ -52,12 +52,12 @@ export const IndexNamesConfigurationPanel: React.FC<{
|
|||
<FormattedMessage
|
||||
tagName="p"
|
||||
id="xpack.infra.logSourceConfiguration.indexPatternInformationCalloutDescription"
|
||||
defaultMessage="The Logs UI can now integrate with Kibana index patterns to configure the used indices."
|
||||
defaultMessage="The Logs UI can now integrate with data views to configure the used indices."
|
||||
/>
|
||||
<EuiButton onClick={onSwitchToIndexPatternReference}>
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.switchToIndexPatternReferenceButtonLabel"
|
||||
defaultMessage="Use Kibana index patterns"
|
||||
id="xpack.infra.logSourceConfiguration.switchToDataViewReferenceButtonLabel"
|
||||
defaultMessage="Use data views"
|
||||
/>
|
||||
</EuiButton>
|
||||
</EuiCallOut>
|
||||
|
|
|
@ -47,27 +47,27 @@ export const IndexPatternConfigurationPanel: React.FC<{
|
|||
<EuiTitle size="s">
|
||||
<h3>
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.indexPatternSectionTitle"
|
||||
defaultMessage="Index pattern"
|
||||
id="xpack.infra.logSourceConfiguration.dataViewSectionTitle"
|
||||
defaultMessage="Data view"
|
||||
/>
|
||||
</h3>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="m" />
|
||||
<IndexPatternInlineHelpMessage />
|
||||
<DataViewsInlineHelpMessage />
|
||||
<EuiSpacer size="m" />
|
||||
<EuiDescribedFormGroup
|
||||
title={
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.logIndexPatternTitle"
|
||||
defaultMessage="Log index pattern"
|
||||
id="xpack.infra.logSourceConfiguration.dataViewTitle"
|
||||
defaultMessage="Log data view"
|
||||
/>
|
||||
</h4>
|
||||
}
|
||||
description={
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.logIndexPatternDescription"
|
||||
defaultMessage="Index pattern that contains log data"
|
||||
id="xpack.infra.logSourceConfiguration.dataViewDescription"
|
||||
defaultMessage="Data view that contains log data"
|
||||
/>
|
||||
}
|
||||
>
|
||||
|
@ -75,8 +75,8 @@ export const IndexPatternConfigurationPanel: React.FC<{
|
|||
fullWidth
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.logIndexPatternLabel"
|
||||
defaultMessage="Log index pattern"
|
||||
id="xpack.infra.logSourceConfiguration.dataViewLabel"
|
||||
defaultMessage="Log data view"
|
||||
/>
|
||||
}
|
||||
{...useMemo(
|
||||
|
@ -96,22 +96,22 @@ export const IndexPatternConfigurationPanel: React.FC<{
|
|||
);
|
||||
};
|
||||
|
||||
const IndexPatternInlineHelpMessage = React.memo(() => {
|
||||
const indexPatternManagementLinkProps = useLinkProps({
|
||||
const DataViewsInlineHelpMessage = React.memo(() => {
|
||||
const dataViewsManagementLinkProps = useLinkProps({
|
||||
app: 'management',
|
||||
pathname: '/kibana/indexPatterns',
|
||||
pathname: '/kibana/dataViews',
|
||||
});
|
||||
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.logIndexPatternHelpText"
|
||||
defaultMessage="Kibana index patterns are shared among apps in the Kibana space and can be managed via the {indexPatternsManagementLink}."
|
||||
id="xpack.infra.logSourceConfiguration.logDataViewHelpText"
|
||||
defaultMessage="Data views are shared among apps in the Kibana space and can be managed via the {dataViewsManagementLink}."
|
||||
values={{
|
||||
indexPatternsManagementLink: (
|
||||
<EuiLink {...indexPatternManagementLinkProps}>
|
||||
dataViewsManagementLink: (
|
||||
<EuiLink {...dataViewsManagementLinkProps}>
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.indexPatternManagementLinkText"
|
||||
defaultMessage="index patterns management screen"
|
||||
id="xpack.infra.logSourceConfiguration.dataViewsManagementLinkText"
|
||||
defaultMessage="data views management screen"
|
||||
/>
|
||||
</EuiLink>
|
||||
),
|
||||
|
|
|
@ -40,8 +40,8 @@ export const IndexPatternSelector: React.FC<{
|
|||
: [
|
||||
{
|
||||
key: indexPatternId,
|
||||
label: i18n.translate('xpack.infra.logSourceConfiguration.missingIndexPatternLabel', {
|
||||
defaultMessage: `Missing index pattern {indexPatternId}`,
|
||||
label: i18n.translate('xpack.infra.logSourceConfiguration.missingDataViewsLabel', {
|
||||
defaultMessage: `Missing data view {indexPatternId}`,
|
||||
values: {
|
||||
indexPatternId,
|
||||
},
|
||||
|
@ -83,6 +83,6 @@ export const IndexPatternSelector: React.FC<{
|
|||
};
|
||||
|
||||
const indexPatternSelectorPlaceholder = i18n.translate(
|
||||
'xpack.infra.logSourceConfiguration.indexPatternSelectorPlaceholder',
|
||||
{ defaultMessage: 'Choose an index pattern' }
|
||||
'xpack.infra.logSourceConfiguration.dataViewSelectorPlaceholder',
|
||||
{ defaultMessage: 'Choose a data view' }
|
||||
);
|
||||
|
|
|
@ -33,12 +33,12 @@ export const useLogIndicesFormElement = (initialValue: LogIndicesFormState) => {
|
|||
validate: useMemo(
|
||||
() => async (logIndices) => {
|
||||
if (logIndices == null) {
|
||||
return validateStringNotEmpty('log index pattern', '');
|
||||
return validateStringNotEmpty('log data view', '');
|
||||
} else if (logIndexNameReferenceRT.is(logIndices)) {
|
||||
return validateStringNotEmpty('log indices', logIndices.indexName);
|
||||
} else {
|
||||
const emptyStringErrors = validateStringNotEmpty(
|
||||
'log index pattern',
|
||||
'log data view',
|
||||
logIndices.indexPatternId
|
||||
);
|
||||
|
||||
|
|
|
@ -58,14 +58,14 @@ export const LogSourceConfigurationFormError: React.FC<{ error: FormValidationEr
|
|||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.missingTimestampFieldErrorMessage"
|
||||
defaultMessage="The index pattern must be time-based."
|
||||
defaultMessage="The data view must be time-based."
|
||||
/>
|
||||
);
|
||||
} else if (error.type === 'missing_message_field') {
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.missingMessageFieldErrorMessage"
|
||||
defaultMessage="The index pattern must contain a {messageField} field."
|
||||
defaultMessage="The data view must contain a {messageField} field."
|
||||
values={{
|
||||
messageField: <EuiCode>message</EuiCode>,
|
||||
}}
|
||||
|
@ -85,16 +85,16 @@ export const LogSourceConfigurationFormError: React.FC<{ error: FormValidationEr
|
|||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.rollupIndexPatternErrorMessage"
|
||||
defaultMessage="The index pattern must not be a rollup index pattern."
|
||||
defaultMessage="The data view must not be a rollup index pattern."
|
||||
/>
|
||||
);
|
||||
} else if (error.type === 'missing_index_pattern') {
|
||||
return (
|
||||
<FormattedMessage
|
||||
id="xpack.infra.logSourceConfiguration.missingIndexPatternErrorMessage"
|
||||
defaultMessage="The index pattern {indexPatternId} must exist."
|
||||
id="xpack.infra.logSourceConfiguration.missingDataViewErrorMessage"
|
||||
defaultMessage="The data view {dataViewId} must exist."
|
||||
values={{
|
||||
indexPatternId: <EuiCode>{error.indexPatternId}</EuiCode>,
|
||||
dataViewId: <EuiCode>{error.indexPatternId}</EuiCode>,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -13038,21 +13038,11 @@
|
|||
"xpack.infra.logSourceConfiguration.childFormElementErrorMessage": "1つ以上のフォームフィールドが無効な状態です。",
|
||||
"xpack.infra.logSourceConfiguration.emptyColumnListErrorMessage": "列リストは未入力のままにできません。",
|
||||
"xpack.infra.logSourceConfiguration.emptyFieldErrorMessage": "フィールド'{fieldName}'は未入力のままにできません。",
|
||||
"xpack.infra.logSourceConfiguration.indexPatternManagementLinkText": "インデックスパターン管理画面",
|
||||
"xpack.infra.logSourceConfiguration.indexPatternSectionTitle": "インデックスパターン",
|
||||
"xpack.infra.logSourceConfiguration.indexPatternSelectorPlaceholder": "インデックスパターンを選択",
|
||||
"xpack.infra.logSourceConfiguration.invalidMessageFieldTypeErrorMessage": "{messageField}フィールドはテキストフィールドでなければなりません。",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternDescription": "ログデータを含むインデックスパターン",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternHelpText": "KibanaインデックスパターンはKibanaスペースでアプリ間で共有され、{indexPatternsManagementLink}を使用して管理できます。",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternLabel": "ログインデックスパターン",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternTitle": "ログインデックスパターン",
|
||||
"xpack.infra.logSourceConfiguration.logSourceConfigurationFormErrorsCalloutTitle": "一貫しないソース構成",
|
||||
"xpack.infra.logSourceConfiguration.missingIndexPatternErrorMessage": "インデックスパターン{indexPatternId}が存在する必要があります。",
|
||||
"xpack.infra.logSourceConfiguration.missingIndexPatternLabel": "インデックスパターン{indexPatternId}が見つかりません",
|
||||
"xpack.infra.logSourceConfiguration.missingMessageFieldErrorMessage": "インデックスパターンには{messageField}フィールドが必要です。",
|
||||
"xpack.infra.logSourceConfiguration.missingTimestampFieldErrorMessage": "インデックスパターンは時間に基づく必要があります。",
|
||||
"xpack.infra.logSourceConfiguration.rollupIndexPatternErrorMessage": "インデックスパターンがロールアップインデックスパターンであってはなりません。",
|
||||
"xpack.infra.logSourceConfiguration.switchToIndexPatternReferenceButtonLabel": "Kibanaインデックスパターンを使用",
|
||||
"xpack.infra.logSourceConfiguration.unsavedFormPromptMessage": "終了してよろしいですか?変更内容は失われます",
|
||||
"xpack.infra.logSourceErrorPage.failedToLoadSourceMessage": "構成の読み込み試行中にエラーが発生しました。再試行するか、構成を変更して問題を修正してください。",
|
||||
"xpack.infra.logSourceErrorPage.failedToLoadSourceTitle": "構成を読み込めませんでした",
|
||||
|
|
|
@ -13221,21 +13221,11 @@
|
|||
"xpack.infra.logSourceConfiguration.childFormElementErrorMessage": "至少一个表单字段处于无效状态。",
|
||||
"xpack.infra.logSourceConfiguration.emptyColumnListErrorMessage": "列列表不得为空。",
|
||||
"xpack.infra.logSourceConfiguration.emptyFieldErrorMessage": "字段“{fieldName}”不得为空。",
|
||||
"xpack.infra.logSourceConfiguration.indexPatternManagementLinkText": "索引模式管理模式",
|
||||
"xpack.infra.logSourceConfiguration.indexPatternSectionTitle": "索引模式",
|
||||
"xpack.infra.logSourceConfiguration.indexPatternSelectorPlaceholder": "选择索引模式",
|
||||
"xpack.infra.logSourceConfiguration.invalidMessageFieldTypeErrorMessage": "{messageField} 字段必须是文本字段。",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternDescription": "包含日志数据的索引模式",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternHelpText": "Kibana 索引模式在 Kibana 工作区中的应用间共享,并可以通过“{indexPatternsManagementLink}”进行管理。",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternLabel": "日志索引模式",
|
||||
"xpack.infra.logSourceConfiguration.logIndexPatternTitle": "日志索引模式",
|
||||
"xpack.infra.logSourceConfiguration.logSourceConfigurationFormErrorsCalloutTitle": "内容配置不一致",
|
||||
"xpack.infra.logSourceConfiguration.missingIndexPatternErrorMessage": "索引模式 {indexPatternId} 必须存在。",
|
||||
"xpack.infra.logSourceConfiguration.missingIndexPatternLabel": "缺失索引模式 {indexPatternId}",
|
||||
"xpack.infra.logSourceConfiguration.missingMessageFieldErrorMessage": "索引模式必须包含 {messageField} 字段。",
|
||||
"xpack.infra.logSourceConfiguration.missingTimestampFieldErrorMessage": "索引模式必须基于时间。",
|
||||
"xpack.infra.logSourceConfiguration.rollupIndexPatternErrorMessage": "索引模式不得为汇总/打包索引模式。",
|
||||
"xpack.infra.logSourceConfiguration.switchToIndexPatternReferenceButtonLabel": "使用 Kibana 索引模式",
|
||||
"xpack.infra.logSourceConfiguration.unsavedFormPromptMessage": "是否确定要离开?更改将丢失",
|
||||
"xpack.infra.logSourceErrorPage.failedToLoadSourceMessage": "尝试加载配置时出错。请重试或更改配置以解决问题。",
|
||||
"xpack.infra.logSourceErrorPage.failedToLoadSourceTitle": "无法加载配置",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue