@cloudcare/guance-front-tools 1.0.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/.prettierignore +3 -0
- package/.prettierrc +6 -0
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/cli.js +16 -0
- package/lib/cjs/generated/browserSessionReplay.d.ts +703 -0
- package/lib/cjs/generated/browserSessionReplay.js +6 -0
- package/lib/cjs/generated/dashboardCharts.d.ts +1372 -0
- package/lib/cjs/generated/dashboardCharts.js +6 -0
- package/lib/cjs/generated/mobileSessionReplay.d.ts +653 -0
- package/lib/cjs/generated/mobileSessionReplay.js +6 -0
- package/lib/cjs/generated/sessionReplay.d.ts +1190 -0
- package/lib/cjs/generated/sessionReplay.js +6 -0
- package/lib/cjs/src/dashboard-charts.d.ts +1 -0
- package/lib/cjs/src/dashboard-charts.js +17 -0
- package/lib/cjs/src/index.d.ts +2 -0
- package/lib/cjs/src/index.js +18 -0
- package/lib/cjs/src/session-replay-browser.d.ts +58 -0
- package/lib/cjs/src/session-replay-browser.js +69 -0
- package/lib/cjs/src/session-replay-mobile.d.ts +30 -0
- package/lib/cjs/src/session-replay-mobile.js +42 -0
- package/lib/cjs/src/session-replay.d.ts +30 -0
- package/lib/cjs/src/session-replay.js +49 -0
- package/lib/esm/generated/browserSessionReplay.d.ts +703 -0
- package/lib/esm/generated/browserSessionReplay.js +5 -0
- package/lib/esm/generated/dashboardCharts.d.ts +1372 -0
- package/lib/esm/generated/dashboardCharts.js +5 -0
- package/lib/esm/generated/mobileSessionReplay.d.ts +653 -0
- package/lib/esm/generated/mobileSessionReplay.js +5 -0
- package/lib/esm/generated/sessionReplay.d.ts +1190 -0
- package/lib/esm/generated/sessionReplay.js +5 -0
- package/lib/esm/src/dashboard-charts.d.ts +1 -0
- package/lib/esm/src/dashboard-charts.js +1 -0
- package/lib/esm/src/index.d.ts +2 -0
- package/lib/esm/src/index.js +2 -0
- package/lib/esm/src/session-replay-browser.d.ts +58 -0
- package/lib/esm/src/session-replay-browser.js +52 -0
- package/lib/esm/src/session-replay-mobile.d.ts +30 -0
- package/lib/esm/src/session-replay-mobile.js +25 -0
- package/lib/esm/src/session-replay.d.ts +30 -0
- package/lib/esm/src/session-replay.js +24 -0
- package/lib/example/grafana-dashboard.json +2205 -0
- package/lib/example/guance-covert-test.json +629 -0
- package/lib/example/guance-dashboard-1.json +672 -0
- package/lib/example/guance-dashboard.json +2841 -0
- package/lib/scripts/grafana-covert-to-guance.d.ts +1 -0
- package/lib/scripts/grafana-covert-to-guance.js +367 -0
- package/lib/scripts/grafana-covert-to-guance.ts +374 -0
- package/lib/scripts/grafana-dashbord.d.ts +2220 -0
- package/lib/scripts/grafana-dashbord.js +1 -0
- package/lib/scripts/grafana-dashbord.ts +2427 -0
- package/lib/src/dashboard-charts.ts +1 -0
- package/lib/src/index.ts +2 -0
- package/lib/src/session-replay-browser.ts +98 -0
- package/lib/src/session-replay-mobile.ts +54 -0
- package/lib/src/session-replay.ts +61 -0
- package/package.json +45 -0
- package/samples/dashboard/dashboard.json +2842 -0
- package/samples/dashboard/promql-dashboard.json +2175 -0
- package/samples/session-replay/mobile/record/full-snapshot-record.json +51 -0
- package/samples/session-replay/mobile/record/has-focus-record.json +7 -0
- package/samples/session-replay/mobile/record/incremental-snapshot-record.json +74 -0
- package/samples/session-replay/mobile/record/metadata-record.json +8 -0
- package/samples/session-replay/mobile/record/view-end-record.json +4 -0
- package/samples/session-replay/mobile/segment/segment.json +110 -0
- package/schemas/charts/chart-schema.json +73 -0
- package/schemas/charts/common/common-chart-types-schema.json +37 -0
- package/schemas/charts/common/common-vars-item-schema.json +117 -0
- package/schemas/charts/common/common-vars-schema.json +10 -0
- package/schemas/charts/dashboard-schema.json +73 -0
- package/schemas/charts/query/queries-schema.json +10 -0
- package/schemas/charts/query/query-item-schema.json +42 -0
- package/schemas/charts/settings/_common-settings-connect-null-schema.json +7 -0
- package/schemas/charts/settings/_common-settings-gradual-color-schema.json +72 -0
- package/schemas/charts/settings/_common-settings-groupby-schema.json +22 -0
- package/schemas/charts/settings/_common-settings-legend-position-schema.json +14 -0
- package/schemas/charts/settings/_common-settings-legend-values-schema.json +19 -0
- package/schemas/charts/settings/_common-settings-open-stack-schema.json +8 -0
- package/schemas/charts/settings/_common-settings-show-label-schema.json +8 -0
- package/schemas/charts/settings/_common-settings-show-line-schema.json +8 -0
- package/schemas/charts/settings/_common-settings-stack-content-schema.json +12 -0
- package/schemas/charts/settings/_common-settings-stack-type-schema.json +11 -0
- package/schemas/charts/settings/chart-alarm-settings-schema.json +48 -0
- package/schemas/charts/settings/chart-bar-settings-schema.json +69 -0
- package/schemas/charts/settings/chart-chinamap-settings-schema.json +102 -0
- package/schemas/charts/settings/chart-funnel-settings-schema.json +34 -0
- package/schemas/charts/settings/chart-gauge-settings-schema.json +65 -0
- package/schemas/charts/settings/chart-heatmap-settings-schema.json +50 -0
- package/schemas/charts/settings/chart-hexgon-settings-schema.json +90 -0
- package/schemas/charts/settings/chart-histogram-settings-schema.json +47 -0
- package/schemas/charts/settings/chart-iframe-settings-schema.json +24 -0
- package/schemas/charts/settings/chart-log-settings-schema.json +84 -0
- package/schemas/charts/settings/chart-object-settings-schema.json +52 -0
- package/schemas/charts/settings/chart-picture-settings-schema.json +46 -0
- package/schemas/charts/settings/chart-pie-settings-schema.json +90 -0
- package/schemas/charts/settings/chart-sankey-settings-schema.json +34 -0
- package/schemas/charts/settings/chart-scatter-bubble-settings-schema.json +31 -0
- package/schemas/charts/settings/chart-sequence-settings-schema.json +76 -0
- package/schemas/charts/settings/chart-singlestat-settings-schema.json +163 -0
- package/schemas/charts/settings/chart-table-settings-schema.json +184 -0
- package/schemas/charts/settings/chart-text-settings-schema.json +20 -0
- package/schemas/charts/settings/chart-toplist-settings-schema.json +117 -0
- package/schemas/charts/settings/chart-topology-settings-schema.json +71 -0
- package/schemas/charts/settings/chart-treemap-settings-schema.json +66 -0
- package/schemas/charts/settings/chart-worldmap-settings-schema.json +102 -0
- package/schemas/charts/settings/common-settings-schema.json +82 -0
- package/schemas/charts/settings/settings-alias-schema.json +47 -0
- package/schemas/charts/settings/settings-chart-type-schema.json +27 -0
- package/schemas/charts/settings/settings-colors-schema.json +46 -0
- package/schemas/charts/settings/settings-compare-schema.json +58 -0
- package/schemas/charts/settings/settings-fixed-time-schema.json +49 -0
- package/schemas/charts/settings/settings-levels-schema.json +33 -0
- package/schemas/charts/settings/settings-schema.json +79 -0
- package/schemas/charts/settings/settings-time-schema.json +47 -0
- package/schemas/charts/settings/settings-unit-items-schema.json +226 -0
- package/schemas/charts/settings/settings-units-schema.json +60 -0
- package/schemas/dashboard-schema.json +5 -0
- package/schemas/session-replay/browser/attribute-mutation-schema.json +21 -0
- package/schemas/session-replay/browser/attributes-schema.json +10 -0
- package/schemas/session-replay/browser/cdata-node-schema.json +19 -0
- package/schemas/session-replay/browser/creation-reason-schema.json +17 -0
- package/schemas/session-replay/browser/document-fragment-node-schema.json +35 -0
- package/schemas/session-replay/browser/document-node-schema.json +30 -0
- package/schemas/session-replay/browser/document-type-node-schema.json +28 -0
- package/schemas/session-replay/browser/element-node-schema.json +33 -0
- package/schemas/session-replay/browser/frustration-record-schema.json +49 -0
- package/schemas/session-replay/browser/full-snapshot-record-schema.json +26 -0
- package/schemas/session-replay/browser/incremental-data-schema.json +36 -0
- package/schemas/session-replay/browser/incremental-snapshot-record-schema.json +29 -0
- package/schemas/session-replay/browser/input-data-schema.json +27 -0
- package/schemas/session-replay/browser/input-state-schema.json +27 -0
- package/schemas/session-replay/browser/media-interaction-data-schema.json +23 -0
- package/schemas/session-replay/browser/media-interaction-schema.json +20 -0
- package/schemas/session-replay/browser/mouse-interaction-data-schema.json +23 -0
- package/schemas/session-replay/browser/mouse-interaction-schema.json +47 -0
- package/schemas/session-replay/browser/mouse-move-data-schema.json +23 -0
- package/schemas/session-replay/browser/mouse-position-schema.json +26 -0
- package/schemas/session-replay/browser/mutation-data-schema.json +23 -0
- package/schemas/session-replay/browser/mutation-payload-schema.json +42 -0
- package/schemas/session-replay/browser/node-added-mutation-schema.json +41 -0
- package/schemas/session-replay/browser/node-removed-mutation-schema.json +18 -0
- package/schemas/session-replay/browser/node-schema.json +28 -0
- package/schemas/session-replay/browser/record-schema.json +30 -0
- package/schemas/session-replay/browser/scroll-data-schema.json +23 -0
- package/schemas/session-replay/browser/scroll-position-schema.json +22 -0
- package/schemas/session-replay/browser/segment-metadata-schema.json +28 -0
- package/schemas/session-replay/browser/segment-schema.json +25 -0
- package/schemas/session-replay/browser/serialized-node-schema.json +15 -0
- package/schemas/session-replay/browser/serialized-node-with-id-schema.json +21 -0
- package/schemas/session-replay/browser/stylesheet-rule-add-schema.json +28 -0
- package/schemas/session-replay/browser/stylesheet-rule-data-schema.json +23 -0
- package/schemas/session-replay/browser/stylesheet-rule-delete-schema.json +24 -0
- package/schemas/session-replay/browser/stylesheet-rule-schema.json +29 -0
- package/schemas/session-replay/browser/stylesheet-schema.json +30 -0
- package/schemas/session-replay/browser/text-mutation-schema.json +27 -0
- package/schemas/session-replay/browser/text-node-schema.json +23 -0
- package/schemas/session-replay/common/_common-record-schema.json +14 -0
- package/schemas/session-replay/common/_common-segment-metadata-schema.json +30 -0
- package/schemas/session-replay/common/_slot-supported-common-record-schema.json +21 -0
- package/schemas/session-replay/common/focus-record-schema.json +34 -0
- package/schemas/session-replay/common/meta-record-schema.json +42 -0
- package/schemas/session-replay/common/pointer-interaction-data-schema.json +23 -0
- package/schemas/session-replay/common/pointer-interaction-schema.json +34 -0
- package/schemas/session-replay/common/segment-context-schema.json +46 -0
- package/schemas/session-replay/common/view-end-record-schema.json +23 -0
- package/schemas/session-replay/common/viewport-resize-data-schema.json +23 -0
- package/schemas/session-replay/common/viewport-resize-dimension-schema.json +18 -0
- package/schemas/session-replay/common/visual-viewport-record-schema.json +50 -0
- package/schemas/session-replay/full-snapshot-record-schema.json +14 -0
- package/schemas/session-replay/incremental-data-schema.json +14 -0
- package/schemas/session-replay/incremental-snapshot-record-schema.json +14 -0
- package/schemas/session-replay/mobile/_common-shape-wireframe-schema.json +22 -0
- package/schemas/session-replay/mobile/_common-shape-wireframe-update-schema.json +22 -0
- package/schemas/session-replay/mobile/_common-wireframe-schema.json +38 -0
- package/schemas/session-replay/mobile/_common-wireframe-update-schema.json +38 -0
- package/schemas/session-replay/mobile/full-snapshot-record-schema.json +38 -0
- package/schemas/session-replay/mobile/image-wireframe-schema.json +43 -0
- package/schemas/session-replay/mobile/image-wireframe-update-schema.json +43 -0
- package/schemas/session-replay/mobile/incremental-data-schema.json +21 -0
- package/schemas/session-replay/mobile/incremental-snapshot-record-schema.json +26 -0
- package/schemas/session-replay/mobile/mutation-data-schema.json +23 -0
- package/schemas/session-replay/mobile/mutation-payload-schema.json +55 -0
- package/schemas/session-replay/mobile/placeholder-wireframe-schema.json +28 -0
- package/schemas/session-replay/mobile/placeholder-wireframe-update-schema.json +28 -0
- package/schemas/session-replay/mobile/record-schema.json +27 -0
- package/schemas/session-replay/mobile/segment-metadata-schema.json +25 -0
- package/schemas/session-replay/mobile/segment-schema.json +25 -0
- package/schemas/session-replay/mobile/shape-border-schema.json +25 -0
- package/schemas/session-replay/mobile/shape-style-schema.json +29 -0
- package/schemas/session-replay/mobile/shape-wireframe-schema.json +23 -0
- package/schemas/session-replay/mobile/shape-wireframe-update-schema.json +23 -0
- package/schemas/session-replay/mobile/text-position-schema.json +57 -0
- package/schemas/session-replay/mobile/text-style-schema.json +31 -0
- package/schemas/session-replay/mobile/text-wireframe-schema.json +34 -0
- package/schemas/session-replay/mobile/text-wireframe-update-schema.json +34 -0
- package/schemas/session-replay/mobile/touch-data-schema.json +51 -0
- package/schemas/session-replay/mobile/webview-wireframe-schema.json +33 -0
- package/schemas/session-replay/mobile/webview-wireframe-update-schema.json +33 -0
- package/schemas/session-replay/mobile/wireframe-clip-schema.json +29 -0
- package/schemas/session-replay/mobile/wireframe-schema.json +24 -0
- package/schemas/session-replay/mobile/wireframe-update-mutation-schema.json +24 -0
- package/schemas/session-replay/mutation-data-schema.json +14 -0
- package/schemas/session-replay/mutation-payload-schema.json +14 -0
- package/schemas/session-replay/record-schema.json +14 -0
- package/schemas/session-replay/segment-metadata-schema.json +14 -0
- package/schemas/session-replay/segment-schema.json +15 -0
- package/schemas/session-replay-browser-schema.json +5 -0
- package/schemas/session-replay-mobile-schema.json +5 -0
- package/schemas/session-replay-schema.json +33 -0
- package/scripts/generate.mjs +96 -0
- package/scripts/utils.mjs +16 -0
- package/scripts/validate.mjs +144 -0
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +13 -0
- package/tsconfig.script.json +15 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/_common-settings-gradual-color-schema.json",
|
|
4
|
+
"title": "CommonGradualColorSettings",
|
|
5
|
+
"description": "热力图配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"gradualColor": {
|
|
9
|
+
"description": "颜色匹配设置",
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": [
|
|
12
|
+
"type",
|
|
13
|
+
"colorKey",
|
|
14
|
+
"levelCount"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"type": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"auto",
|
|
21
|
+
"custom"
|
|
22
|
+
],
|
|
23
|
+
"description": "颜色匹配设置模式,可以根据颜色色系,自动匹配数值对应色块"
|
|
24
|
+
},
|
|
25
|
+
"colorKey": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "提供选择的色系",
|
|
28
|
+
"enum": [
|
|
29
|
+
"interpolateYlOrBr",
|
|
30
|
+
"interpolateBuPu",
|
|
31
|
+
"interpolatePuBu",
|
|
32
|
+
"interpolateBuGn"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"minVal": {
|
|
36
|
+
"description": "在自动模式下,可以手动设置区间范围最小值",
|
|
37
|
+
"type": "integer"
|
|
38
|
+
},
|
|
39
|
+
"maxVal": {
|
|
40
|
+
"description": "在自动模式下,可以手动设置的区间范围最大值",
|
|
41
|
+
"type": "integer"
|
|
42
|
+
},
|
|
43
|
+
"levelCount": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"description": "在渐变区间发范围内,可以手动填写生成的色块数量"
|
|
46
|
+
},
|
|
47
|
+
"levels": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"description": "自定义模式下,设置的区间映射列表",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": [
|
|
53
|
+
"color"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"min": {
|
|
57
|
+
"description": "自定义区间块最小值"
|
|
58
|
+
},
|
|
59
|
+
"max": {
|
|
60
|
+
"description": "自定义区间块最大值"
|
|
61
|
+
},
|
|
62
|
+
"color": {
|
|
63
|
+
"description": "自定义区间块颜色色值"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/_common-settings-groupby-schema.json",
|
|
4
|
+
"title": "CommonChartGroupbySettings",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "图表分组排序相关配置",
|
|
7
|
+
"properties": {
|
|
8
|
+
"slimit": {
|
|
9
|
+
"type": "integer",
|
|
10
|
+
"description": "当分组存在时,最大显示分组数量"
|
|
11
|
+
},
|
|
12
|
+
"sorderByOrder": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "当分组存在时,分组返回的排序",
|
|
15
|
+
"enum": [
|
|
16
|
+
"asc",
|
|
17
|
+
"desc"
|
|
18
|
+
],
|
|
19
|
+
"default": "desc"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/_common-settings-legend-position-schema.json",
|
|
4
|
+
"title": "CommonChartLegendPositionSettings",
|
|
5
|
+
"type": "string",
|
|
6
|
+
"description": "图表图列位置显示配置信息",
|
|
7
|
+
"enum": [
|
|
8
|
+
"none",
|
|
9
|
+
"bottom",
|
|
10
|
+
"right",
|
|
11
|
+
"circle"
|
|
12
|
+
],
|
|
13
|
+
"default": "none"
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/_common-settings-legend-values-schema.json",
|
|
4
|
+
"title": "CommonChartLegendValuesSettings",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "图表图列需要显示的统计指标",
|
|
9
|
+
"enum": [
|
|
10
|
+
"first",
|
|
11
|
+
"last",
|
|
12
|
+
"avg",
|
|
13
|
+
"min",
|
|
14
|
+
"max",
|
|
15
|
+
"sum",
|
|
16
|
+
"count"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/_common-settings-stack-content-schema.json",
|
|
4
|
+
"title": "CommonChartStackContentSettings",
|
|
5
|
+
"type": "string",
|
|
6
|
+
"description": "柱状图堆叠模式下,横坐标显示类型",
|
|
7
|
+
"enum": [
|
|
8
|
+
"group",
|
|
9
|
+
"index"
|
|
10
|
+
],
|
|
11
|
+
"default": "group"
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/_common-settings-stack-type-schema.json",
|
|
4
|
+
"title": "CommonChartStackTypeSettings",
|
|
5
|
+
"type": "string",
|
|
6
|
+
"description": "柱状图堆叠模式",
|
|
7
|
+
"enum": [
|
|
8
|
+
"time",
|
|
9
|
+
"percent"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/chart-alarm-settings-schema.json",
|
|
4
|
+
"title": "ChartAlarmSettings",
|
|
5
|
+
"description": "告警统计图配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"$ref": "common-settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"isTimeInterval": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "是否开启时间分片",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"currentChartType": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"const": "alarm",
|
|
22
|
+
"readOnly": true,
|
|
23
|
+
"description": "冗余字段,在对象列表图中,固定为 alarm"
|
|
24
|
+
},
|
|
25
|
+
"showPart": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "告警统计图显示模式,可选配置分别为全部、仅统计图、仅告警列表",
|
|
28
|
+
"enum": [
|
|
29
|
+
"all",
|
|
30
|
+
"statistic",
|
|
31
|
+
"list"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"pageSize": {
|
|
35
|
+
"description": "列表每页显示的最大日志数量",
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"default": 50,
|
|
38
|
+
"enum": [
|
|
39
|
+
10,
|
|
40
|
+
20,
|
|
41
|
+
50,
|
|
42
|
+
100
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/chart-bar-settings-schema.json",
|
|
4
|
+
"title": "ChartBarSettings",
|
|
5
|
+
"description": "柱状图配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"$ref": "common-settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"direction": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"default": "vertical",
|
|
17
|
+
"description": "柱状图显示类型,横向显示还是纵向显示",
|
|
18
|
+
"enum": [
|
|
19
|
+
"vertical",
|
|
20
|
+
"horizontal"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"alias": {
|
|
24
|
+
"$ref": "settings-alias-schema.json"
|
|
25
|
+
},
|
|
26
|
+
"colors": {
|
|
27
|
+
"$ref": "settings-colors-schema.json"
|
|
28
|
+
},
|
|
29
|
+
"levels": {
|
|
30
|
+
"$ref": "settings-levels-schema.json"
|
|
31
|
+
},
|
|
32
|
+
"stackType": {
|
|
33
|
+
"$ref": "_common-settings-stack-type-schema.json"
|
|
34
|
+
},
|
|
35
|
+
"stackContent": {
|
|
36
|
+
"$ref": "_common-settings-stack-content-schema.json"
|
|
37
|
+
},
|
|
38
|
+
"openStack": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"description": "是否开启堆叠模式",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
"showTopSize": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"const": false,
|
|
46
|
+
"description": "是否是排行榜类型图表,柱状图固定为 false"
|
|
47
|
+
},
|
|
48
|
+
"aliasVersion": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"description": "区分别名版本,固定为 2",
|
|
51
|
+
"const": 2
|
|
52
|
+
},
|
|
53
|
+
"isTimeInterval": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "是否开启时间分片,时序图固定开启",
|
|
56
|
+
"default": false
|
|
57
|
+
},
|
|
58
|
+
"xAxisShowType": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": " 横坐标显示类型,柱状图固定显示分组",
|
|
61
|
+
"const": "groupBy"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"$ref": "settings-units-schema.json"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/chart-chinamap-settings-schema.json",
|
|
4
|
+
"title": "ChartChinaMapSettings",
|
|
5
|
+
"description": "中国地图配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"$ref": "common-settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"alias": {
|
|
15
|
+
"$ref": "settings-alias-schema.json"
|
|
16
|
+
},
|
|
17
|
+
"colors": {
|
|
18
|
+
"$ref": "settings-colors-schema.json"
|
|
19
|
+
},
|
|
20
|
+
"levels": {
|
|
21
|
+
"$ref": "settings-levels-schema.json"
|
|
22
|
+
},
|
|
23
|
+
"isTimeInterval": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"description": "是否开启时间分片",
|
|
26
|
+
"default": false
|
|
27
|
+
},
|
|
28
|
+
"rangeColorKey": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "区间颜色选择色系的唯一对应健",
|
|
31
|
+
"enum": [
|
|
32
|
+
"light-blue",
|
|
33
|
+
"light-red",
|
|
34
|
+
"dark-red",
|
|
35
|
+
"dark-yellow",
|
|
36
|
+
"dark-green",
|
|
37
|
+
"dark-blue",
|
|
38
|
+
"dark-purple",
|
|
39
|
+
"light-yellow",
|
|
40
|
+
"light-purple",
|
|
41
|
+
"light-green"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"levelArr": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"description": "区间颜色配置",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": [
|
|
50
|
+
"min",
|
|
51
|
+
"max",
|
|
52
|
+
"color"
|
|
53
|
+
],
|
|
54
|
+
"properties": {
|
|
55
|
+
"min": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"description": "区间左范围值"
|
|
58
|
+
},
|
|
59
|
+
"max": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"description": "区间右范围值"
|
|
62
|
+
},
|
|
63
|
+
"color": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "区间范围内显示色值"
|
|
66
|
+
},
|
|
67
|
+
"isAuto": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "是否是自动生成的区间范围"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"showLegend": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "显示图例的位置信息,可以选择隐藏,以及在底部区域",
|
|
77
|
+
"enum": [
|
|
78
|
+
"none",
|
|
79
|
+
"bottom"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"showTopList": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"description": "是否显示地区排名列表",
|
|
85
|
+
"default": false
|
|
86
|
+
},
|
|
87
|
+
"mainMeasurementQueryCode": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "选择指标匹配色块大小,值为对应查询语句 code 名称,根据查询语句顺序以大些字母命名",
|
|
90
|
+
"default": "A"
|
|
91
|
+
},
|
|
92
|
+
"provinceKey": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "选择对应省份的指标名称"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"$ref": "settings-units-schema.json"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/chart-funnel-settings-schema.json",
|
|
4
|
+
"title": "ChartFunnelSettings",
|
|
5
|
+
"description": "漏斗图配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"$ref": "common-settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"alias": {
|
|
15
|
+
"$ref": "settings-alias-schema.json"
|
|
16
|
+
},
|
|
17
|
+
"colors": {
|
|
18
|
+
"$ref": "settings-colors-schema.json"
|
|
19
|
+
},
|
|
20
|
+
"levels": {
|
|
21
|
+
"$ref": "settings-levels-schema.json"
|
|
22
|
+
},
|
|
23
|
+
"isTimeInterval": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"description": "是否开启时间分片",
|
|
26
|
+
"default": false
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"$ref": "settings-units-schema.json"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/chart-gauge-settings-schema.json",
|
|
4
|
+
"title": "ChartGaugeSettings",
|
|
5
|
+
"description": "仪表盘图表配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"$ref": "common-settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"alias": {
|
|
15
|
+
"$ref": "settings-alias-schema.json"
|
|
16
|
+
},
|
|
17
|
+
"colors": {
|
|
18
|
+
"$ref": "settings-colors-schema.json"
|
|
19
|
+
},
|
|
20
|
+
"min": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"default": 0,
|
|
23
|
+
"description": "仪表盘分段阈值最小值"
|
|
24
|
+
},
|
|
25
|
+
"max": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"default": 100,
|
|
28
|
+
"description": "仪表盘分段阈值最大值"
|
|
29
|
+
},
|
|
30
|
+
"levels": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"description": "仪表盘分段阈值设置",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"value": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "integer"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"lineColor": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "颜色色值"
|
|
45
|
+
},
|
|
46
|
+
"operation": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "表达式操作符,仪表盘固定值 <=",
|
|
49
|
+
"const": "<="
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"isTimeInterval": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"description": "是否开启时间分片",
|
|
57
|
+
"default": false
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"$ref": "settings-units-schema.json"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/chart-heatmap-settings-schema.json",
|
|
4
|
+
"title": "ChartHeatmapSettings",
|
|
5
|
+
"description": "热力图配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"$ref": "common-settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"alias": {
|
|
15
|
+
"$ref": "settings-alias-schema.json"
|
|
16
|
+
},
|
|
17
|
+
"colors": {
|
|
18
|
+
"$ref": "settings-colors-schema.json"
|
|
19
|
+
},
|
|
20
|
+
"levels": {
|
|
21
|
+
"$ref": "settings-levels-schema.json"
|
|
22
|
+
},
|
|
23
|
+
"isTimeInterval": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"description": "是否开启时间分片",
|
|
26
|
+
"default": true
|
|
27
|
+
},
|
|
28
|
+
"showLegend": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "显示图例的位置信息,可以选择隐藏,以及在底部区域",
|
|
31
|
+
"enum": [
|
|
32
|
+
"none",
|
|
33
|
+
"bottom"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"mainMeasurementQueryCode": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "选择指标匹配色块大小,值为对应查询语句 code 名称,根据查询语句顺序以大些字母命名",
|
|
39
|
+
"default": "A"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"$ref": "settings-units-schema.json"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"$ref": "_common-settings-gradual-color-schema.json"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "charts/settings/chart-hexgon-settings-schema.json",
|
|
4
|
+
"title": "ChartHexgonSettings",
|
|
5
|
+
"description": "蜂窝图配置信息",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"$ref": "common-settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"alias": {
|
|
15
|
+
"$ref": "settings-alias-schema.json"
|
|
16
|
+
},
|
|
17
|
+
"colors": {
|
|
18
|
+
"$ref": "settings-colors-schema.json"
|
|
19
|
+
},
|
|
20
|
+
"rangeColorKey": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "区间颜色选择色系的唯一对应健",
|
|
23
|
+
"enum": [
|
|
24
|
+
"light-blue",
|
|
25
|
+
"light-red",
|
|
26
|
+
"dark-red",
|
|
27
|
+
"dark-yellow",
|
|
28
|
+
"dark-green",
|
|
29
|
+
"dark-blue",
|
|
30
|
+
"dark-purple",
|
|
31
|
+
"light-yellow",
|
|
32
|
+
"light-purple",
|
|
33
|
+
"light-green"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"levelArr": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"description": "区间颜色配置",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": [
|
|
42
|
+
"min",
|
|
43
|
+
"max",
|
|
44
|
+
"color"
|
|
45
|
+
],
|
|
46
|
+
"properties": {
|
|
47
|
+
"min": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"description": "区间左范围值"
|
|
50
|
+
},
|
|
51
|
+
"max": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"description": "区间右范围值"
|
|
54
|
+
},
|
|
55
|
+
"color": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "区间范围内显示色值"
|
|
58
|
+
},
|
|
59
|
+
"isAuto": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "是否是自动生成的区间范围"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"isTimeInterval": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"description": "是否开启时间分片",
|
|
69
|
+
"default": false
|
|
70
|
+
},
|
|
71
|
+
"showLegend": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "显示图例的位置信息,可以选择隐藏,以及在底部区域",
|
|
74
|
+
"enum": [
|
|
75
|
+
"none",
|
|
76
|
+
"bottom"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"mainMeasurementQueryCode": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "选择指标匹配色块大小,值为对应查询语句 code 名称,根据查询语句顺序以大些字母命名",
|
|
82
|
+
"default": "A"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"$ref": "settings-units-schema.json"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|