@cloudcare/guance-front-tools 1.0.10 → 1.0.12
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/README.md +14 -12
- package/guance-dashboard.json +1 -1165
- package/lib/cjs/scripts/grafana-covert-to-guance-core.d.ts +4 -0
- package/lib/cjs/scripts/grafana-covert-to-guance-core.js +294 -0
- package/lib/cjs/scripts/grafana-dashbord.d.ts +2220 -0
- package/lib/cjs/scripts/grafana-dashbord.js +4 -0
- package/lib/cjs/src/grafana-covert-to-guance.d.ts +2 -0
- package/lib/cjs/src/grafana-covert-to-guance.js +5 -0
- package/lib/cjs/src/index.d.ts +1 -0
- package/lib/cjs/src/index.js +1 -0
- package/lib/esm/scripts/grafana-covert-to-guance-core.d.ts +4 -0
- package/lib/esm/scripts/grafana-covert-to-guance-core.js +291 -0
- package/lib/esm/scripts/grafana-dashbord.d.ts +2220 -0
- package/lib/esm/scripts/grafana-dashbord.js +1 -0
- package/lib/esm/src/grafana-covert-to-guance.d.ts +2 -0
- package/lib/esm/src/grafana-covert-to-guance.js +1 -0
- package/lib/esm/src/index.d.ts +1 -0
- package/lib/esm/src/index.js +1 -0
- package/lib/example/test2.json +14493 -0
- package/lib/scripts/grafana-covert-to-guance-core.js +288 -0
- package/lib/scripts/grafana-covert-to-guance-core.ts +337 -0
- package/lib/scripts/grafana-covert-to-guance.js +2 -367
- package/lib/scripts/grafana-covert-to-guance.ts +2 -379
- package/lib/src/grafana-covert-to-guance.ts +7 -0
- package/lib/src/index.ts +1 -0
- package/package.json +4 -3
- package/test/cli.test.mjs +57 -0
package/README.md
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
Guance currently provides a Node script to convert Grafana dashboard JSON templates into Guance dashboard JSON templates.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
npm installation:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
```js
|
|
8
|
-
npm install @cloudcare/guance-front-tools
|
|
5
|
+
```
|
|
6
|
+
npm install @cloudcare/guance-front-tools
|
|
9
7
|
```
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
观测云目前提供 grafana dashboard json template 转换为 观测云仪表板 json 模版的 node 脚本
|
|
14
|
-
|
|
15
|
-
### 使用方式
|
|
9
|
+
Usage:
|
|
16
10
|
|
|
17
|
-
```
|
|
11
|
+
```
|
|
18
12
|
$ npm install -g @cloudcare/guance-front-tools
|
|
19
13
|
|
|
20
14
|
# show usage information
|
|
@@ -23,3 +17,11 @@ $ grafanaCovertToGuance
|
|
|
23
17
|
# run task
|
|
24
18
|
$ grafanaCovertToGuance -d examples/grafana.json -o examples/guance.json
|
|
25
19
|
```
|
|
20
|
+
|
|
21
|
+
Module usage:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { covert } from '@cloudcare/guance-front-tools'
|
|
25
|
+
|
|
26
|
+
const guanceDashboard = covert(grafanaDashboard)
|
|
27
|
+
```
|