Rename googlecloud to gcp in Add Data UI (#93725) (#94547)

Co-authored-by: kaiyan-sheng <kaiyan.sheng@elastic.co>
This commit is contained in:
Mario Castro 2021-03-15 12:56:33 +01:00 committed by GitHub
parent fcab4fd040
commit c922677497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 45 additions and 51 deletions

View file

@ -18,27 +18,27 @@ import {
TutorialSchema,
} from '../../services/tutorials/lib/tutorials_registry_types';
export function googlecloudLogsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'googlecloud';
export function gcpLogsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'gcp';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'] as const;
return {
id: 'googlecloudLogs',
name: i18n.translate('home.tutorials.googlecloudLogs.nameTitle', {
id: 'gcpLogs',
name: i18n.translate('home.tutorials.gcpLogs.nameTitle', {
defaultMessage: 'Google Cloud logs',
}),
moduleName,
category: TutorialsCategory.SECURITY_SOLUTION,
shortDescription: i18n.translate('home.tutorials.googlecloudLogs.shortDescription', {
shortDescription: i18n.translate('home.tutorials.gcpLogs.shortDescription', {
defaultMessage: 'Collect Google Cloud audit, firewall, and VPC flow logs.',
}),
longDescription: i18n.translate('home.tutorials.googlecloudLogs.longDescription', {
longDescription: i18n.translate('home.tutorials.gcpLogs.longDescription', {
defaultMessage:
'This is a module for Google Cloud logs. It supports reading audit, VPC flow, \
and firewall logs that have been exported from Stackdriver to a Google Pub/Sub \
topic sink. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-googlecloud.html',
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-gcp.html',
},
}),
euiIconType: 'logoGoogleG',
@ -46,21 +46,18 @@ export function googlecloudLogsSpecProvider(context: TutorialContext): TutorialS
dashboards: [
{
id: '6576c480-73a2-11ea-a345-f985c61fe654',
linkLabel: i18n.translate(
'home.tutorials.googlecloudLogs.artifacts.dashboards.linkLabel',
{
defaultMessage: 'Audit Logs Dashbaord',
}
),
linkLabel: i18n.translate('home.tutorials.gcpLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'Audit Logs Dashbaord',
}),
isOverview: true,
},
],
exportedFields: {
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-googlecloud.html',
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-gcp.html',
},
},
completionTimeMinutes: 10,
previewImagePath: '/plugins/home/assets/googlecloud_logs/screenshot.png',
previewImagePath: '/plugins/home/assets/gcp_logs/screenshot.png',
onPrem: onPremInstructions(moduleName, platforms, context),
elasticCloud: cloudInstructions(moduleName, platforms),
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms),

View file

@ -18,25 +18,25 @@ import {
TutorialSchema,
} from '../../services/tutorials/lib/tutorials_registry_types';
export function googlecloudMetricsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'googlecloud';
export function gcpMetricsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'gcp';
return {
id: 'googlecloudMetrics',
name: i18n.translate('home.tutorials.googlecloudMetrics.nameTitle', {
id: 'gcpMetrics',
name: i18n.translate('home.tutorials.gcpMetrics.nameTitle', {
defaultMessage: 'Google Cloud metrics',
}),
moduleName,
category: TutorialsCategory.METRICS,
shortDescription: i18n.translate('home.tutorials.googlecloudMetrics.shortDescription', {
shortDescription: i18n.translate('home.tutorials.gcpMetrics.shortDescription', {
defaultMessage:
'Fetch monitoring metrics from Google Cloud Platform using Stackdriver Monitoring API.',
}),
longDescription: i18n.translate('home.tutorials.googlecloudMetrics.longDescription', {
longDescription: i18n.translate('home.tutorials.gcpMetrics.longDescription', {
defaultMessage:
'The `googlecloud` Metricbeat module fetches monitoring metrics from Google Cloud Platform using Stackdriver Monitoring API. \
'The `gcp` Metricbeat module fetches monitoring metrics from Google Cloud Platform using Stackdriver Monitoring API. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-googlecloud.html',
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-gcp.html',
},
}),
euiIconType: 'logoGCP',
@ -45,21 +45,18 @@ export function googlecloudMetricsSpecProvider(context: TutorialContext): Tutori
dashboards: [
{
id: 'f40ee870-5e4a-11ea-a4f6-717338406083',
linkLabel: i18n.translate(
'home.tutorials.googlecloudMetrics.artifacts.dashboards.linkLabel',
{
defaultMessage: 'Google Cloud metrics dashboard',
}
),
linkLabel: i18n.translate('home.tutorials.gcpMetrics.artifacts.dashboards.linkLabel', {
defaultMessage: 'Google Cloud metrics dashboard',
}),
isOverview: true,
},
],
exportedFields: {
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-googlecloud.html',
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-gcp.html',
},
},
completionTimeMinutes: 10,
previewImagePath: '/plugins/home/assets/googlecloud_metrics/screenshot.png',
previewImagePath: '/plugins/home/assets/gcp_metrics/screenshot.png',
onPrem: onPremInstructions(moduleName, context),
elasticCloud: cloudInstructions(moduleName),
onPremElasticCloud: onPremCloudInstructions(moduleName),

View file

@ -42,8 +42,8 @@ import { etcdMetricsSpecProvider } from './etcd_metrics';
import { f5LogsSpecProvider } from './f5_logs';
import { fortinetLogsSpecProvider } from './fortinet_logs';
import { golangMetricsSpecProvider } from './golang_metrics';
import { googlecloudLogsSpecProvider } from './googlecloud_logs';
import { googlecloudMetricsSpecProvider } from './googlecloud_metrics';
import { gcpLogsSpecProvider } from './gcp_logs';
import { gcpMetricsSpecProvider } from './gcp_metrics';
import { gsuiteLogsSpecProvider } from './gsuite_logs';
import { haproxyLogsSpecProvider } from './haproxy_logs';
import { haproxyMetricsSpecProvider } from './haproxy_metrics';
@ -192,7 +192,7 @@ export const builtInTutorials = [
oracleMetricsSpecProvider,
iisMetricsSpecProvider,
azureLogsSpecProvider,
googlecloudMetricsSpecProvider,
gcpMetricsSpecProvider,
auditdLogsSpecProvider,
barracudaLogsSpecProvider,
bluecoatLogsSpecProvider,
@ -202,7 +202,7 @@ export const builtInTutorials = [
cylanceLogsSpecProvider,
f5LogsSpecProvider,
fortinetLogsSpecProvider,
googlecloudLogsSpecProvider,
gcpLogsSpecProvider,
gsuiteLogsSpecProvider,
haproxyLogsSpecProvider,
icingaLogsSpecProvider,

View file

@ -2396,14 +2396,14 @@
"home.tutorials.golangMetrics.longDescription": "Metricbeat モジュール「{moduleName}」は、Golang アプリから内部メトリックを取得します。[詳細] ({learnMoreLink}) 。",
"home.tutorials.golangMetrics.nameTitle": "Golang メトリック",
"home.tutorials.golangMetrics.shortDescription": "Golang アプリから内部メトリックを取得します。",
"home.tutorials.googlecloudLogs.artifacts.dashboards.linkLabel": "監査ログダッシュボード",
"home.tutorials.googlecloudLogs.longDescription": "これは Google Cloud ログのモジュールです。Stackdriver から Google Pub/Sub トピックシンクにエクスポートされた監査、VPC フロー、ファイアウォールログの読み取りをサポートします。[詳細] ({learnMoreLink}) 。",
"home.tutorials.googlecloudLogs.nameTitle": "Google Cloud ログ",
"home.tutorials.googlecloudLogs.shortDescription": "Google Cloud 監査、ファイアウォール、VPC フローログを収集します。",
"home.tutorials.googlecloudMetrics.artifacts.dashboards.linkLabel": "Google Cloudメトリックダッシュボード",
"home.tutorials.googlecloudMetrics.longDescription": "「googlecloud」Metricbeatモジュールは、Stackdriver Monitoring APIを使用して、Google Cloud Platformから監視メトリックを取得します。[詳細] ({learnMoreLink}) 。",
"home.tutorials.googlecloudMetrics.nameTitle": "Google Cloudメトリック",
"home.tutorials.googlecloudMetrics.shortDescription": "Stackdriver Monitoring API を使用して、Google Cloud Platform から監視メトリックを取得します。",
"home.tutorials.gcpLogs.artifacts.dashboards.linkLabel": "監査ログダッシュボード",
"home.tutorials.gcpLogs.longDescription": "これは Google Cloud ログのモジュールです。Stackdriver から Google Pub/Sub トピックシンクにエクスポートされた監査、VPC フロー、ファイアウォールログの読み取りをサポートします。[詳細]({learnMoreLink})。",
"home.tutorials.gcpLogs.nameTitle": "Google Cloud ログ",
"home.tutorials.gcpLogs.shortDescription": "Google Cloud 監査、ファイアウォール、VPC フローログを収集します。",
"home.tutorials.gcpMetrics.artifacts.dashboards.linkLabel": "Google Cloudメトリックダッシュボード",
"home.tutorials.gcpMetrics.longDescription": "「gcp」Metricbeatモジュールは、Stackdriver Monitoring APIを使用して、Google Cloud Platformから監視メトリックを取得します。[詳細]{learnMoreLink}。",
"home.tutorials.gcpMetrics.nameTitle": "Google Cloudメトリック",
"home.tutorials.gcpMetrics.shortDescription": "Stackdriver Monitoring API を使用して、Google Cloud Platform から監視メトリックを取得します。",
"home.tutorials.gsuiteLogs.artifacts.dashboards.linkLabel": "セキュリティアプリ",
"home.tutorials.gsuiteLogs.longDescription": "これは異なる GSuite 監査レポート API からデータを取り込むためのモジュールです。[詳細] ({learnMoreLink}) 。",
"home.tutorials.gsuiteLogs.nameTitle": "GSuite ログ",

View file

@ -2408,14 +2408,14 @@
"home.tutorials.golangMetrics.longDescription": "Metricbeat 模块 `{moduleName}` 从 Golang 应用提取内部指标。[了解详情]({learnMoreLink})。",
"home.tutorials.golangMetrics.nameTitle": "Golang 指标",
"home.tutorials.golangMetrics.shortDescription": "从 Golang 应用提取内部指标。",
"home.tutorials.googlecloudLogs.artifacts.dashboards.linkLabel": "审计日志仪表板",
"home.tutorials.googlecloudLogs.longDescription": "此模块适用于 Google Cloud 日志。其支持读取从 Stackdriver 导出到 Google Pub/Sub 主题接收器 的审计、VPC 流和防火墙日志。[了解详情]({learnMoreLink})。",
"home.tutorials.googlecloudLogs.nameTitle": "Google Cloud 日志",
"home.tutorials.googlecloudLogs.shortDescription": "收集 Google Cloud 审计、防火墙、VPC 流日志。",
"home.tutorials.googlecloudMetrics.artifacts.dashboards.linkLabel": "Google Cloud 指标仪表板",
"home.tutorials.googlecloudMetrics.longDescription": "Metricbeat 模块 `googlecloud` 使用 Stackdriver 监测 API 从 Google Cloud Platform 提取监测指标。[了解详情]({learnMoreLink})。",
"home.tutorials.googlecloudMetrics.nameTitle": "Google Cloud 指标",
"home.tutorials.googlecloudMetrics.shortDescription": "使用 Stackdriver 监测 API 从 Google Cloud Platform 提取监测指标。",
"home.tutorials.gcpLogs.artifacts.dashboards.linkLabel": "审计日志仪表板",
"home.tutorials.gcpLogs.longDescription": "此模块适用于 Google Cloud 日志。其支持读取从 Stackdriver 导出到 Google Pub/Sub 主题接收器 的审计、VPC 流和防火墙日志。[了解详情]({learnMoreLink})。",
"home.tutorials.gcpLogs.nameTitle": "Google Cloud 日志",
"home.tutorials.gcpLogs.shortDescription": "收集 Google Cloud 审计、防火墙、VPC 流日志。",
"home.tutorials.gcpMetrics.artifacts.dashboards.linkLabel": "Google Cloud 指标仪表板",
"home.tutorials.gcpMetrics.longDescription": "Metricbeat 模块 `gcp` 使用 Stackdriver 监测 API 从 Google Cloud Platform 提取监测指标。[了解详情]({learnMoreLink})。",
"home.tutorials.gcpMetrics.nameTitle": "Google Cloud 指标",
"home.tutorials.gcpMetrics.shortDescription": "使用 Stackdriver 监测 API 从 Google Cloud Platform 提取监测指标。",
"home.tutorials.gsuiteLogs.artifacts.dashboards.linkLabel": "Security 应用",
"home.tutorials.gsuiteLogs.longDescription": "这是用于从不同 GSuite 审计报告 API 采集数据的模块。[了解详情]({learnMoreLink})。",
"home.tutorials.gsuiteLogs.nameTitle": "GSuite 日志",