plugin-elastic-report 0.1.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/skills/elastic-report/SKILLS.md +5 -3
- package/dist/client/357.0dd385384cab5dbf.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/851.142c93fc6d666b28.js +10 -0
- package/dist/client-v2/857.a5bf9637d5fd4ef5.js +10 -0
- package/dist/client-v2/877.f4095a3dbcadf98f.js +10 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +3 -2
- package/dist/locale/en-US.json +100 -1
- package/dist/locale/vi-VN.json +100 -1
- package/dist/locale/zh-CN.json +100 -1
- package/dist/node_modules/@elastic/elasticsearch/package.json +1 -1
- package/dist/server/acl-guard.js +97 -25
- package/dist/server/collections/es-report-data-views.js +6 -0
- package/dist/server/collections/es-reports.js +6 -0
- package/dist/server/mcp/ElasticReportToolCatalog.js +232 -10
- package/dist/server/plugin.js +153 -19
- package/dist/server/services/ElasticReportService.js +125 -11
- package/dist/server/services/ElasticsearchConnectionService.js +274 -34
- package/dist/server/services/ReportExportService.js +243 -0
- package/dist/server/services/ReportQueryCompiler.js +532 -91
- package/dist/server/workflow/ElasticReportQueryInstruction.js +123 -0
- package/dist/shared/constants.js +17 -2
- package/package.json +3 -2
- package/src/client/index.tsx +16 -1
- package/src/client/workflow-instructions.tsx +44 -0
- package/src/client-v2/__tests__/elastic-report.test.tsx +519 -39
- package/src/client-v2/__tests__/kql-autocomplete.test.ts +178 -0
- package/src/client-v2/api.ts +96 -0
- package/src/client-v2/bus/DashboardFilterBus.ts +212 -0
- package/src/client-v2/components/ElasticBasicCharts.tsx +345 -92
- package/src/client-v2/components/ElasticFilterBar.tsx +372 -0
- package/src/client-v2/components/ElasticKqlInput.tsx +421 -0
- package/src/client-v2/components/ElasticReportBlock.tsx +157 -11
- package/src/client-v2/components/ElasticReportRenderer.tsx +621 -71
- package/src/client-v2/components/ReportSelect.tsx +39 -26
- package/src/client-v2/models/ElasticFilterBarBlockModel.tsx +115 -0
- package/src/client-v2/models/ElasticReportBlockModel.tsx +36 -3
- package/src/client-v2/pages/ElasticReportManager.tsx +432 -26
- package/src/client-v2/plugin.tsx +20 -0
- package/src/client-v2/utils/kqlAutocomplete.ts +861 -0
- package/src/client-v2/workflow/instructions.tsx +149 -0
- package/src/locale/en-US.json +100 -1
- package/src/locale/vi-VN.json +100 -1
- package/src/locale/zh-CN.json +100 -1
- package/src/server/__tests__/query-compiler.test.ts +390 -1
- package/src/server/__tests__/report-mcp-acl.integration.test.ts +271 -3
- package/src/server/acl-guard.ts +119 -28
- package/src/server/collections/es-report-data-views.ts +6 -0
- package/src/server/collections/es-reports.ts +6 -0
- package/src/server/mcp/ElasticReportToolCatalog.ts +255 -9
- package/src/server/plugin.ts +189 -21
- package/src/server/services/ElasticReportService.ts +165 -5
- package/src/server/services/ElasticsearchConnectionService.ts +375 -48
- package/src/server/services/ReportExportService.ts +282 -0
- package/src/server/services/ReportQueryCompiler.ts +629 -94
- package/src/server/workflow/ElasticReportQueryInstruction.ts +124 -0
- package/src/shared/constants.ts +7 -0
- package/src/shared/types.ts +98 -1
- package/dist/client-v2/851.488fdbf5bc5b6a36.js +0 -10
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { BarChartOutlined } from '@ant-design/icons';
|
|
11
|
+
import {
|
|
12
|
+
Instruction,
|
|
13
|
+
NodeDefaultView,
|
|
14
|
+
type FlowNodeModel,
|
|
15
|
+
type VariableOption,
|
|
16
|
+
} from '@nocobase/plugin-workflow/client-v2';
|
|
17
|
+
import { Form, Input, InputNumber, Select, Space, Tag } from 'antd';
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import { WORKFLOW_GROUP_KEY, WORKFLOW_INSTRUCTION_TYPE } from '../../shared/constants';
|
|
20
|
+
import type { ElasticWorkflowNodeConfig } from '../../shared/types';
|
|
21
|
+
import { ReportSelect } from '../components/ReportSelect';
|
|
22
|
+
import { tExpr, useT } from '../locale';
|
|
23
|
+
|
|
24
|
+
export interface WorkflowClientRegistry {
|
|
25
|
+
registerInstructionGroup(key: string, group: { key: string; label: string }): void;
|
|
26
|
+
registerInstruction(type: string, instruction: { new (): Instruction }): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function buildElasticReportWorkflowVariables(node: { key: string; title: string }): VariableOption {
|
|
30
|
+
return {
|
|
31
|
+
value: node.key,
|
|
32
|
+
label: node.title,
|
|
33
|
+
children: [
|
|
34
|
+
{ value: 'total', label: tExpr('Total Hits') },
|
|
35
|
+
{ value: 'metricValue', label: tExpr('Metric Value') },
|
|
36
|
+
{ value: 'deltaPercent', label: tExpr('Delta (%)') },
|
|
37
|
+
{ value: 'breached', label: tExpr('Threshold Breached') },
|
|
38
|
+
{ value: 'topBuckets', label: tExpr('Top Buckets') },
|
|
39
|
+
{ value: 'sampleRows', label: tExpr('Sample Rows') },
|
|
40
|
+
{ value: 'executedAt', label: tExpr('Executed At') },
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ElasticReportQueryFieldset() {
|
|
46
|
+
const t = useT();
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<div>
|
|
50
|
+
<Form.Item name={['config', 'reportId']} label={t('Report')} rules={[{ required: true }]}>
|
|
51
|
+
<ReportSelect />
|
|
52
|
+
</Form.Item>
|
|
53
|
+
<Form.Item name={['config', 'queryOverride']} label={t('KQL / Search Query')}>
|
|
54
|
+
<Input placeholder={t('Search KQL, e.g. status >= 500 AND service: "api"')} />
|
|
55
|
+
</Form.Item>
|
|
56
|
+
<Form.Item name={['config', 'timePreset']} label={t('Time Field')}>
|
|
57
|
+
<Select
|
|
58
|
+
allowClear
|
|
59
|
+
placeholder={t('Auto')}
|
|
60
|
+
options={[
|
|
61
|
+
{ label: t('Last 15 minutes'), value: 'last_15m' },
|
|
62
|
+
{ label: t('Last 1 hour'), value: 'last_1h' },
|
|
63
|
+
{ label: t('Last 24 hours'), value: 'last_24h' },
|
|
64
|
+
{ label: t('Last 7 days'), value: 'last_7d' },
|
|
65
|
+
{ label: t('Last 30 days'), value: 'last_30d' },
|
|
66
|
+
{ label: t('Last 90 days'), value: 'last_90d' },
|
|
67
|
+
{ label: t('All time'), value: 'all' },
|
|
68
|
+
]}
|
|
69
|
+
/>
|
|
70
|
+
</Form.Item>
|
|
71
|
+
<Form.Item name={['config', 'thresholdField']} label={t('Threshold Metric')}>
|
|
72
|
+
<Select
|
|
73
|
+
allowClear
|
|
74
|
+
options={[
|
|
75
|
+
{ label: t('Total Hits'), value: 'total' },
|
|
76
|
+
{ label: t('Metric Value'), value: 'metricValue' },
|
|
77
|
+
{ label: t('Delta (%)'), value: 'deltaPercent' },
|
|
78
|
+
]}
|
|
79
|
+
/>
|
|
80
|
+
</Form.Item>
|
|
81
|
+
<Form.Item name={['config', 'thresholdOperator']} label={t('Threshold Operator')}>
|
|
82
|
+
<Select
|
|
83
|
+
allowClear
|
|
84
|
+
options={[
|
|
85
|
+
{ label: '>', value: 'gt' },
|
|
86
|
+
{ label: '>=', value: 'gte' },
|
|
87
|
+
{ label: '<', value: 'lt' },
|
|
88
|
+
{ label: '<=', value: 'lte' },
|
|
89
|
+
{ label: '=', value: 'eq' },
|
|
90
|
+
{ label: '!=', value: 'ne' },
|
|
91
|
+
]}
|
|
92
|
+
/>
|
|
93
|
+
</Form.Item>
|
|
94
|
+
<Form.Item name={['config', 'thresholdValue']} label={t('Threshold Value')}>
|
|
95
|
+
<InputNumber style={{ width: '100%' }} />
|
|
96
|
+
</Form.Item>
|
|
97
|
+
</div>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function ElasticReportQueryNodeCard({ data }: { data: FlowNodeModel }) {
|
|
102
|
+
const t = useT();
|
|
103
|
+
const cfg = (data?.config ?? {}) as ElasticWorkflowNodeConfig;
|
|
104
|
+
return (
|
|
105
|
+
<NodeDefaultView
|
|
106
|
+
data={data}
|
|
107
|
+
cardExtra={
|
|
108
|
+
cfg.reportId !== undefined ? (
|
|
109
|
+
<Space size={[4, 4]} wrap style={{ marginTop: 4 }}>
|
|
110
|
+
<Tag color="blue" style={{ marginInlineEnd: 0 }}>
|
|
111
|
+
{t('Report')} #{String(cfg.reportId)}
|
|
112
|
+
</Tag>
|
|
113
|
+
{cfg.thresholdOperator && cfg.thresholdValue !== undefined && (
|
|
114
|
+
<Tag color="gold" style={{ marginInlineEnd: 0 }}>
|
|
115
|
+
{cfg.thresholdField || 'total'} {cfg.thresholdOperator} {cfg.thresholdValue}
|
|
116
|
+
</Tag>
|
|
117
|
+
)}
|
|
118
|
+
</Space>
|
|
119
|
+
) : null
|
|
120
|
+
}
|
|
121
|
+
/>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function registerElasticReportWorkflowInstructions(workflow: WorkflowClientRegistry): void {
|
|
126
|
+
workflow.registerInstructionGroup(WORKFLOW_GROUP_KEY, {
|
|
127
|
+
key: WORKFLOW_GROUP_KEY,
|
|
128
|
+
label: tExpr('Elastic Report'),
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
workflow.registerInstruction(
|
|
132
|
+
WORKFLOW_INSTRUCTION_TYPE,
|
|
133
|
+
class extends Instruction {
|
|
134
|
+
type = WORKFLOW_INSTRUCTION_TYPE;
|
|
135
|
+
title = tExpr('Query Elasticsearch Report');
|
|
136
|
+
description = tExpr(
|
|
137
|
+
'Execute a Saved Elasticsearch Report and evaluate threshold conditions for scheduled alerts or reports.',
|
|
138
|
+
);
|
|
139
|
+
group = WORKFLOW_GROUP_KEY;
|
|
140
|
+
icon = (<BarChartOutlined />);
|
|
141
|
+
ComponentLoader = async () => ({ default: ElasticReportQueryNodeCard });
|
|
142
|
+
FieldsetLoader = async () => ({ default: ElasticReportQueryFieldset });
|
|
143
|
+
|
|
144
|
+
useVariables(node: { key: string; title: string }): VariableOption {
|
|
145
|
+
return buildElasticReportWorkflowVariables(node);
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
);
|
|
149
|
+
}
|
package/src/locale/en-US.json
CHANGED
|
@@ -76,6 +76,71 @@
|
|
|
76
76
|
"Last 30 days": "Last 30 days",
|
|
77
77
|
"Last 90 days": "Last 90 days",
|
|
78
78
|
"All time": "All time",
|
|
79
|
+
"Custom range": "Custom range",
|
|
80
|
+
"From": "From",
|
|
81
|
+
"To": "To",
|
|
82
|
+
"Allowed Roles": "Allowed Roles",
|
|
83
|
+
"Leave empty to allow all authenticated users": "Leave empty to allow all authenticated users",
|
|
84
|
+
"All roles": "All roles",
|
|
85
|
+
"Locked Security Filters (Server-enforced)": "Locked Security Filters (Server-enforced)",
|
|
86
|
+
"Add Locked Filter": "Add Locked Filter",
|
|
87
|
+
"Locked filter": "Locked filter",
|
|
88
|
+
"Partial results warning": "Partial results warning",
|
|
89
|
+
"Query timed out; displayed results may be incomplete.": "Query timed out; displayed results may be incomplete.",
|
|
90
|
+
"Failed shards": "Failed shards",
|
|
91
|
+
"Elastic Filter Bar": "Elastic Filter Bar",
|
|
92
|
+
"Elastic filter bar settings": "Elastic filter bar settings",
|
|
93
|
+
"Sync Group": "Sync Group",
|
|
94
|
+
"Subscribe to dashboard filter bar": "Subscribe to dashboard filter bar",
|
|
95
|
+
"Filter Fields (comma-separated, e.g. service, region)": "Filter Fields (comma-separated, e.g. service, region)",
|
|
96
|
+
"Show global KQL input": "Show global KQL input",
|
|
97
|
+
"Show global time range": "Show global time range",
|
|
98
|
+
"Dashboard filter": "Dashboard filter",
|
|
99
|
+
"Clear dashboard filters": "Clear dashboard filters",
|
|
100
|
+
"Auto refresh": "Auto refresh",
|
|
101
|
+
"Off": "Off",
|
|
102
|
+
"Fields Explorer": "Fields Explorer",
|
|
103
|
+
"Top values": "Top values",
|
|
104
|
+
"Filter for value": "Filter for value",
|
|
105
|
+
"Filter out value": "Filter out value",
|
|
106
|
+
"Visible Columns": "Visible Columns",
|
|
107
|
+
"Move up": "Move up",
|
|
108
|
+
"Move down": "Move down",
|
|
109
|
+
"Split Series Field": "Split Series Field",
|
|
110
|
+
"Stack Mode": "Stack Mode",
|
|
111
|
+
"Grouped": "Grouped",
|
|
112
|
+
"Stacked": "Stacked",
|
|
113
|
+
"100% Stacked": "100% Stacked",
|
|
114
|
+
"Compare previous period": "Compare previous period",
|
|
115
|
+
"vs previous period": "vs previous period",
|
|
116
|
+
"Field Formats": "Field Formats",
|
|
117
|
+
"Add Field Format": "Add Field Format",
|
|
118
|
+
"Format": "Format",
|
|
119
|
+
"Auto": "Auto",
|
|
120
|
+
"Duration (ms)": "Duration (ms)",
|
|
121
|
+
"Bytes": "Bytes",
|
|
122
|
+
"Percent (%)": "Percent (%)",
|
|
123
|
+
"Number": "Number",
|
|
124
|
+
"Status Badge": "Status Badge",
|
|
125
|
+
"URL Link": "URL Link",
|
|
126
|
+
"Record Context Bindings": "Record Context Bindings",
|
|
127
|
+
"Add Context Binding": "Add Context Binding",
|
|
128
|
+
"Record Field Path": "Record Field Path",
|
|
129
|
+
"Allow data export on block": "Allow data export on block",
|
|
130
|
+
"Export CSV": "Export CSV",
|
|
131
|
+
"Export NDJSON": "Export NDJSON",
|
|
132
|
+
"Query Elasticsearch Report": "Query Elasticsearch Report",
|
|
133
|
+
"Execute a Saved Elasticsearch Report and evaluate threshold conditions for scheduled alerts or reports.": "Execute a Saved Elasticsearch Report and evaluate threshold conditions for scheduled alerts or reports.",
|
|
134
|
+
"Threshold Metric": "Threshold Metric",
|
|
135
|
+
"Threshold Operator": "Threshold Operator",
|
|
136
|
+
"Threshold Value": "Threshold Value",
|
|
137
|
+
"Total Hits": "Total Hits",
|
|
138
|
+
"Metric Value": "Metric Value",
|
|
139
|
+
"Delta (%)": "Delta (%)",
|
|
140
|
+
"Threshold Breached": "Threshold Breached",
|
|
141
|
+
"Top Buckets": "Top Buckets",
|
|
142
|
+
"Sample Rows": "Sample Rows",
|
|
143
|
+
"Executed At": "Executed At",
|
|
79
144
|
"Document Details": "Document Details",
|
|
80
145
|
"Table View": "Table View",
|
|
81
146
|
"JSON View": "JSON View",
|
|
@@ -95,5 +160,39 @@
|
|
|
95
160
|
"MCP Server Name": "MCP Server Name",
|
|
96
161
|
"Exposed MCP Tools": "Exposed MCP Tools",
|
|
97
162
|
"AI Employee Usage": "AI Employee Usage",
|
|
98
|
-
"This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks.": "This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks."
|
|
163
|
+
"This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks.": "This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks.",
|
|
164
|
+
"Type keywords freely or select a field below": "Type keywords freely or select a field below",
|
|
165
|
+
"Suggested Fields": "Suggested Fields",
|
|
166
|
+
"Comparisons & Operators": "Comparisons & Operators",
|
|
167
|
+
"Suggested Values": "Suggested Values",
|
|
168
|
+
"Combine Conditions": "Combine Conditions",
|
|
169
|
+
"Free-text Search": "Free-text Search",
|
|
170
|
+
"Loading field values...": "Loading field values...",
|
|
171
|
+
"Choose comparison (=, >=, <=...)": "Choose comparison (=, >=, <=...)",
|
|
172
|
+
"Filter by field value": "Filter by field value",
|
|
173
|
+
"Equals (=)": "Equals (=)",
|
|
174
|
+
"Equals or contains (: )": "Equals or contains (: )",
|
|
175
|
+
"Greater than or equal (>=)": "Greater than or equal (>=)",
|
|
176
|
+
"Less than or equal (<=)": "Less than or equal (<=)",
|
|
177
|
+
"Greater than (>)": "Greater than (>)",
|
|
178
|
+
"Less than (<)": "Less than (<)",
|
|
179
|
+
"Match multiple values (OR)": "Match multiple values (OR)",
|
|
180
|
+
"Has any value (exists)": "Has any value (exists)",
|
|
181
|
+
"Exclude matching records": "Exclude matching records",
|
|
182
|
+
"Search text across all fields (Press Enter)": "Search text across all fields (Press Enter)",
|
|
183
|
+
"Boolean true": "Boolean true",
|
|
184
|
+
"Boolean false": "Boolean false",
|
|
185
|
+
"Suggested value from data": "Suggested value from data",
|
|
186
|
+
"Sample value from loaded rows": "Sample value from loaded rows",
|
|
187
|
+
"Finish value group": "Finish value group",
|
|
188
|
+
"Add another value to group": "Add another value to group",
|
|
189
|
+
"Exclude value in group": "Exclude value in group",
|
|
190
|
+
"Combine another condition (both match)": "Combine another condition (both match)",
|
|
191
|
+
"Match either condition": "Match either condition",
|
|
192
|
+
"Exclude next condition": "Exclude next condition",
|
|
193
|
+
"Close condition group": "Close condition group",
|
|
194
|
+
"Test Connection": "Test Connection",
|
|
195
|
+
"Connection verified": "Connection verified",
|
|
196
|
+
"Index-scoped role": "Index-scoped role",
|
|
197
|
+
"Configure Elasticsearch 8.x TLS, CA Fingerprint, API Key, or Bearer Token in Data Source Manager": "Configure Elasticsearch 8.x TLS, CA Fingerprint, API Key, or Bearer Token in Data Source Manager"
|
|
99
198
|
}
|
package/src/locale/vi-VN.json
CHANGED
|
@@ -76,6 +76,71 @@
|
|
|
76
76
|
"Last 30 days": "30 ngày qua",
|
|
77
77
|
"Last 90 days": "90 ngày qua",
|
|
78
78
|
"All time": "Toàn bộ thời gian",
|
|
79
|
+
"Custom range": "Khoảng tùy chỉnh",
|
|
80
|
+
"From": "Từ mốc",
|
|
81
|
+
"To": "Đến mốc",
|
|
82
|
+
"Allowed Roles": "Các Role được phép xem",
|
|
83
|
+
"Leave empty to allow all authenticated users": "Để trống để cho phép mọi người dùng đăng nhập",
|
|
84
|
+
"All roles": "Mọi role",
|
|
85
|
+
"Locked Security Filters (Server-enforced)": "Bộ lọc bảo mật bắt buộc ở Server (Người xem không thể xóa)",
|
|
86
|
+
"Add Locked Filter": "Thêm bộ lọc khóa",
|
|
87
|
+
"Locked filter": "Bộ lọc khóa",
|
|
88
|
+
"Partial results warning": "Cảnh báo dữ liệu chưa đầy đủ",
|
|
89
|
+
"Query timed out; displayed results may be incomplete.": "Truy vấn quá thời gian chờ, dữ liệu hiển thị có thể chưa đầy đủ.",
|
|
90
|
+
"Failed shards": "Shard lỗi",
|
|
91
|
+
"Elastic Filter Bar": "Thanh lọc Dashboard Elasticsearch",
|
|
92
|
+
"Elastic filter bar settings": "Cấu hình thanh lọc Dashboard Elasticsearch",
|
|
93
|
+
"Sync Group": "Nhóm đồng bộ (Sync Group)",
|
|
94
|
+
"Subscribe to dashboard filter bar": "Đồng bộ với Thanh lọc Dashboard trên trang",
|
|
95
|
+
"Filter Fields (comma-separated, e.g. service, region)": "Danh sách trường lọc nhanh (cách nhau dấu phẩy, vd: service, region)",
|
|
96
|
+
"Show global KQL input": "Hiển thị ô KQL dùng chung",
|
|
97
|
+
"Show global time range": "Hiển thị chọn thời gian dùng chung",
|
|
98
|
+
"Dashboard filter": "Lọc chung",
|
|
99
|
+
"Clear dashboard filters": "Xóa lọc chung",
|
|
100
|
+
"Auto refresh": "Tự động làm mới",
|
|
101
|
+
"Off": "Tắt",
|
|
102
|
+
"Fields Explorer": "Khám phá Trường",
|
|
103
|
+
"Top values": "Giá trị phổ biến",
|
|
104
|
+
"Filter for value": "Lọc giữ giá trị này (+)",
|
|
105
|
+
"Filter out value": "Loại trừ giá trị này (-)",
|
|
106
|
+
"Visible Columns": "Cột đang hiển thị",
|
|
107
|
+
"Move up": "Đưa lên",
|
|
108
|
+
"Move down": "Đưa xuống",
|
|
109
|
+
"Split Series Field": "Trường chia chuỗi (Split Series)",
|
|
110
|
+
"Stack Mode": "Chế độ xếp chồng",
|
|
111
|
+
"Grouped": "Tách cột (Grouped)",
|
|
112
|
+
"Stacked": "Xếp chồng (Stacked)",
|
|
113
|
+
"100% Stacked": "Xếp chồng tỷ lệ (100%)",
|
|
114
|
+
"Compare previous period": "So sánh với kỳ liền trước",
|
|
115
|
+
"vs previous period": "so với kỳ trước",
|
|
116
|
+
"Field Formats": "Định dạng hiển thị trường",
|
|
117
|
+
"Add Field Format": "Thêm định dạng trường",
|
|
118
|
+
"Format": "Định dạng",
|
|
119
|
+
"Auto": "Tự động",
|
|
120
|
+
"Duration (ms)": "Thời gian trễ (ms)",
|
|
121
|
+
"Bytes": "Dung lượng (Bytes)",
|
|
122
|
+
"Percent (%)": "Phần trăm (%)",
|
|
123
|
+
"Number": "Số có phân tách",
|
|
124
|
+
"Status Badge": "Nhãn trạng thái (HTTP/Level)",
|
|
125
|
+
"URL Link": "Liên kết URL",
|
|
126
|
+
"Record Context Bindings": "Liên kết bản ghi NocoBase hiện tại",
|
|
127
|
+
"Add Context Binding": "Thêm liên kết bản ghi",
|
|
128
|
+
"Record Field Path": "Đường dẫn trường bản ghi (vd: id, orderNo)",
|
|
129
|
+
"Allow data export on block": "Cho phép xuất CSV/NDJSON trên Block",
|
|
130
|
+
"Export CSV": "Xuất CSV",
|
|
131
|
+
"Export NDJSON": "Xuất NDJSON",
|
|
132
|
+
"Query Elasticsearch Report": "Truy vấn Báo cáo Elasticsearch",
|
|
133
|
+
"Execute a Saved Elasticsearch Report and evaluate threshold conditions for scheduled alerts or reports.": "Thực thi Báo cáo Elasticsearch đã lưu và kiểm tra điều kiện ngưỡng cho luồng cảnh báo hoặc báo cáo định kỳ.",
|
|
134
|
+
"Threshold Metric": "Chỉ số kiểm tra ngưỡng",
|
|
135
|
+
"Threshold Operator": "Toán tử ngưỡng",
|
|
136
|
+
"Threshold Value": "Giá trị ngưỡng",
|
|
137
|
+
"Total Hits": "Tổng bản ghi khớp",
|
|
138
|
+
"Metric Value": "Giá trị chỉ số",
|
|
139
|
+
"Delta (%)": "Chênh lệch kỳ trước (%)",
|
|
140
|
+
"Threshold Breached": "Vượt ngưỡng cảnh báo",
|
|
141
|
+
"Top Buckets": "Danh sách nhóm đầu",
|
|
142
|
+
"Sample Rows": "Dòng dữ liệu mẫu",
|
|
143
|
+
"Executed At": "Thời điểm chạy",
|
|
79
144
|
"Document Details": "Chi tiết bản ghi",
|
|
80
145
|
"Table View": "Dạng bảng",
|
|
81
146
|
"JSON View": "Dạng JSON",
|
|
@@ -95,5 +160,39 @@
|
|
|
95
160
|
"MCP Server Name": "Tên MCP Server",
|
|
96
161
|
"Exposed MCP Tools": "Danh sách MCP Tools",
|
|
97
162
|
"AI Employee Usage": "Hướng dẫn cho AI Employee",
|
|
98
|
-
"This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks.": "Plugin tự động đăng ký MCP server elastic-report (kèm user context) và bộ công cụ AI Employee để AI tự khám phá trường dữ liệu, chạy thử truy vấn Elasticsearch và xuất bản Báo cáo sẵn sàng chọn trong Block."
|
|
163
|
+
"This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks.": "Plugin tự động đăng ký MCP server elastic-report (kèm user context) và bộ công cụ AI Employee để AI tự khám phá trường dữ liệu, chạy thử truy vấn Elasticsearch và xuất bản Báo cáo sẵn sàng chọn trong Block.",
|
|
164
|
+
"Type keywords freely or select a field below": "Gõ từ khóa tự do hoặc chọn trường dữ liệu bên dưới",
|
|
165
|
+
"Suggested Fields": "Trường dữ liệu gợi ý",
|
|
166
|
+
"Comparisons & Operators": "Phép so sánh",
|
|
167
|
+
"Suggested Values": "Giá trị gợi ý từ dữ liệu",
|
|
168
|
+
"Combine Conditions": "Kết hợp điều kiện",
|
|
169
|
+
"Free-text Search": "Tìm kiếm tự do",
|
|
170
|
+
"Loading field values...": "Đang tải giá trị phổ biến...",
|
|
171
|
+
"Choose comparison (=, >=, <=...)": "Chọn phép so sánh (=, >=, <=...)",
|
|
172
|
+
"Filter by field value": "Lọc theo giá trị trường này",
|
|
173
|
+
"Equals (=)": "Bằng giá trị (=)",
|
|
174
|
+
"Equals or contains (: )": "Bằng hoặc chứa giá trị (: )",
|
|
175
|
+
"Greater than or equal (>=)": "Lớn hơn hoặc bằng (>=)",
|
|
176
|
+
"Less than or equal (<=)": "Nhỏ hơn hoặc bằng (<=)",
|
|
177
|
+
"Greater than (>)": "Lớn hơn (>)",
|
|
178
|
+
"Less than (<)": "Nhỏ hơn (<)",
|
|
179
|
+
"Match multiple values (OR)": "Khớp một trong nhiều giá trị (OR)",
|
|
180
|
+
"Has any value (exists)": "Có tồn tại dữ liệu (không rỗng)",
|
|
181
|
+
"Exclude matching records": "Loại trừ bản ghi khớp điều kiện",
|
|
182
|
+
"Search text across all fields (Press Enter)": "Tìm tự do trên mọi trường (Nhấn Enter)",
|
|
183
|
+
"Boolean true": "Giá trị Đúng (true)",
|
|
184
|
+
"Boolean false": "Giá trị Sai (false)",
|
|
185
|
+
"Suggested value from data": "Giá trị phổ biến trong Elasticsearch",
|
|
186
|
+
"Sample value from loaded rows": "Giá trị mẫu đang hiển thị",
|
|
187
|
+
"Finish value group": "Đóng nhóm giá trị",
|
|
188
|
+
"Add another value to group": "Thêm giá trị khác vào nhóm (OR)",
|
|
189
|
+
"Exclude value in group": "Loại trừ giá trị trong nhóm",
|
|
190
|
+
"Combine another condition (both match)": "Và điều kiện tiếp theo (khớp cả hai)",
|
|
191
|
+
"Match either condition": "Hoặc điều kiện khác (khớp một trong hai)",
|
|
192
|
+
"Exclude next condition": "Và loại trừ điều kiện tiếp theo",
|
|
193
|
+
"Close condition group": "Đóng ngoặc nhóm điều kiện",
|
|
194
|
+
"Test Connection": "Kiểm tra kết nối",
|
|
195
|
+
"Connection verified": "Kết nối hợp lệ",
|
|
196
|
+
"Index-scoped role": "Quyền phạm vi Index",
|
|
197
|
+
"Configure Elasticsearch 8.x TLS, CA Fingerprint, API Key, or Bearer Token in Data Source Manager": "Cấu hình chi tiết TLS, CA Fingerprint, API Key hoặc Bearer Token của Elasticsearch 8.x tại Quản lý Nguồn dữ liệu (Data Source Manager)"
|
|
99
198
|
}
|
package/src/locale/zh-CN.json
CHANGED
|
@@ -76,6 +76,71 @@
|
|
|
76
76
|
"Last 30 days": "最近 30 天",
|
|
77
77
|
"Last 90 days": "最近 90 天",
|
|
78
78
|
"All time": "全部时间",
|
|
79
|
+
"Custom range": "自定义时间范围",
|
|
80
|
+
"From": "开始时间",
|
|
81
|
+
"To": "结束时间",
|
|
82
|
+
"Allowed Roles": "允许访问的角色",
|
|
83
|
+
"Leave empty to allow all authenticated users": "留空则允许所有登录用户查看",
|
|
84
|
+
"All roles": "全部角色",
|
|
85
|
+
"Locked Security Filters (Server-enforced)": "服务端强制安全筛选 (不可被访客覆盖)",
|
|
86
|
+
"Add Locked Filter": "添加强制筛选",
|
|
87
|
+
"Locked filter": "强制筛选",
|
|
88
|
+
"Partial results warning": "部分分片或超时告警",
|
|
89
|
+
"Query timed out; displayed results may be incomplete.": "查询超时,当前展示的数据可能不完整。",
|
|
90
|
+
"Failed shards": "失败分片",
|
|
91
|
+
"Elastic Filter Bar": "Elasticsearch 仪表盘筛选栏",
|
|
92
|
+
"Elastic filter bar settings": "Elasticsearch 筛选栏配置",
|
|
93
|
+
"Sync Group": "同步分组 (Sync Group)",
|
|
94
|
+
"Subscribe to dashboard filter bar": "联动同页筛选栏",
|
|
95
|
+
"Filter Fields (comma-separated, e.g. service, region)": "下拉筛选字段 (逗号分隔,如 service, region)",
|
|
96
|
+
"Show global KQL input": "显示全局 KQL 输入框",
|
|
97
|
+
"Show global time range": "显示全局时间范围",
|
|
98
|
+
"Dashboard filter": "全局筛选",
|
|
99
|
+
"Clear dashboard filters": "清空全局筛选",
|
|
100
|
+
"Auto refresh": "自动刷新",
|
|
101
|
+
"Off": "关闭",
|
|
102
|
+
"Fields Explorer": "字段探查",
|
|
103
|
+
"Top values": "高频值分布",
|
|
104
|
+
"Filter for value": "筛选等于该值 (+)",
|
|
105
|
+
"Filter out value": "排除该值 (-)",
|
|
106
|
+
"Visible Columns": "显示列调整",
|
|
107
|
+
"Move up": "上移",
|
|
108
|
+
"Move down": "下移",
|
|
109
|
+
"Split Series Field": "二次分组字段 (Split Series)",
|
|
110
|
+
"Stack Mode": "堆叠模式",
|
|
111
|
+
"Grouped": "并列分组",
|
|
112
|
+
"Stacked": "数值堆叠",
|
|
113
|
+
"100% Stacked": "百分比堆叠 (100%)",
|
|
114
|
+
"Compare previous period": "对比上一周期",
|
|
115
|
+
"vs previous period": "较上一周期",
|
|
116
|
+
"Field Formats": "字段显示格式",
|
|
117
|
+
"Add Field Format": "添加格式规则",
|
|
118
|
+
"Format": "格式",
|
|
119
|
+
"Auto": "自动",
|
|
120
|
+
"Duration (ms)": "耗时 (ms)",
|
|
121
|
+
"Bytes": "字节 (Bytes)",
|
|
122
|
+
"Percent (%)": "百分比 (%)",
|
|
123
|
+
"Number": "千分位数字",
|
|
124
|
+
"Status Badge": "状态徽章",
|
|
125
|
+
"URL Link": "超链接",
|
|
126
|
+
"Record Context Bindings": "当前记录上下文绑定",
|
|
127
|
+
"Add Context Binding": "添加上下文绑定",
|
|
128
|
+
"Record Field Path": "NocoBase 记录字段路径",
|
|
129
|
+
"Allow data export on block": "允许在区块中导出数据",
|
|
130
|
+
"Export CSV": "导出 CSV",
|
|
131
|
+
"Export NDJSON": "导出 NDJSON",
|
|
132
|
+
"Query Elasticsearch Report": "查询 Elasticsearch 报表",
|
|
133
|
+
"Execute a Saved Elasticsearch Report and evaluate threshold conditions for scheduled alerts or reports.": "执行已保存的 Elasticsearch 报表并评估阈值条件,用于定时报表或告警工作流。",
|
|
134
|
+
"Threshold Metric": "阈值评估指标",
|
|
135
|
+
"Threshold Operator": "阈值比较符",
|
|
136
|
+
"Threshold Value": "阈值数值",
|
|
137
|
+
"Total Hits": "总命中数",
|
|
138
|
+
"Metric Value": "聚合指标值",
|
|
139
|
+
"Delta (%)": "环比变化 (%)",
|
|
140
|
+
"Threshold Breached": "是否触发阈值",
|
|
141
|
+
"Top Buckets": "前序分桶结果",
|
|
142
|
+
"Sample Rows": "样本记录",
|
|
143
|
+
"Executed At": "执行时间",
|
|
79
144
|
"Document Details": "文档详情",
|
|
80
145
|
"Table View": "字段表格",
|
|
81
146
|
"JSON View": "原始 JSON",
|
|
@@ -95,5 +160,39 @@
|
|
|
95
160
|
"MCP Server Name": "MCP 服务名称",
|
|
96
161
|
"Exposed MCP Tools": "已暴露的 MCP 工具",
|
|
97
162
|
"AI Employee Usage": "AI 员工使用说明",
|
|
98
|
-
"This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks.": "本插件会自动注册携带用户上下文的 elastic-report MCP 服务与 AI 员工工具,支持 AI 自动探查字段、预览 Elasticsearch 查询并发布可在页面区块中直接选用的报表。"
|
|
163
|
+
"This plugin automatically registers the elastic-report MCP server (with user context) and AI Employee tools so AI agents can inspect fields, preview Elasticsearch queries, and publish Saved Reports ready to select in blocks.": "本插件会自动注册携带用户上下文的 elastic-report MCP 服务与 AI 员工工具,支持 AI 自动探查字段、预览 Elasticsearch 查询并发布可在页面区块中直接选用的报表。",
|
|
164
|
+
"Type keywords freely or select a field below": "可直接输入关键字,或从下方选择字段引导构建查询",
|
|
165
|
+
"Suggested Fields": "推荐字段",
|
|
166
|
+
"Comparisons & Operators": "比较与操作符",
|
|
167
|
+
"Suggested Values": "推荐字段值",
|
|
168
|
+
"Combine Conditions": "组合条件",
|
|
169
|
+
"Free-text Search": "全文自由检索",
|
|
170
|
+
"Loading field values...": "正在加载字段高频值...",
|
|
171
|
+
"Choose comparison (=, >=, <=...)": "选择比较符号 (=, >=, <=...)",
|
|
172
|
+
"Filter by field value": "按该字段值筛选",
|
|
173
|
+
"Equals (=)": "等于 (=)",
|
|
174
|
+
"Equals or contains (: )": "等于或包含 (: )",
|
|
175
|
+
"Greater than or equal (>=)": "大于等于 (>=)",
|
|
176
|
+
"Less than or equal (<=)": "小于等于 (<=)",
|
|
177
|
+
"Greater than (>)": "大于 (>)",
|
|
178
|
+
"Less than (<)": "小于 (<)",
|
|
179
|
+
"Match multiple values (OR)": "匹配多个值之一 (OR)",
|
|
180
|
+
"Has any value (exists)": "字段非空 (exists)",
|
|
181
|
+
"Exclude matching records": "排除匹配记录",
|
|
182
|
+
"Search text across all fields (Press Enter)": "跨所有字段自由搜索 (按回车)",
|
|
183
|
+
"Boolean true": "布尔真 (true)",
|
|
184
|
+
"Boolean false": "布尔假 (false)",
|
|
185
|
+
"Suggested value from data": "来自 Elasticsearch 的高频值",
|
|
186
|
+
"Sample value from loaded rows": "来自当前表格的样本值",
|
|
187
|
+
"Finish value group": "结束多值分组",
|
|
188
|
+
"Add another value to group": "在分组中追加其他值 (OR)",
|
|
189
|
+
"Exclude value in group": "在分组中排除值",
|
|
190
|
+
"Combine another condition (both match)": "并且满足下一条件 (AND)",
|
|
191
|
+
"Match either condition": "或者满足另一条件 (OR)",
|
|
192
|
+
"Exclude next condition": "并且排除下一条件 (AND NOT)",
|
|
193
|
+
"Close condition group": "闭合条件括号",
|
|
194
|
+
"Test Connection": "测试连接",
|
|
195
|
+
"Connection verified": "连接已验证",
|
|
196
|
+
"Index-scoped role": "索引级受限权限",
|
|
197
|
+
"Configure Elasticsearch 8.x TLS, CA Fingerprint, API Key, or Bearer Token in Data Source Manager": "可在数据源管理中配置 Elasticsearch 8.x 的 TLS、CA 指纹、API 密钥或 Bearer 令牌"
|
|
99
198
|
}
|