@guandata/guanmetric 0.1.7 → 0.1.8
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/CHANGELOG.md +5 -0
- package/README.md +5 -0
- package/binaries/guanmetric-darwin-arm64 +0 -0
- package/binaries/guanmetric-darwin-x64 +0 -0
- package/binaries/guanmetric-linux-arm64 +0 -0
- package/binaries/guanmetric-linux-x64 +0 -0
- package/binaries/guanmetric-win32-x64.exe +0 -0
- package/package.json +1 -1
- package/skills/guanmetric/SKILL.md +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## @guandata/guanmetric 0.1.8 - 2026-08-13
|
|
4
|
+
|
|
5
|
+
- 查询加速能力支持配置筛选条件,可在加速配置中更精细地限定适用数据范围,提升特定场景下的使用灵活性。
|
|
6
|
+
- 创建和编辑查询加速时,可通过完整请求体、`--filter-json` 或 `--filter-file` 传入筛选条件。
|
|
7
|
+
|
|
3
8
|
## @guandata/guanmetric 0.1.7 - 2026-08-07
|
|
4
9
|
|
|
5
10
|
- 新增指标查询加速能力,支持通过 CLI 对指标查询加速进行管理。
|
package/README.md
CHANGED
|
@@ -21,12 +21,17 @@ guanmetric create --file atomic_metric.json --dry-run
|
|
|
21
21
|
guanmetric edit <metric_id> --file patch.json --dry-run
|
|
22
22
|
guanmetric delete <metric_id>
|
|
23
23
|
guanmetric public-dim create --file public_dim.json --dry-run
|
|
24
|
+
guanmetric accelerate create <metric_id> --ds-id <dsId> --fd-id <fdId> --aggr-type SUM --filter-file filter.json --dry-run
|
|
24
25
|
guanmetric metric-tree create 销售额指标树 --metric-id <metric_id> --parent-dir-id <metric_tree_dir_id> --dry-run
|
|
25
26
|
guanmetric metric-tree update-config <metric_tree_id> --file metric_tree_config.json --dry-run
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
## 版本更新
|
|
29
30
|
|
|
31
|
+
### @guandata/guanmetric 0.1.8
|
|
32
|
+
|
|
33
|
+
- 查询加速创建和编辑支持配置筛选条件,可通过完整请求体、`--filter-json` 或 `--filter-file` 传入。
|
|
34
|
+
|
|
30
35
|
### @guandata/guanmetric 0.1.7
|
|
31
36
|
|
|
32
37
|
- 新增指标查询加速管理能力。
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -19,7 +19,9 @@ guanmetric edit <metric_id> --file patch.json --dry-run
|
|
|
19
19
|
guanmetric delete <metric_id>
|
|
20
20
|
guanmetric public-dim create --file public_dim.json --dry-run
|
|
21
21
|
guanmetric accelerate create <metric_id> --ds-id <dsId> --fd-id <fdId> --aggr-type SUM --dim 省份 --dry-run
|
|
22
|
+
guanmetric accelerate create <metric_id> --ds-id <dsId> --fd-id <fdId> --aggr-type SUM --filter-file filter.json --dry-run
|
|
22
23
|
guanmetric accelerate edit <accelerate_metric_id> --file accelerate_query.json --dry-run
|
|
24
|
+
guanmetric accelerate edit <accelerate_metric_id> --filter-json '{"type":"condition","not":false,"value":{"fdId":"fd_province","filterType":"IN","filterValue":[["浙江"]]}}' --dry-run
|
|
23
25
|
guanmetric accelerate priority <metric_id> --priority <accelerate_metric_id>=2 --dry-run
|
|
24
26
|
guanmetric accelerate delete <accelerate_metric_id> --confirm
|
|
25
27
|
guanmetric metric-tree create 销售额指标树 --metric-id <metric_id> --parent-dir-id <metric_tree_dir_id> --dry-run
|
|
@@ -48,7 +50,7 @@ guanmetric fetch POST /api/metric-platform/metrics/composite-metrics --file comp
|
|
|
48
50
|
生成衍生指标模板时,如果 `衍生自` 指标不是已明确存在的线上指标,而是本批也要创建的指标,必须在标准模板中补充对应的原子指标或复合指标行;信息不足时先补行并在该基础指标行的 `问题说明` 中列出缺失的数据集、来源字段、聚合方式、计算公式、适用维度等。不要等到创建计划阶段才临时新增基础指标。
|
|
49
51
|
|
|
50
52
|
`fetch` 只用于指标平台写入接口尚未封装为专用命令的场景,例如复合指标/衍生指标创建、编辑和影响校验;常规原子指标、主题、目录、公共维度优先使用专用命令。
|
|
51
|
-
查询加速写操作已封装为 `accelerate` 专用命令;查询加速列表查询使用 `guancli metric accelerate list <metric_id
|
|
53
|
+
查询加速写操作已封装为 `accelerate` 专用命令;查询加速列表查询使用 `guancli metric accelerate list <metric_id>`。查询加速筛选条件使用和指标定义一致的 `WebFilterData` 结构,可放在完整请求体的 `filter` 字段,也可通过 `--filter-json` 或 `--filter-file` 传入;`not: true` 表示对该条件或条件组取反,清空筛选条件可传 `--filter-json null`。
|
|
52
54
|
指标树创建和修改已封装为 `metric-tree` 专用命令,优先使用专用命令,不要再用裸 `fetch` 直接调用指标树写接口。指标树父目录来自 `METRIC_TREE` 目录树,可用 `guancli metric_attribution tree -f json` 查询;不要把 `guancli metric tree` 返回的 `METRIC_PLATFORM` 指标目录 ID 当作指标树目录 ID。用户给出指标拆解公式时,按 `metric-tree-mutation.md` 解析成 `metricRelationTree`;遇到复合指标时读取指标详情中的 `formula`,按规则递归展开或在计划中标注不能无损展开的原因。
|
|
53
55
|
|
|
54
56
|
参考文档见本 skill 的 `references/` 目录:
|