plugin-elastic-report 0.0.0-stage → 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 +34 -0
- package/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/357.0dd385384cab5dbf.js +10 -0
- package/dist/client/index.js +10 -0
- 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 +10 -0
- package/dist/externalVersion.js +21 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +198 -0
- package/dist/locale/vi-VN.json +198 -0
- package/dist/locale/zh-CN.json +198 -0
- package/dist/node_modules/@elastic/elasticsearch/.dockerignore +11 -0
- package/dist/node_modules/@elastic/elasticsearch/LICENSE +202 -0
- package/dist/node_modules/@elastic/elasticsearch/NOTICE.txt +2 -0
- package/dist/node_modules/@elastic/elasticsearch/catalog-info.yaml +50 -0
- package/dist/node_modules/@elastic/elasticsearch/codecov.yml +14 -0
- package/dist/node_modules/@elastic/elasticsearch/index.d.ts +28 -0
- package/dist/node_modules/@elastic/elasticsearch/index.js +85525 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/async_search.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/async_search.js +155 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/autoscaling.js +130 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/bulk.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/bulk.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/capabilities.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cat.d.ts +193 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cat.js +766 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ccr.d.ts +102 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ccr.js +395 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/clear_scroll.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/close_point_in_time.js +56 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cluster.d.ts +123 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/cluster.js +482 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/connector.d.ts +245 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/connector.js +1121 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/count.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/count.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/create.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/create.js +53 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/dangling_indices.js +100 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_by_query_rethrottle.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/delete_script.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/enrich.d.ts +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/enrich.js +169 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/eql.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/eql.js +139 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/esql.d.ts +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/esql.js +170 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/exists_source.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/explain.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/explain.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/features.d.ts +25 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/features.js +75 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/field_caps.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/fleet.d.ts +50 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/fleet.js +211 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_context.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_script_languages.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_source.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/get_source.js +46 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/graph.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/graph.js +70 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/health_report.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/health_report.js +54 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ilm.d.ts +88 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ilm.js +329 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/index.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/index.js +61 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/indices.d.ts +494 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/indices.js +2133 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/inference.d.ts +221 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/inference.js +1167 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/info.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/info.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ingest.d.ts +95 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ingest.js +389 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/knn_search.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/knn_search.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/license.d.ts +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/license.js +194 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/logstash.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/logstash.js +118 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mget.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mget.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/migration.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/migration.js +107 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ml.d.ts +522 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ml.js +2468 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/monitoring.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/monitoring.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch_template.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/msearch_template.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mtermvectors.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/mtermvectors.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/nodes.d.ts +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/nodes.js +290 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/open_point_in_time.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/open_point_in_time.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ping.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ping.js +43 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/profiling.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/profiling.js +135 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/put_script.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/put_script.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/query_rules.d.ts +67 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/query_rules.js +260 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rank_eval.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rank_eval.js +67 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex.js +56 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex_rethrottle.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/reindex_rethrottle.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/render_search_template.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/render_search_template.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rollup.d.ts +67 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/rollup.js +263 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scripts_painless_execute.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scripts_painless_execute.js +57 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scroll.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/scroll.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search.js +75 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_application.d.ts +81 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_application.js +313 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_mvt.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_mvt.js +63 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_shards.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_shards.js +54 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_template.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/search_template.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/searchable_snapshots.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/searchable_snapshots.js +167 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/security.d.ts +459 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/security.js +1982 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/shutdown.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/shutdown.js +125 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/simulate.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/simulate.js +78 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/slm.d.ts +74 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/slm.js +253 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/snapshot.d.ts +102 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/snapshot.js +410 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/sql.d.ts +53 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/sql.js +205 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ssl.d.ts +18 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/ssl.js +54 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/streams.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/streams.js +96 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/synonyms.d.ts +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/synonyms.js +223 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/tasks.d.ts +32 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/tasks.js +109 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/terms_enum.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/terms_enum.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/termvectors.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/termvectors.js +68 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/text_structure.d.ts +39 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/text_structure.js +148 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/transform.d.ts +101 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/transform.js +386 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update.js +60 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query.js +59 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query_rethrottle.d.ts +14 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/update_by_query_rethrottle.js +45 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/watcher.d.ts +102 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/watcher.js +405 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/xpack.d.ts +25 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/api/xpack.js +75 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/index.d.ts +265 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/index.js +632 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/types.d.ts +19933 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/types.js +21 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/typesWithBodyKey.d.ts +20606 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/api/typesWithBodyKey.js +21 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/client.d.ts +152 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/client.js +369 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/helpers.d.ts +184 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/helpers.js +889 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/sniffingTransport.d.ts +4 -0
- package/dist/node_modules/@elastic/elasticsearch/lib/sniffingTransport.js +56 -0
- package/dist/node_modules/@elastic/elasticsearch/node_modules/.bin/arrow2csv +15 -0
- package/dist/node_modules/@elastic/elasticsearch/node_modules/.bin/arrow2csv.cmd +7 -0
- package/dist/node_modules/@elastic/elasticsearch/package.json +1 -0
- package/dist/node_modules/@elastic/elasticsearch/tsconfig.json +38 -0
- package/dist/server/acl-guard.js +179 -0
- package/dist/server/collections/es-report-data-views.js +85 -0
- package/dist/server/collections/es-reports.js +101 -0
- package/dist/server/index.js +58 -0
- package/dist/server/mcp/ElasticReportMcpServer.js +344 -0
- package/dist/server/mcp/ElasticReportToolCatalog.js +639 -0
- package/dist/server/plugin.js +529 -0
- package/dist/server/services/ElasticReportService.js +377 -0
- package/dist/server/services/ElasticsearchConnectionService.js +572 -0
- package/dist/server/services/ReportExportService.js +243 -0
- package/dist/server/services/ReportQueryCompiler.js +1299 -0
- package/dist/server/workflow/ElasticReportQueryInstruction.js +123 -0
- package/dist/shared/constants.js +96 -0
- package/dist/shared/types.js +24 -0
- package/package.json +62 -4
- package/server.d.ts +2 -0
- package/server.js +1 -0
- package/src/client/index.tsx +34 -0
- package/src/client/workflow-instructions.tsx +44 -0
- package/src/client-v2/__tests__/elastic-report.test.tsx +791 -0
- package/src/client-v2/__tests__/kql-autocomplete.test.ts +178 -0
- package/src/client-v2/api.ts +320 -0
- package/src/client-v2/bus/DashboardFilterBus.ts +212 -0
- package/src/client-v2/components/ElasticBasicCharts.tsx +652 -0
- 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 +306 -0
- package/src/client-v2/components/ElasticReportRenderer.tsx +1257 -0
- package/src/client-v2/components/HighlightText.tsx +50 -0
- package/src/client-v2/components/ReportSelect.tsx +85 -0
- package/src/client-v2/index.tsx +14 -0
- package/src/client-v2/locale.ts +23 -0
- package/src/client-v2/models/ElasticFilterBarBlockModel.tsx +115 -0
- package/src/client-v2/models/ElasticReportBlockModel.tsx +118 -0
- package/src/client-v2/pages/ElasticReportManager.tsx +1453 -0
- package/src/client-v2/plugin.tsx +72 -0
- package/src/client-v2/utils/kqlAutocomplete.ts +861 -0
- package/src/client-v2/workflow/instructions.tsx +149 -0
- package/src/index.ts +11 -0
- package/src/locale/en-US.json +198 -0
- package/src/locale/vi-VN.json +198 -0
- package/src/locale/zh-CN.json +198 -0
- package/src/server/__tests__/query-compiler.test.ts +620 -0
- package/src/server/__tests__/report-mcp-acl.integration.test.ts +645 -0
- package/src/server/acl-guard.ts +194 -0
- package/src/server/collections/es-report-data-views.ts +64 -0
- package/src/server/collections/es-reports.ts +80 -0
- package/src/server/index.ts +15 -0
- package/src/server/mcp/ElasticReportMcpServer.ts +391 -0
- package/src/server/mcp/ElasticReportToolCatalog.ts +663 -0
- package/src/server/plugin.ts +599 -0
- package/src/server/services/ElasticReportService.ts +486 -0
- package/src/server/services/ElasticsearchConnectionService.ts +728 -0
- package/src/server/services/ReportExportService.ts +282 -0
- package/src/server/services/ReportQueryCompiler.ts +1552 -0
- package/src/server/workflow/ElasticReportQueryInstruction.ts +124 -0
- package/src/shared/constants.ts +36 -0
- package/src/shared/types.ts +272 -0
- package/README.md +0 -3
|
@@ -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/index.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export { default } from './server';
|
|
11
|
+
export * from './server';
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Elastic Report": "Elastic Report",
|
|
3
|
+
"Elastic report settings": "Elastic report settings",
|
|
4
|
+
"Select report": "Select report",
|
|
5
|
+
"Report": "Report",
|
|
6
|
+
"Show interactive toolbar": "Show interactive toolbar",
|
|
7
|
+
"Compact layout": "Compact layout",
|
|
8
|
+
"Reports": "Reports",
|
|
9
|
+
"Data Views": "Data Views",
|
|
10
|
+
"MCP & AI Employee": "MCP & AI Employee",
|
|
11
|
+
"New Report": "New Report",
|
|
12
|
+
"Edit Report": "Edit Report",
|
|
13
|
+
"New Data View": "New Data View",
|
|
14
|
+
"Edit Data View": "Edit Data View",
|
|
15
|
+
"Title": "Title",
|
|
16
|
+
"Description": "Description",
|
|
17
|
+
"Data Source (Elasticsearch)": "Data Source (Elasticsearch)",
|
|
18
|
+
"Index Pattern": "Index Pattern",
|
|
19
|
+
"Time Field": "Time Field",
|
|
20
|
+
"Browse Indices": "Browse Indices",
|
|
21
|
+
"Matching Indices": "Matching Indices",
|
|
22
|
+
"Fields": "Fields",
|
|
23
|
+
"Refresh Fields": "Refresh Fields",
|
|
24
|
+
"Visualization": "Visualization",
|
|
25
|
+
"Table (Discover)": "Table (Discover)",
|
|
26
|
+
"Bar Chart": "Bar Chart",
|
|
27
|
+
"Line Chart": "Line Chart",
|
|
28
|
+
"Area Chart": "Area Chart",
|
|
29
|
+
"Pie Chart": "Pie Chart",
|
|
30
|
+
"Metric KPI": "Metric KPI",
|
|
31
|
+
"Data View": "Data View",
|
|
32
|
+
"Published": "Published",
|
|
33
|
+
"Draft": "Draft",
|
|
34
|
+
"Allow interactive search/filter on block": "Allow interactive search/filter on block",
|
|
35
|
+
"Show time histogram above table": "Show time histogram above table",
|
|
36
|
+
"KQL / Search Query": "KQL / Search Query",
|
|
37
|
+
"Search KQL, e.g. status >= 500 AND service: \"api\"": "Search KQL, e.g. status >= 500 AND service: \"api\"",
|
|
38
|
+
"Search": "Search",
|
|
39
|
+
"Reset": "Reset",
|
|
40
|
+
"Refresh": "Refresh",
|
|
41
|
+
"Inspect DSL": "Inspect DSL",
|
|
42
|
+
"Elasticsearch Query DSL": "Elasticsearch Query DSL",
|
|
43
|
+
"Add Filter": "Add Filter",
|
|
44
|
+
"Edit Filter": "Edit Filter",
|
|
45
|
+
"Field": "Field",
|
|
46
|
+
"Operator": "Operator",
|
|
47
|
+
"Value": "Value",
|
|
48
|
+
"To Value": "To Value",
|
|
49
|
+
"Apply": "Apply",
|
|
50
|
+
"Cancel": "Cancel",
|
|
51
|
+
"Save": "Save",
|
|
52
|
+
"Delete": "Delete",
|
|
53
|
+
"Edit": "Edit",
|
|
54
|
+
"Preview": "Preview",
|
|
55
|
+
"Run Preview": "Run Preview",
|
|
56
|
+
"Sort": "Sort",
|
|
57
|
+
"Add Sort": "Add Sort",
|
|
58
|
+
"Ascending": "Ascending",
|
|
59
|
+
"Descending": "Descending",
|
|
60
|
+
"Columns": "Columns",
|
|
61
|
+
"Auto-detect columns from documents": "Auto-detect columns from documents",
|
|
62
|
+
"Page Size": "Page Size",
|
|
63
|
+
"Bucket Type": "Bucket Type",
|
|
64
|
+
"Date Histogram": "Date Histogram",
|
|
65
|
+
"Top Terms": "Top Terms",
|
|
66
|
+
"Bucket Field": "Bucket Field",
|
|
67
|
+
"Interval": "Interval",
|
|
68
|
+
"Top N": "Top N",
|
|
69
|
+
"Metric": "Metric",
|
|
70
|
+
"Metric Field": "Metric Field",
|
|
71
|
+
"Metric Label": "Metric Label",
|
|
72
|
+
"Last 15 minutes": "Last 15 minutes",
|
|
73
|
+
"Last 1 hour": "Last 1 hour",
|
|
74
|
+
"Last 24 hours": "Last 24 hours",
|
|
75
|
+
"Last 7 days": "Last 7 days",
|
|
76
|
+
"Last 30 days": "Last 30 days",
|
|
77
|
+
"Last 90 days": "Last 90 days",
|
|
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",
|
|
144
|
+
"Document Details": "Document Details",
|
|
145
|
+
"Table View": "Table View",
|
|
146
|
+
"JSON View": "JSON View",
|
|
147
|
+
"Show data table": "Show data table",
|
|
148
|
+
"Show chart": "Show chart",
|
|
149
|
+
"Select a saved Elastic Report in block settings to display data": "Select a saved Elastic Report in block settings to display data",
|
|
150
|
+
"No matching documents": "No matching documents",
|
|
151
|
+
"Saved successfully": "Saved successfully",
|
|
152
|
+
"Deleted successfully": "Deleted successfully",
|
|
153
|
+
"Copied to clipboard": "Copied to clipboard",
|
|
154
|
+
"Copy": "Copy",
|
|
155
|
+
"Confirm delete?": "Confirm delete?",
|
|
156
|
+
"Hits": "Hits",
|
|
157
|
+
"Next cursor page": "Next cursor page",
|
|
158
|
+
"First page": "First page",
|
|
159
|
+
"Dedicated MCP Endpoint": "Dedicated MCP Endpoint",
|
|
160
|
+
"MCP Server Name": "MCP Server Name",
|
|
161
|
+
"Exposed MCP Tools": "Exposed MCP Tools",
|
|
162
|
+
"AI Employee Usage": "AI Employee Usage",
|
|
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"
|
|
198
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Elastic Report": "Báo cáo Elasticsearch",
|
|
3
|
+
"Elastic report settings": "Cấu hình khối báo cáo Elasticsearch",
|
|
4
|
+
"Select report": "Chọn báo cáo",
|
|
5
|
+
"Report": "Báo cáo",
|
|
6
|
+
"Show interactive toolbar": "Hiển thị thanh tìm kiếm & lọc tương tác",
|
|
7
|
+
"Compact layout": "Giao diện thu gọn",
|
|
8
|
+
"Reports": "Danh sách Báo cáo",
|
|
9
|
+
"Data Views": "Data Views (Index Patterns)",
|
|
10
|
+
"MCP & AI Employee": "MCP & AI Employee",
|
|
11
|
+
"New Report": "Tạo báo cáo mới",
|
|
12
|
+
"Edit Report": "Chỉnh sửa báo cáo",
|
|
13
|
+
"New Data View": "Tạo Data View mới",
|
|
14
|
+
"Edit Data View": "Chỉnh sửa Data View",
|
|
15
|
+
"Title": "Tiêu đề",
|
|
16
|
+
"Description": "Mô tả",
|
|
17
|
+
"Data Source (Elasticsearch)": "Kết nối Elasticsearch",
|
|
18
|
+
"Index Pattern": "Index Pattern",
|
|
19
|
+
"Time Field": "Trường thời gian",
|
|
20
|
+
"Browse Indices": "Xem các Index khớp",
|
|
21
|
+
"Matching Indices": "Các Index khớp",
|
|
22
|
+
"Fields": "Số trường",
|
|
23
|
+
"Refresh Fields": "Làm mới danh sách trường",
|
|
24
|
+
"Visualization": "Kiểu hiển thị",
|
|
25
|
+
"Table (Discover)": "Bảng dữ liệu (Discover)",
|
|
26
|
+
"Bar Chart": "Biểu đồ cột (Bar)",
|
|
27
|
+
"Line Chart": "Biểu đồ đường (Line)",
|
|
28
|
+
"Area Chart": "Biểu đồ miền (Area)",
|
|
29
|
+
"Pie Chart": "Biểu đồ tròn (Pie)",
|
|
30
|
+
"Metric KPI": "Thẻ chỉ số (Metric KPI)",
|
|
31
|
+
"Data View": "Data View",
|
|
32
|
+
"Published": "Đã xuất bản",
|
|
33
|
+
"Draft": "Bản nháp",
|
|
34
|
+
"Allow interactive search/filter on block": "Cho phép người xem lọc/sort/search trực tiếp trên Block",
|
|
35
|
+
"Show time histogram above table": "Hiển thị biểu đồ phân bố thời gian phía trên bảng",
|
|
36
|
+
"KQL / Search Query": "Truy vấn KQL / Tìm kiếm",
|
|
37
|
+
"Search KQL, e.g. status >= 500 AND service: \"api\"": "Nhập KQL, ví dụ: status >= 500 AND service: \"api\"",
|
|
38
|
+
"Search": "Tìm kiếm",
|
|
39
|
+
"Reset": "Đặt lại",
|
|
40
|
+
"Refresh": "Làm mới",
|
|
41
|
+
"Inspect DSL": "Xem DSL",
|
|
42
|
+
"Elasticsearch Query DSL": "Truy vấn Elasticsearch DSL",
|
|
43
|
+
"Add Filter": "Thêm bộ lọc",
|
|
44
|
+
"Edit Filter": "Sửa bộ lọc",
|
|
45
|
+
"Field": "Trường",
|
|
46
|
+
"Operator": "Toán tử",
|
|
47
|
+
"Value": "Giá trị",
|
|
48
|
+
"To Value": "Đến giá trị",
|
|
49
|
+
"Apply": "Áp dụng",
|
|
50
|
+
"Cancel": "Hủy",
|
|
51
|
+
"Save": "Lưu",
|
|
52
|
+
"Delete": "Xóa",
|
|
53
|
+
"Edit": "Sửa",
|
|
54
|
+
"Preview": "Xem trước",
|
|
55
|
+
"Run Preview": "Chạy thử",
|
|
56
|
+
"Sort": "Sắp xếp",
|
|
57
|
+
"Add Sort": "Thêm sắp xếp",
|
|
58
|
+
"Ascending": "Tăng dần",
|
|
59
|
+
"Descending": "Giảm dần",
|
|
60
|
+
"Columns": "Cột hiển thị",
|
|
61
|
+
"Auto-detect columns from documents": "Tự động chọn cột từ dữ liệu trả về",
|
|
62
|
+
"Page Size": "Số dòng mỗi trang",
|
|
63
|
+
"Bucket Type": "Kiểu nhóm (Bucket)",
|
|
64
|
+
"Date Histogram": "Theo mốc thời gian (Date Histogram)",
|
|
65
|
+
"Top Terms": "Theo giá trị phổ biến (Top Terms)",
|
|
66
|
+
"Bucket Field": "Trường nhóm",
|
|
67
|
+
"Interval": "Khoảng thời gian",
|
|
68
|
+
"Top N": "Số nhóm tối đa (Top N)",
|
|
69
|
+
"Metric": "Phép tính (Metric)",
|
|
70
|
+
"Metric Field": "Trường tính toán",
|
|
71
|
+
"Metric Label": "Nhãn chỉ số",
|
|
72
|
+
"Last 15 minutes": "15 phút qua",
|
|
73
|
+
"Last 1 hour": "1 giờ qua",
|
|
74
|
+
"Last 24 hours": "24 giờ qua",
|
|
75
|
+
"Last 7 days": "7 ngày qua",
|
|
76
|
+
"Last 30 days": "30 ngày qua",
|
|
77
|
+
"Last 90 days": "90 ngày qua",
|
|
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",
|
|
144
|
+
"Document Details": "Chi tiết bản ghi",
|
|
145
|
+
"Table View": "Dạng bảng",
|
|
146
|
+
"JSON View": "Dạng JSON",
|
|
147
|
+
"Show data table": "Xem bảng số liệu",
|
|
148
|
+
"Show chart": "Xem biểu đồ",
|
|
149
|
+
"Select a saved Elastic Report in block settings to display data": "Hãy chọn một Báo cáo Elasticsearch trong phần cấu hình Block để hiển thị dữ liệu",
|
|
150
|
+
"No matching documents": "Không có dữ liệu khớp điều kiện",
|
|
151
|
+
"Saved successfully": "Đã lưu thành công",
|
|
152
|
+
"Deleted successfully": "Đã xóa thành công",
|
|
153
|
+
"Copied to clipboard": "Đã sao chép",
|
|
154
|
+
"Copy": "Sao chép",
|
|
155
|
+
"Confirm delete?": "Xác nhận xóa?",
|
|
156
|
+
"Hits": "Bản ghi khớp",
|
|
157
|
+
"Next cursor page": "Trang kế tiếp (cursor)",
|
|
158
|
+
"First page": "Về trang đầu",
|
|
159
|
+
"Dedicated MCP Endpoint": "Endpoint MCP riêng của Plugin",
|
|
160
|
+
"MCP Server Name": "Tên MCP Server",
|
|
161
|
+
"Exposed MCP Tools": "Danh sách MCP Tools",
|
|
162
|
+
"AI Employee Usage": "Hướng dẫn cho AI Employee",
|
|
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)"
|
|
198
|
+
}
|