@intentius/chant-lexicon-grafana 0.96.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.
Files changed (259) hide show
  1. package/README.md +50 -0
  2. package/dist/build.d.ts +116 -0
  3. package/dist/build.d.ts.map +1 -0
  4. package/dist/catalog.d.ts +26 -0
  5. package/dist/catalog.d.ts.map +1 -0
  6. package/dist/codegen/docs-cli.d.ts +3 -0
  7. package/dist/codegen/docs-cli.d.ts.map +1 -0
  8. package/dist/codegen/docs.d.ts +8 -0
  9. package/dist/codegen/docs.d.ts.map +1 -0
  10. package/dist/codegen/generate-cli.d.ts +3 -0
  11. package/dist/codegen/generate-cli.d.ts.map +1 -0
  12. package/dist/codegen/generate.d.ts +21 -0
  13. package/dist/codegen/generate.d.ts.map +1 -0
  14. package/dist/codegen/package.d.ts +7 -0
  15. package/dist/codegen/package.d.ts.map +1 -0
  16. package/dist/codegen/schema-types.d.ts +41 -0
  17. package/dist/codegen/schema-types.d.ts.map +1 -0
  18. package/dist/composites/agent-dashboard.d.ts +70 -0
  19. package/dist/composites/agent-dashboard.d.ts.map +1 -0
  20. package/dist/composites/catalog.d.ts +3 -0
  21. package/dist/composites/catalog.d.ts.map +1 -0
  22. package/dist/composites/index.d.ts +12 -0
  23. package/dist/composites/index.d.ts.map +1 -0
  24. package/dist/composites/red-dashboard.d.ts +58 -0
  25. package/dist/composites/red-dashboard.d.ts.map +1 -0
  26. package/dist/composites/shared.d.ts +68 -0
  27. package/dist/composites/shared.d.ts.map +1 -0
  28. package/dist/composites/slo-dashboard.d.ts +62 -0
  29. package/dist/composites/slo-dashboard.d.ts.map +1 -0
  30. package/dist/dashboard.d.ts +84 -0
  31. package/dist/dashboard.d.ts.map +1 -0
  32. package/dist/datasource.d.ts +67 -0
  33. package/dist/datasource.d.ts.map +1 -0
  34. package/dist/detect.d.ts +20 -0
  35. package/dist/detect.d.ts.map +1 -0
  36. package/dist/index.d.ts +17 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/integrity.json +22 -0
  39. package/dist/lint/audit-catalog.d.ts +13 -0
  40. package/dist/lint/audit-catalog.d.ts.map +1 -0
  41. package/dist/lint/post-synth/graf101.d.ts +8 -0
  42. package/dist/lint/post-synth/graf101.d.ts.map +1 -0
  43. package/dist/lint/post-synth/graf102.d.ts +8 -0
  44. package/dist/lint/post-synth/graf102.d.ts.map +1 -0
  45. package/dist/lint/post-synth/graf103.d.ts +8 -0
  46. package/dist/lint/post-synth/graf103.d.ts.map +1 -0
  47. package/dist/lint/post-synth/graf104.d.ts +8 -0
  48. package/dist/lint/post-synth/graf104.d.ts.map +1 -0
  49. package/dist/lint/post-synth/graf105.d.ts +8 -0
  50. package/dist/lint/post-synth/graf105.d.ts.map +1 -0
  51. package/dist/lint/post-synth/graf106.d.ts +8 -0
  52. package/dist/lint/post-synth/graf106.d.ts.map +1 -0
  53. package/dist/lint/post-synth/graf107.d.ts +8 -0
  54. package/dist/lint/post-synth/graf107.d.ts.map +1 -0
  55. package/dist/lint/post-synth/grafana-helpers.d.ts +16 -0
  56. package/dist/lint/post-synth/grafana-helpers.d.ts.map +1 -0
  57. package/dist/lint/post-synth/index.d.ts +3 -0
  58. package/dist/lint/post-synth/index.d.ts.map +1 -0
  59. package/dist/lint/rules/grafana-ast.d.ts +21 -0
  60. package/dist/lint/rules/grafana-ast.d.ts.map +1 -0
  61. package/dist/lint/rules/index.d.ts +6 -0
  62. package/dist/lint/rules/index.d.ts.map +1 -0
  63. package/dist/lint/rules/literal-secret.d.ts +12 -0
  64. package/dist/lint/rules/literal-secret.d.ts.map +1 -0
  65. package/dist/lint/rules/uid-syntax.d.ts +12 -0
  66. package/dist/lint/rules/uid-syntax.d.ts.map +1 -0
  67. package/dist/lsp/completions.d.ts +4 -0
  68. package/dist/lsp/completions.d.ts.map +1 -0
  69. package/dist/lsp/hover.d.ts +4 -0
  70. package/dist/lsp/hover.d.ts.map +1 -0
  71. package/dist/manifest.json +8 -0
  72. package/dist/meta.json +107 -0
  73. package/dist/okf/index.md +39 -0
  74. package/dist/okf/rules/GRAF001.md +16 -0
  75. package/dist/okf/rules/GRAF002.md +15 -0
  76. package/dist/okf/rules/GRAF101.md +15 -0
  77. package/dist/okf/rules/GRAF102.md +15 -0
  78. package/dist/okf/rules/GRAF103.md +11 -0
  79. package/dist/okf/rules/GRAF104.md +15 -0
  80. package/dist/okf/rules/GRAF105.md +11 -0
  81. package/dist/okf/rules/GRAF106.md +11 -0
  82. package/dist/okf/rules/GRAF107.md +11 -0
  83. package/dist/okf/types/ConstantVariable.md +9 -0
  84. package/dist/okf/types/CustomVariable.md +9 -0
  85. package/dist/okf/types/Dashboard.md +14 -0
  86. package/dist/okf/types/DashboardProvider.md +9 -0
  87. package/dist/okf/types/Datasource.md +16 -0
  88. package/dist/okf/types/DatasourceVariable.md +9 -0
  89. package/dist/okf/types/GaugePanel.md +9 -0
  90. package/dist/okf/types/HeatmapPanel.md +9 -0
  91. package/dist/okf/types/IntervalVariable.md +9 -0
  92. package/dist/okf/types/LogsPanel.md +9 -0
  93. package/dist/okf/types/LokiQuery.md +9 -0
  94. package/dist/okf/types/PromQuery.md +9 -0
  95. package/dist/okf/types/QueryVariable.md +9 -0
  96. package/dist/okf/types/Row.md +9 -0
  97. package/dist/okf/types/StatPanel.md +9 -0
  98. package/dist/okf/types/TablePanel.md +9 -0
  99. package/dist/okf/types/TempoQuery.md +9 -0
  100. package/dist/okf/types/TextPanel.md +9 -0
  101. package/dist/okf/types/TextboxVariable.md +9 -0
  102. package/dist/okf/types/TimeSeriesPanel.md +9 -0
  103. package/dist/okf/types/TracesPanel.md +9 -0
  104. package/dist/package-cli.d.ts +3 -0
  105. package/dist/package-cli.d.ts.map +1 -0
  106. package/dist/panels.d.ts +138 -0
  107. package/dist/panels.d.ts.map +1 -0
  108. package/dist/pin.d.ts +32 -0
  109. package/dist/pin.d.ts.map +1 -0
  110. package/dist/plugin.d.ts +12 -0
  111. package/dist/plugin.d.ts.map +1 -0
  112. package/dist/query.d.ts +81 -0
  113. package/dist/query.d.ts.map +1 -0
  114. package/dist/rules/graf101.ts +17 -0
  115. package/dist/rules/graf102.ts +17 -0
  116. package/dist/rules/graf103.ts +17 -0
  117. package/dist/rules/graf104.ts +17 -0
  118. package/dist/rules/graf105.ts +17 -0
  119. package/dist/rules/graf106.ts +17 -0
  120. package/dist/rules/graf107.ts +17 -0
  121. package/dist/rules/grafana-ast.ts +70 -0
  122. package/dist/rules/grafana-helpers.ts +68 -0
  123. package/dist/rules/literal-secret.ts +48 -0
  124. package/dist/rules/uid-syntax.ts +56 -0
  125. package/dist/schema/dashboard.gen.d.ts +1231 -0
  126. package/dist/schema/dashboard.gen.d.ts.map +1 -0
  127. package/dist/schema/gauge.gen.d.ts +57 -0
  128. package/dist/schema/gauge.gen.d.ts.map +1 -0
  129. package/dist/schema/heatmap.gen.d.ts +295 -0
  130. package/dist/schema/heatmap.gen.d.ts.map +1 -0
  131. package/dist/schema/index.d.ts +18 -0
  132. package/dist/schema/index.d.ts.map +1 -0
  133. package/dist/schema/logs.gen.d.ts +29 -0
  134. package/dist/schema/logs.gen.d.ts.map +1 -0
  135. package/dist/schema/loki.gen.d.ts +69 -0
  136. package/dist/schema/loki.gen.d.ts.map +1 -0
  137. package/dist/schema/prometheus.gen.d.ts +169 -0
  138. package/dist/schema/prometheus.gen.d.ts.map +1 -0
  139. package/dist/schema/stat.gen.d.ts +75 -0
  140. package/dist/schema/stat.gen.d.ts.map +1 -0
  141. package/dist/schema/table.gen.d.ts +295 -0
  142. package/dist/schema/table.gen.d.ts.map +1 -0
  143. package/dist/schema/tempo.gen.d.ts +136 -0
  144. package/dist/schema/tempo.gen.d.ts.map +1 -0
  145. package/dist/schema/text.gen.d.ts +16 -0
  146. package/dist/schema/text.gen.d.ts.map +1 -0
  147. package/dist/schema/timeseries.gen.d.ts +179 -0
  148. package/dist/schema/timeseries.gen.d.ts.map +1 -0
  149. package/dist/schema-validate.d.ts +20 -0
  150. package/dist/schema-validate.d.ts.map +1 -0
  151. package/dist/serializer.d.ts +22 -0
  152. package/dist/serializer.d.ts.map +1 -0
  153. package/dist/skill-defs.d.ts +3 -0
  154. package/dist/skill-defs.d.ts.map +1 -0
  155. package/dist/skills/chant-grafana-provisioning.md +42 -0
  156. package/dist/skills/chant-grafana.md +93 -0
  157. package/dist/spec/fetch-cli.d.ts +3 -0
  158. package/dist/spec/fetch-cli.d.ts.map +1 -0
  159. package/dist/spec/schemas.d.ts +25 -0
  160. package/dist/spec/schemas.d.ts.map +1 -0
  161. package/dist/types/index.d.ts +3 -0
  162. package/dist/util.d.ts +17 -0
  163. package/dist/util.d.ts.map +1 -0
  164. package/dist/validate-cli.d.ts +3 -0
  165. package/dist/validate-cli.d.ts.map +1 -0
  166. package/dist/validate-output.d.ts +42 -0
  167. package/dist/validate-output.d.ts.map +1 -0
  168. package/dist/validate.d.ts +12 -0
  169. package/dist/validate.d.ts.map +1 -0
  170. package/dist/variables.d.ts +100 -0
  171. package/dist/variables.d.ts.map +1 -0
  172. package/package.json +79 -0
  173. package/src/build.test.ts +210 -0
  174. package/src/build.ts +573 -0
  175. package/src/catalog.ts +116 -0
  176. package/src/codegen/docs-cli.ts +4 -0
  177. package/src/codegen/docs.ts +97 -0
  178. package/src/codegen/generate-cli.ts +8 -0
  179. package/src/codegen/generate.ts +83 -0
  180. package/src/codegen/package.ts +41 -0
  181. package/src/codegen/schema-types.ts +173 -0
  182. package/src/composites/agent-dashboard.ts +235 -0
  183. package/src/composites/catalog.test.ts +37 -0
  184. package/src/composites/catalog.ts +223 -0
  185. package/src/composites/composites.test.ts +314 -0
  186. package/src/composites/index.ts +12 -0
  187. package/src/composites/red-dashboard.ts +159 -0
  188. package/src/composites/shared.ts +94 -0
  189. package/src/composites/slo-dashboard.ts +177 -0
  190. package/src/dashboard.ts +123 -0
  191. package/src/datasource.ts +93 -0
  192. package/src/detect.ts +30 -0
  193. package/src/generated/lexicon-grafana.json +107 -0
  194. package/src/import.e2e.test.ts +147 -0
  195. package/src/import.test.ts +45 -0
  196. package/src/index.ts +178 -0
  197. package/src/lint/audit-catalog.ts +87 -0
  198. package/src/lint/post-synth/graf101.ts +17 -0
  199. package/src/lint/post-synth/graf102.ts +17 -0
  200. package/src/lint/post-synth/graf103.ts +17 -0
  201. package/src/lint/post-synth/graf104.ts +17 -0
  202. package/src/lint/post-synth/graf105.ts +17 -0
  203. package/src/lint/post-synth/graf106.ts +17 -0
  204. package/src/lint/post-synth/graf107.ts +17 -0
  205. package/src/lint/post-synth/grafana-helpers.ts +68 -0
  206. package/src/lint/post-synth/index.ts +19 -0
  207. package/src/lint/post-synth/post-synth.test.ts +231 -0
  208. package/src/lint/rules/grafana-ast.ts +70 -0
  209. package/src/lint/rules/index.ts +9 -0
  210. package/src/lint/rules/literal-secret.ts +48 -0
  211. package/src/lint/rules/rules.test.ts +70 -0
  212. package/src/lint/rules/uid-syntax.ts +56 -0
  213. package/src/lsp/completions.test.ts +31 -0
  214. package/src/lsp/completions.ts +15 -0
  215. package/src/lsp/hover.test.ts +25 -0
  216. package/src/lsp/hover.ts +28 -0
  217. package/src/package-cli.ts +17 -0
  218. package/src/panels.ts +275 -0
  219. package/src/pin.ts +68 -0
  220. package/src/plugin.test.ts +50 -0
  221. package/src/plugin.ts +116 -0
  222. package/src/query.ts +160 -0
  223. package/src/schema/dashboard.gen.ts +1289 -0
  224. package/src/schema/gauge.gen.ts +64 -0
  225. package/src/schema/heatmap.gen.ts +321 -0
  226. package/src/schema/index.ts +17 -0
  227. package/src/schema/logs.gen.ts +34 -0
  228. package/src/schema/loki.gen.ts +77 -0
  229. package/src/schema/prometheus.gen.ts +181 -0
  230. package/src/schema/stat.gen.ts +86 -0
  231. package/src/schema/table.gen.ts +334 -0
  232. package/src/schema/tempo.gen.ts +146 -0
  233. package/src/schema/text.gen.ts +22 -0
  234. package/src/schema/timeseries.gen.ts +208 -0
  235. package/src/schema-validate.ts +143 -0
  236. package/src/schema.test.ts +76 -0
  237. package/src/serializer.test.ts +170 -0
  238. package/src/serializer.ts +37 -0
  239. package/src/skill-defs.ts +31 -0
  240. package/src/skills/chant-grafana-provisioning.md +42 -0
  241. package/src/skills/chant-grafana.md +93 -0
  242. package/src/spec/fetch-cli.ts +27 -0
  243. package/src/spec/schemas/dashboard.jsonschema.json +1901 -0
  244. package/src/spec/schemas/gauge.jsonschema.json +114 -0
  245. package/src/spec/schemas/heatmap.jsonschema.json +480 -0
  246. package/src/spec/schemas/logs.jsonschema.json +94 -0
  247. package/src/spec/schemas/loki.jsonschema.json +118 -0
  248. package/src/spec/schemas/prometheus.jsonschema.json +276 -0
  249. package/src/spec/schemas/stat.jsonschema.json +163 -0
  250. package/src/spec/schemas/table.jsonschema.json +751 -0
  251. package/src/spec/schemas/tempo.jsonschema.json +225 -0
  252. package/src/spec/schemas/text.jsonschema.json +72 -0
  253. package/src/spec/schemas/timeseries.jsonschema.json +471 -0
  254. package/src/spec/schemas.ts +56 -0
  255. package/src/util.ts +43 -0
  256. package/src/validate-cli.ts +7 -0
  257. package/src/validate-output.ts +380 -0
  258. package/src/validate.ts +108 -0
  259. package/src/variables.ts +161 -0
@@ -0,0 +1,114 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {
4
+ "Options": {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "showThresholdLabels",
9
+ "showThresholdMarkers",
10
+ "sizing",
11
+ "minVizWidth",
12
+ "reduceOptions",
13
+ "minVizHeight",
14
+ "orientation"
15
+ ],
16
+ "properties": {
17
+ "showThresholdLabels": {
18
+ "type": "boolean",
19
+ "default": false
20
+ },
21
+ "showThresholdMarkers": {
22
+ "type": "boolean",
23
+ "default": true
24
+ },
25
+ "sizing": {
26
+ "$ref": "#/definitions/BarGaugeSizing",
27
+ "default": "auto"
28
+ },
29
+ "minVizWidth": {
30
+ "type": "integer",
31
+ "default": 75
32
+ },
33
+ "reduceOptions": {
34
+ "$ref": "#/definitions/ReduceDataOptions"
35
+ },
36
+ "text": {
37
+ "$ref": "#/definitions/VizTextDisplayOptions"
38
+ },
39
+ "minVizHeight": {
40
+ "type": "integer",
41
+ "default": 75
42
+ },
43
+ "orientation": {
44
+ "$ref": "#/definitions/VizOrientation"
45
+ }
46
+ }
47
+ },
48
+ "BarGaugeSizing": {
49
+ "enum": [
50
+ "auto",
51
+ "manual"
52
+ ],
53
+ "type": "string",
54
+ "description": "Allows for the bar gauge size to be set explicitly"
55
+ },
56
+ "ReduceDataOptions": {
57
+ "type": "object",
58
+ "additionalProperties": false,
59
+ "required": [
60
+ "calcs"
61
+ ],
62
+ "properties": {
63
+ "values": {
64
+ "type": "boolean",
65
+ "description": "If true show each row value"
66
+ },
67
+ "limit": {
68
+ "type": "number",
69
+ "description": "if showing all values limit"
70
+ },
71
+ "calcs": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string"
75
+ },
76
+ "description": "When !values, pick one value for the whole field"
77
+ },
78
+ "fields": {
79
+ "type": "string",
80
+ "description": "Which fields to show. By default this is only numeric fields"
81
+ }
82
+ },
83
+ "description": "TODO docs"
84
+ },
85
+ "VizTextDisplayOptions": {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "properties": {
89
+ "titleSize": {
90
+ "type": "number",
91
+ "description": "Explicit title text size"
92
+ },
93
+ "valueSize": {
94
+ "type": "number",
95
+ "description": "Explicit value text size"
96
+ },
97
+ "percentSize": {
98
+ "type": "number",
99
+ "description": "Explicit percent text size"
100
+ }
101
+ },
102
+ "description": "TODO docs"
103
+ },
104
+ "VizOrientation": {
105
+ "enum": [
106
+ "auto",
107
+ "vertical",
108
+ "horizontal"
109
+ ],
110
+ "type": "string",
111
+ "description": "TODO docs"
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,480 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {
4
+ "HeatmapColorMode": {
5
+ "enum": [
6
+ "opacity",
7
+ "scheme"
8
+ ],
9
+ "type": "string",
10
+ "description": "Controls the color mode of the heatmap"
11
+ },
12
+ "HeatmapColorScale": {
13
+ "enum": [
14
+ "linear",
15
+ "exponential"
16
+ ],
17
+ "type": "string",
18
+ "description": "Controls the color scale of the heatmap"
19
+ },
20
+ "HeatmapSelectionMode": {
21
+ "enum": [
22
+ "x",
23
+ "y",
24
+ "xy"
25
+ ],
26
+ "type": "string",
27
+ "description": "Controls which axis to allow selection on"
28
+ },
29
+ "HeatmapColorOptions": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": [
33
+ "scheme",
34
+ "fill",
35
+ "exponent",
36
+ "steps",
37
+ "reverse"
38
+ ],
39
+ "properties": {
40
+ "mode": {
41
+ "$ref": "#/definitions/HeatmapColorMode",
42
+ "description": "Sets the color mode"
43
+ },
44
+ "scheme": {
45
+ "type": "string",
46
+ "description": "Controls the color scheme used"
47
+ },
48
+ "fill": {
49
+ "type": "string",
50
+ "description": "Controls the color fill when in opacity mode"
51
+ },
52
+ "scale": {
53
+ "$ref": "#/definitions/HeatmapColorScale",
54
+ "description": "Controls the color scale"
55
+ },
56
+ "exponent": {
57
+ "type": "number",
58
+ "description": "Controls the exponent when scale is set to exponential"
59
+ },
60
+ "steps": {
61
+ "type": "integer",
62
+ "minimum": 2,
63
+ "maximum": 128,
64
+ "description": "Controls the number of color steps"
65
+ },
66
+ "reverse": {
67
+ "type": "boolean",
68
+ "description": "Reverses the color scheme"
69
+ },
70
+ "min": {
71
+ "type": "number",
72
+ "description": "Sets the minimum value for the color scale"
73
+ },
74
+ "max": {
75
+ "type": "number",
76
+ "description": "Sets the maximum value for the color scale"
77
+ }
78
+ },
79
+ "description": "Controls various color options"
80
+ },
81
+ "YAxisConfig": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "unit": {
86
+ "type": "string",
87
+ "description": "Sets the yAxis unit"
88
+ },
89
+ "reverse": {
90
+ "type": "boolean",
91
+ "description": "Reverses the yAxis"
92
+ },
93
+ "decimals": {
94
+ "type": "number",
95
+ "description": "Controls the number of decimals for yAxis values"
96
+ },
97
+ "min": {
98
+ "type": "number",
99
+ "description": "Sets the minimum value for the yAxis"
100
+ },
101
+ "axisPlacement": {
102
+ "$ref": "#/definitions/AxisPlacement"
103
+ },
104
+ "axisColorMode": {
105
+ "$ref": "#/definitions/AxisColorMode"
106
+ },
107
+ "axisLabel": {
108
+ "type": "string"
109
+ },
110
+ "axisWidth": {
111
+ "type": "number"
112
+ },
113
+ "axisSoftMin": {
114
+ "type": "number"
115
+ },
116
+ "axisSoftMax": {
117
+ "type": "number"
118
+ },
119
+ "axisGridShow": {
120
+ "type": "boolean"
121
+ },
122
+ "scaleDistribution": {
123
+ "$ref": "#/definitions/ScaleDistributionConfig"
124
+ },
125
+ "axisCenteredZero": {
126
+ "type": "boolean"
127
+ },
128
+ "max": {
129
+ "type": "number",
130
+ "description": "Sets the maximum value for the yAxis"
131
+ },
132
+ "axisBorderShow": {
133
+ "type": "boolean"
134
+ }
135
+ },
136
+ "description": "Configuration options for the yAxis"
137
+ },
138
+ "CellValues": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "properties": {
142
+ "unit": {
143
+ "type": "string",
144
+ "description": "Controls the cell value unit"
145
+ },
146
+ "decimals": {
147
+ "type": "number",
148
+ "description": "Controls the number of decimals for cell values"
149
+ }
150
+ },
151
+ "description": "Controls cell value options"
152
+ },
153
+ "FilterValueRange": {
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "properties": {
157
+ "le": {
158
+ "type": "number",
159
+ "description": "Sets the filter range to values less than or equal to the given value"
160
+ },
161
+ "ge": {
162
+ "type": "number",
163
+ "description": "Sets the filter range to values greater than or equal to the given value"
164
+ }
165
+ },
166
+ "description": "Controls the value filter range"
167
+ },
168
+ "HeatmapTooltip": {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": [
172
+ "mode"
173
+ ],
174
+ "properties": {
175
+ "mode": {
176
+ "$ref": "#/definitions/TooltipDisplayMode",
177
+ "description": "Controls how the tooltip is shown"
178
+ },
179
+ "maxHeight": {
180
+ "type": "number"
181
+ },
182
+ "maxWidth": {
183
+ "type": "number"
184
+ },
185
+ "yHistogram": {
186
+ "type": "boolean",
187
+ "description": "Controls if the tooltip shows a histogram of the y-axis values"
188
+ },
189
+ "showColorScale": {
190
+ "type": "boolean",
191
+ "description": "Controls if the tooltip shows a color scale in header"
192
+ }
193
+ },
194
+ "description": "Controls tooltip options"
195
+ },
196
+ "HeatmapLegend": {
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "required": [
200
+ "show"
201
+ ],
202
+ "properties": {
203
+ "show": {
204
+ "type": "boolean",
205
+ "description": "Controls if the legend is shown"
206
+ }
207
+ },
208
+ "description": "Controls legend options"
209
+ },
210
+ "ExemplarConfig": {
211
+ "type": "object",
212
+ "additionalProperties": false,
213
+ "required": [
214
+ "color"
215
+ ],
216
+ "properties": {
217
+ "color": {
218
+ "type": "string",
219
+ "description": "Sets the color of the exemplar markers"
220
+ }
221
+ },
222
+ "description": "Controls exemplar options"
223
+ },
224
+ "RowsHeatmapOptions": {
225
+ "type": "object",
226
+ "additionalProperties": false,
227
+ "properties": {
228
+ "value": {
229
+ "type": "string",
230
+ "description": "Sets the name of the cell when not calculating from data"
231
+ },
232
+ "layout": {
233
+ "$ref": "#/definitions/HeatmapCellLayout",
234
+ "description": "Controls tick alignment when not calculating from data"
235
+ }
236
+ },
237
+ "description": "Controls frame rows options"
238
+ },
239
+ "Options": {
240
+ "type": "object",
241
+ "additionalProperties": false,
242
+ "required": [
243
+ "color",
244
+ "showValue",
245
+ "yAxis",
246
+ "legend",
247
+ "tooltip",
248
+ "exemplars"
249
+ ],
250
+ "properties": {
251
+ "calculate": {
252
+ "type": "boolean",
253
+ "description": "Controls if the heatmap should be calculated from data",
254
+ "default": false
255
+ },
256
+ "calculation": {
257
+ "$ref": "#/definitions/HeatmapCalculationOptions",
258
+ "description": "Calculation options for the heatmap"
259
+ },
260
+ "color": {
261
+ "$ref": "#/definitions/HeatmapColorOptions",
262
+ "description": "Controls the color options",
263
+ "default": {
264
+ "exponent": 0.5,
265
+ "fill": "dark-orange",
266
+ "reverse": false,
267
+ "scheme": "Oranges",
268
+ "steps": 64
269
+ }
270
+ },
271
+ "filterValues": {
272
+ "$ref": "#/definitions/FilterValueRange",
273
+ "description": "Filters values between a given range",
274
+ "default": {
275
+ "le": 1e-9
276
+ }
277
+ },
278
+ "rowsFrame": {
279
+ "$ref": "#/definitions/RowsHeatmapOptions",
280
+ "description": "Controls tick alignment and value name when not calculating from data"
281
+ },
282
+ "showValue": {
283
+ "$ref": "#/definitions/VisibilityMode",
284
+ "description": "| *{\n\tlayout: ui.HeatmapCellLayout \u0026 \"auto\" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls the display of the value in the cell",
285
+ "default": "auto"
286
+ },
287
+ "cellGap": {
288
+ "type": "integer",
289
+ "minimum": 0,
290
+ "maximum": 25,
291
+ "description": "Controls gap between cells",
292
+ "default": 1
293
+ },
294
+ "cellRadius": {
295
+ "type": "number",
296
+ "description": "Controls cell radius"
297
+ },
298
+ "cellValues": {
299
+ "$ref": "#/definitions/CellValues",
300
+ "description": "Controls cell value unit"
301
+ },
302
+ "yAxis": {
303
+ "$ref": "#/definitions/YAxisConfig",
304
+ "description": "Controls yAxis placement"
305
+ },
306
+ "legend": {
307
+ "$ref": "#/definitions/HeatmapLegend",
308
+ "description": "| *{\n\taxisPlacement: ui.AxisPlacement \u0026 \"left\" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls legend options",
309
+ "default": {
310
+ "show": true
311
+ }
312
+ },
313
+ "tooltip": {
314
+ "$ref": "#/definitions/HeatmapTooltip",
315
+ "description": "Controls tooltip options"
316
+ },
317
+ "exemplars": {
318
+ "$ref": "#/definitions/ExemplarConfig",
319
+ "description": "Controls exemplar options",
320
+ "default": {
321
+ "color": "rgba(255,0,255,0.7)"
322
+ }
323
+ },
324
+ "selectionMode": {
325
+ "$ref": "#/definitions/HeatmapSelectionMode",
326
+ "description": "Controls which axis to allow selection on",
327
+ "default": "x"
328
+ }
329
+ }
330
+ },
331
+ "FieldConfig": {
332
+ "type": "object",
333
+ "additionalProperties": false,
334
+ "properties": {
335
+ "scaleDistribution": {
336
+ "$ref": "#/definitions/ScaleDistributionConfig"
337
+ },
338
+ "hideFrom": {
339
+ "$ref": "#/definitions/HideSeriesConfig"
340
+ }
341
+ }
342
+ },
343
+ "AxisPlacement": {
344
+ "enum": [
345
+ "auto",
346
+ "top",
347
+ "right",
348
+ "bottom",
349
+ "left",
350
+ "hidden"
351
+ ],
352
+ "type": "string",
353
+ "description": "TODO docs"
354
+ },
355
+ "AxisColorMode": {
356
+ "enum": [
357
+ "text",
358
+ "series"
359
+ ],
360
+ "type": "string",
361
+ "description": "TODO docs"
362
+ },
363
+ "ScaleDistributionConfig": {
364
+ "type": "object",
365
+ "additionalProperties": false,
366
+ "required": [
367
+ "type"
368
+ ],
369
+ "properties": {
370
+ "type": {
371
+ "$ref": "#/definitions/ScaleDistribution"
372
+ },
373
+ "log": {
374
+ "type": "number"
375
+ },
376
+ "linearThreshold": {
377
+ "type": "number"
378
+ }
379
+ },
380
+ "description": "TODO docs"
381
+ },
382
+ "TooltipDisplayMode": {
383
+ "enum": [
384
+ "single",
385
+ "multi",
386
+ "none"
387
+ ],
388
+ "type": "string",
389
+ "description": "TODO docs"
390
+ },
391
+ "HeatmapCellLayout": {
392
+ "enum": [
393
+ "le",
394
+ "ge",
395
+ "unknown",
396
+ "auto"
397
+ ],
398
+ "type": "string"
399
+ },
400
+ "HeatmapCalculationOptions": {
401
+ "type": "object",
402
+ "additionalProperties": false,
403
+ "properties": {
404
+ "xBuckets": {
405
+ "$ref": "#/definitions/HeatmapCalculationBucketConfig",
406
+ "description": "The number of buckets to use for the xAxis in the heatmap"
407
+ },
408
+ "yBuckets": {
409
+ "$ref": "#/definitions/HeatmapCalculationBucketConfig",
410
+ "description": "The number of buckets to use for the yAxis in the heatmap"
411
+ }
412
+ }
413
+ },
414
+ "VisibilityMode": {
415
+ "enum": [
416
+ "auto",
417
+ "never",
418
+ "always"
419
+ ],
420
+ "type": "string",
421
+ "description": "TODO docs"
422
+ },
423
+ "HideSeriesConfig": {
424
+ "type": "object",
425
+ "additionalProperties": false,
426
+ "required": [
427
+ "tooltip",
428
+ "legend",
429
+ "viz"
430
+ ],
431
+ "properties": {
432
+ "tooltip": {
433
+ "type": "boolean"
434
+ },
435
+ "legend": {
436
+ "type": "boolean"
437
+ },
438
+ "viz": {
439
+ "type": "boolean"
440
+ }
441
+ },
442
+ "description": "TODO docs"
443
+ },
444
+ "ScaleDistribution": {
445
+ "enum": [
446
+ "linear",
447
+ "log",
448
+ "ordinal",
449
+ "symlog"
450
+ ],
451
+ "type": "string",
452
+ "description": "TODO docs"
453
+ },
454
+ "HeatmapCalculationBucketConfig": {
455
+ "type": "object",
456
+ "additionalProperties": false,
457
+ "properties": {
458
+ "mode": {
459
+ "$ref": "#/definitions/HeatmapCalculationMode",
460
+ "description": "Sets the bucket calculation mode"
461
+ },
462
+ "value": {
463
+ "type": "string",
464
+ "description": "The number of buckets to use for the axis in the heatmap"
465
+ },
466
+ "scale": {
467
+ "$ref": "#/definitions/ScaleDistributionConfig",
468
+ "description": "Controls the scale of the buckets"
469
+ }
470
+ }
471
+ },
472
+ "HeatmapCalculationMode": {
473
+ "enum": [
474
+ "size",
475
+ "count"
476
+ ],
477
+ "type": "string"
478
+ }
479
+ }
480
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {
4
+ "Options": {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "showLabels",
9
+ "showCommonLabels",
10
+ "showTime",
11
+ "showLogContextToggle",
12
+ "wrapLogMessage",
13
+ "prettifyLogMessage",
14
+ "enableLogDetails",
15
+ "sortOrder",
16
+ "dedupStrategy"
17
+ ],
18
+ "properties": {
19
+ "showLabels": {
20
+ "type": "boolean"
21
+ },
22
+ "showCommonLabels": {
23
+ "type": "boolean"
24
+ },
25
+ "showTime": {
26
+ "type": "boolean"
27
+ },
28
+ "showLogContextToggle": {
29
+ "type": "boolean"
30
+ },
31
+ "wrapLogMessage": {
32
+ "type": "boolean"
33
+ },
34
+ "prettifyLogMessage": {
35
+ "type": "boolean"
36
+ },
37
+ "enableLogDetails": {
38
+ "type": "boolean"
39
+ },
40
+ "sortOrder": {
41
+ "$ref": "#/definitions/LogsSortOrder"
42
+ },
43
+ "dedupStrategy": {
44
+ "$ref": "#/definitions/LogsDedupStrategy"
45
+ },
46
+ "enableInfiniteScrolling": {
47
+ "type": "boolean"
48
+ },
49
+ "showControls": {
50
+ "type": "boolean",
51
+ "description": "Display controls to jump to the last or first log line, and filters by log level."
52
+ },
53
+ "showFieldSelector": {
54
+ "type": "boolean",
55
+ "description": "Show a component to manage the displayed fields from the logs."
56
+ },
57
+ "syntaxHighlighting": {
58
+ "type": "boolean",
59
+ "description": "Use a predefined coloring scheme to highlight relevant parts of the log lines."
60
+ },
61
+ "fontSize": {
62
+ "enum": [
63
+ "default",
64
+ "small"
65
+ ],
66
+ "type": "string"
67
+ },
68
+ "detailsMode": {
69
+ "enum": [
70
+ "inline",
71
+ "sidebar"
72
+ ],
73
+ "type": "string"
74
+ }
75
+ }
76
+ },
77
+ "LogsSortOrder": {
78
+ "enum": [
79
+ "Descending",
80
+ "Ascending"
81
+ ],
82
+ "type": "string"
83
+ },
84
+ "LogsDedupStrategy": {
85
+ "enum": [
86
+ "none",
87
+ "exact",
88
+ "numbers",
89
+ "signature"
90
+ ],
91
+ "type": "string"
92
+ }
93
+ }
94
+ }