Skip to content

Commit

Permalink
Fix typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored and sqren committed Sep 15, 2020
1 parent 2682594 commit 5b47bd8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
18 changes: 8 additions & 10 deletions x-pack/plugins/apm/server/lib/rum_client/get_page_view_trends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,15 @@ export async function getPageViewTrends({
x: xVal,
y: bCount,
};
if (breakdownItem) {
const categoryBuckets = (bucket.breakdown as any).buckets;
categoryBuckets.forEach(
({ key, doc_count: docCount }: { key: string; doc_count: number }) => {
if (key === 'Other') {
res[key + `(${breakdownItem?.name})`] = docCount;
} else {
res[key] = docCount;
}
if ('breakdown' in bucket) {
const categoryBuckets = bucket.breakdown.buckets;
categoryBuckets.forEach(({ key, doc_count: docCount }) => {
if (key === 'Other') {
res[key + `(${breakdownItem?.name})`] = docCount;
} else {
res[key] = docCount;
}
);
});
}

return res;
Expand Down
5 changes: 0 additions & 5 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -4622,7 +4622,6 @@
"xpack.apm.agentMetrics.java.threadCount": "平均カウント",
"xpack.apm.agentMetrics.java.threadCountChartTitle": "スレッド数",
"xpack.apm.agentMetrics.java.threadCountMax": "最高カウント",
"xpack.apm.alertTypes.errorRate": "エラー率",
"xpack.apm.alertTypes.transactionDuration": "トランザクション期間",
"xpack.apm.anomaly_detection.error.invalid_license": "異常検知を使用するには、Elastic Platinumライセンスのサブスクリプションが必要です。このライセンスがあれば、機械学習を活用して、サービスを監視できます。",
"xpack.apm.anomaly_detection.error.missing_read_privileges": "異常検知ジョブを表示するには、機械学習およびAPMの「読み取り」権限が必要です",
Expand Down Expand Up @@ -4681,8 +4680,6 @@
"xpack.apm.errorGroupDetails.relatedTransactionSample": "関連トランザクションサンプル",
"xpack.apm.errorGroupDetails.unhandledLabel": "未対応",
"xpack.apm.errorGroupDetails.viewOccurrencesInDiscoverButtonLabel": "ディスカバリで {occurrencesCount} 件の{occurrencesCount, plural, one {ドキュメント} other {ドキュメント}}を表示。",
"xpack.apm.errorRateAlert.name": "エラー率",
"xpack.apm.errorRateAlert.thresholdMet": "しきい値一致",
"xpack.apm.errorRateAlertTrigger.environment": "環境",
"xpack.apm.errorRateAlertTrigger.errors": "エラー",
"xpack.apm.errorRateAlertTrigger.isAbove": "の下限は",
Expand Down Expand Up @@ -4807,7 +4804,6 @@
"xpack.apm.selectPlaceholder": "オプションを選択:",
"xpack.apm.serviceDetails.alertsMenu.alerts": "アラート",
"xpack.apm.serviceDetails.alertsMenu.createThresholdAlert": "しきい値アラートを作成",
"xpack.apm.serviceDetails.alertsMenu.errorRate": "エラー率",
"xpack.apm.serviceDetails.alertsMenu.transactionDuration": "トランザクション期間",
"xpack.apm.serviceDetails.alertsMenu.viewActiveAlerts": "アクティブアラートを表示",
"xpack.apm.serviceDetails.errorsTabLabel": "エラー",
Expand Down Expand Up @@ -5037,7 +5033,6 @@
"xpack.apm.transactionDurationAlert.aggregationType.99th": "99 パーセンタイル",
"xpack.apm.transactionDurationAlert.aggregationType.avg": "平均",
"xpack.apm.transactionDurationAlert.name": "トランザクション期間",
"xpack.apm.transactionDurationAlert.thresholdMet": "しきい値一致",
"xpack.apm.transactionDurationAlertTrigger.environment": "環境",
"xpack.apm.transactionDurationAlertTrigger.isAbove": "の下限は",
"xpack.apm.transactionDurationAlertTrigger.ms": "ms",
Expand Down
5 changes: 0 additions & 5 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -4623,7 +4623,6 @@
"xpack.apm.agentMetrics.java.threadCount": "平均计数",
"xpack.apm.agentMetrics.java.threadCountChartTitle": "线程计数",
"xpack.apm.agentMetrics.java.threadCountMax": "最大计数",
"xpack.apm.alertTypes.errorRate": "错误率",
"xpack.apm.alertTypes.transactionDuration": "事务持续时间",
"xpack.apm.anomaly_detection.error.invalid_license": "要使用异常检测,必须订阅 Elastic 白金级许可证。有了该许可证,您便可借助 Machine Learning 监测服务。",
"xpack.apm.anomaly_detection.error.missing_read_privileges": "必须对 Machine Learning 和 APM 具有“读”权限,才能查看“异常检测”作业",
Expand Down Expand Up @@ -4682,8 +4681,6 @@
"xpack.apm.errorGroupDetails.relatedTransactionSample": "相关的事务样本",
"xpack.apm.errorGroupDetails.unhandledLabel": "未处理",
"xpack.apm.errorGroupDetails.viewOccurrencesInDiscoverButtonLabel": "在 Discover 查看 {occurrencesCount} 个 {occurrencesCount, plural, one {匹配项} other {匹配项}}。",
"xpack.apm.errorRateAlert.name": "错误率",
"xpack.apm.errorRateAlert.thresholdMet": "阈值已达到",
"xpack.apm.errorRateAlertTrigger.environment": "环境",
"xpack.apm.errorRateAlertTrigger.errors": "错误",
"xpack.apm.errorRateAlertTrigger.isAbove": "高于",
Expand Down Expand Up @@ -4810,7 +4807,6 @@
"xpack.apm.selectPlaceholder": "选择选项:",
"xpack.apm.serviceDetails.alertsMenu.alerts": "告警",
"xpack.apm.serviceDetails.alertsMenu.createThresholdAlert": "创建阈值告警",
"xpack.apm.serviceDetails.alertsMenu.errorRate": "错误率",
"xpack.apm.serviceDetails.alertsMenu.transactionDuration": "事务持续时间",
"xpack.apm.serviceDetails.alertsMenu.viewActiveAlerts": "查看活动的告警",
"xpack.apm.serviceDetails.errorsTabLabel": "错误",
Expand Down Expand Up @@ -5040,7 +5036,6 @@
"xpack.apm.transactionDurationAlert.aggregationType.99th": "第 99 个百分位",
"xpack.apm.transactionDurationAlert.aggregationType.avg": "平均值",
"xpack.apm.transactionDurationAlert.name": "事务持续时间",
"xpack.apm.transactionDurationAlert.thresholdMet": "阈值已达到",
"xpack.apm.transactionDurationAlertTrigger.environment": "环境",
"xpack.apm.transactionDurationAlertTrigger.isAbove": "高于",
"xpack.apm.transactionDurationAlertTrigger.ms": "ms",
Expand Down

0 comments on commit 5b47bd8

Please sign in to comment.