@oneuptime/common 10.0.38 → 10.0.40

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 (294) hide show
  1. package/Models/AnalyticsModels/Index.ts +4 -0
  2. package/Models/AnalyticsModels/Profile.ts +687 -0
  3. package/Models/AnalyticsModels/ProfileSample.ts +547 -0
  4. package/Models/DatabaseModels/Dashboard.ts +357 -0
  5. package/Models/DatabaseModels/DashboardDomain.ts +658 -0
  6. package/Models/DatabaseModels/Index.ts +2 -0
  7. package/Models/DatabaseModels/StatusPage.ts +41 -0
  8. package/Server/API/DashboardAPI.ts +408 -0
  9. package/Server/API/DashboardDomainAPI.ts +235 -0
  10. package/Server/API/StatusPageAPI.ts +36 -2
  11. package/Server/API/TelemetryAPI.ts +393 -0
  12. package/Server/EnvironmentConfig.ts +12 -0
  13. package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.ts +97 -0
  14. package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.ts +17 -0
  15. package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.ts +50 -0
  16. package/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.ts +59 -0
  17. package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +8 -0
  18. package/Server/Middleware/UserAuthorization.ts +96 -1
  19. package/Server/Services/DashboardDomainService.ts +647 -0
  20. package/Server/Services/DashboardService.ts +174 -3
  21. package/Server/Services/IncidentService.ts +295 -50
  22. package/Server/Services/IncidentStateTimelineService.ts +1 -0
  23. package/Server/Services/Index.ts +6 -0
  24. package/Server/Services/MonitorService.ts +5 -0
  25. package/Server/Services/ProfileAggregationService.ts +559 -0
  26. package/Server/Services/ProfileSampleService.ts +11 -0
  27. package/Server/Services/ProfileService.ts +11 -0
  28. package/Server/Services/TelemetryUsageBillingService.ts +77 -3
  29. package/Server/Services/WorkspaceNotificationSummaryService.ts +15 -1
  30. package/Server/Types/Billing/MeteredPlan/AllMeteredPlans.ts +9 -0
  31. package/Server/Types/Workflow/Components/Conditions/IfElse.ts +68 -21
  32. package/Server/Utils/Cookie.ts +48 -0
  33. package/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.ts +34 -0
  34. package/Server/Utils/Monitor/DataToProcess.ts +3 -1
  35. package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +299 -0
  36. package/Server/Utils/Profile/PprofEncoder.ts +225 -0
  37. package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +53 -16
  38. package/Server/Utils/Workspace/Slack/Slack.ts +26 -6
  39. package/ServiceRoute.ts +2 -0
  40. package/Types/AnalyticsDatabase/AnalyticsTableName.ts +2 -0
  41. package/Types/CookieName.ts +1 -0
  42. package/Types/Dashboard/Chart/ChartType.ts +5 -0
  43. package/Types/Dashboard/DashboardComponentType.ts +4 -0
  44. package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +10 -0
  45. package/Types/Dashboard/DashboardComponents/DashboardChartComponent.ts +1 -2
  46. package/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.ts +17 -0
  47. package/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.ts +15 -0
  48. package/Types/Dashboard/DashboardComponents/DashboardTableComponent.ts +14 -0
  49. package/Types/Dashboard/DashboardComponents/DashboardTextComponent.ts +1 -0
  50. package/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.ts +13 -0
  51. package/Types/Dashboard/DashboardComponents/DashboardValueComponent.ts +2 -0
  52. package/Types/Dashboard/DashboardTemplates.ts +964 -0
  53. package/Types/Dashboard/DashboardVariable.ts +23 -0
  54. package/Types/Dashboard/DashboardViewConfig.ts +59 -0
  55. package/Types/Dashboard/MasterPassword.ts +10 -0
  56. package/Types/Icon/IconProp.ts +1 -0
  57. package/Types/Incident/IncidentMetricType.ts +3 -0
  58. package/Types/MeteredPlan/ProductType.ts +1 -0
  59. package/Types/Metrics/MetricQueryConfigData.ts +3 -0
  60. package/Types/Monitor/CriteriaFilter.ts +3 -0
  61. package/Types/Monitor/KubernetesAlertTemplates.ts +78 -7
  62. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +20 -0
  63. package/Types/Monitor/MonitorStep.ts +25 -0
  64. package/Types/Monitor/MonitorStepProfileMonitor.ts +96 -0
  65. package/Types/Monitor/MonitorType.ts +11 -0
  66. package/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.ts +12 -0
  67. package/Types/Permission.ts +87 -0
  68. package/Types/Telemetry/TelemetryType.ts +1 -0
  69. package/Types/Workflow/Component.ts +1 -0
  70. package/Types/Workflow/Components/Condition.ts +24 -0
  71. package/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.ts +1 -0
  72. package/UI/Components/Button/Button.tsx +1 -1
  73. package/UI/Components/Card/Card.tsx +8 -4
  74. package/UI/Components/Charts/Area/AreaChart.tsx +4 -0
  75. package/UI/Components/Charts/Bar/BarChart.tsx +4 -0
  76. package/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.tsx +26 -0
  77. package/UI/Components/Charts/ChartLibrary/BarChart/BarChart.tsx +26 -0
  78. package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +26 -0
  79. package/UI/Components/Charts/Line/LineChart.tsx +4 -0
  80. package/UI/Components/Charts/Types/ReferenceLineProps.ts +6 -0
  81. package/UI/Components/Icon/Icon.tsx +33 -0
  82. package/UI/Components/ModelTable/BaseModelTable.tsx +13 -10
  83. package/UI/Components/MoreMenu/MoreMenu.tsx +15 -2
  84. package/UI/Components/MoreMenu/MoreMenuItem.tsx +4 -4
  85. package/UI/Components/Workflow/Component.tsx +450 -209
  86. package/UI/Components/Workflow/ComponentPortViewer.tsx +57 -20
  87. package/UI/Components/Workflow/ComponentReturnValueViewer.tsx +65 -25
  88. package/UI/Components/Workflow/ComponentSettingsModal.tsx +202 -37
  89. package/UI/Components/Workflow/ComponentsModal.tsx +180 -93
  90. package/UI/Components/Workflow/Utils.ts +32 -1
  91. package/UI/Components/Workflow/Workflow.tsx +105 -9
  92. package/UI/Config.ts +9 -0
  93. package/Utils/Dashboard/Components/DashboardChartComponent.ts +53 -22
  94. package/Utils/Dashboard/Components/DashboardGaugeComponent.ts +124 -0
  95. package/Utils/Dashboard/Components/DashboardLogStreamComponent.ts +110 -0
  96. package/Utils/Dashboard/Components/DashboardTableComponent.ts +86 -0
  97. package/Utils/Dashboard/Components/DashboardTextComponent.ts +32 -7
  98. package/Utils/Dashboard/Components/DashboardTraceListComponent.ts +86 -0
  99. package/Utils/Dashboard/Components/DashboardValueComponent.ts +39 -3
  100. package/Utils/Dashboard/Components/Index.ts +28 -0
  101. package/Utils/ValueFormatter.ts +170 -0
  102. package/build/dist/Models/AnalyticsModels/Index.js +4 -0
  103. package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
  104. package/build/dist/Models/AnalyticsModels/Profile.js +621 -0
  105. package/build/dist/Models/AnalyticsModels/Profile.js.map +1 -0
  106. package/build/dist/Models/AnalyticsModels/ProfileSample.js +497 -0
  107. package/build/dist/Models/AnalyticsModels/ProfileSample.js.map +1 -0
  108. package/build/dist/Models/DatabaseModels/Dashboard.js +365 -0
  109. package/build/dist/Models/DatabaseModels/Dashboard.js.map +1 -1
  110. package/build/dist/Models/DatabaseModels/DashboardDomain.js +691 -0
  111. package/build/dist/Models/DatabaseModels/DashboardDomain.js.map +1 -0
  112. package/build/dist/Models/DatabaseModels/Index.js +2 -0
  113. package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
  114. package/build/dist/Models/DatabaseModels/StatusPage.js +42 -0
  115. package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
  116. package/build/dist/Server/API/DashboardAPI.js +293 -0
  117. package/build/dist/Server/API/DashboardAPI.js.map +1 -0
  118. package/build/dist/Server/API/DashboardDomainAPI.js +124 -0
  119. package/build/dist/Server/API/DashboardDomainAPI.js.map +1 -0
  120. package/build/dist/Server/API/StatusPageAPI.js +26 -2
  121. package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
  122. package/build/dist/Server/API/TelemetryAPI.js +222 -0
  123. package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
  124. package/build/dist/Server/EnvironmentConfig.js +4 -0
  125. package/build/dist/Server/EnvironmentConfig.js.map +1 -1
  126. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js +40 -0
  127. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js.map +1 -0
  128. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js +12 -0
  129. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js.map +1 -0
  130. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js +23 -0
  131. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js.map +1 -0
  132. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js +26 -0
  133. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js.map +1 -0
  134. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +8 -0
  135. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
  136. package/build/dist/Server/Middleware/UserAuthorization.js +41 -0
  137. package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
  138. package/build/dist/Server/Services/DashboardDomainService.js +595 -0
  139. package/build/dist/Server/Services/DashboardDomainService.js.map +1 -0
  140. package/build/dist/Server/Services/DashboardService.js +117 -3
  141. package/build/dist/Server/Services/DashboardService.js.map +1 -1
  142. package/build/dist/Server/Services/IncidentService.js +231 -55
  143. package/build/dist/Server/Services/IncidentService.js.map +1 -1
  144. package/build/dist/Server/Services/IncidentStateTimelineService.js +1 -1
  145. package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
  146. package/build/dist/Server/Services/Index.js +6 -0
  147. package/build/dist/Server/Services/Index.js.map +1 -1
  148. package/build/dist/Server/Services/MonitorService.js +5 -2
  149. package/build/dist/Server/Services/MonitorService.js.map +1 -1
  150. package/build/dist/Server/Services/ProfileAggregationService.js +356 -0
  151. package/build/dist/Server/Services/ProfileAggregationService.js.map +1 -0
  152. package/build/dist/Server/Services/ProfileSampleService.js +9 -0
  153. package/build/dist/Server/Services/ProfileSampleService.js.map +1 -0
  154. package/build/dist/Server/Services/ProfileService.js +9 -0
  155. package/build/dist/Server/Services/ProfileService.js.map +1 -0
  156. package/build/dist/Server/Services/TelemetryUsageBillingService.js +61 -4
  157. package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
  158. package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js +13 -1
  159. package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js.map +1 -1
  160. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +8 -0
  161. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -1
  162. package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js +49 -19
  163. package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js.map +1 -1
  164. package/build/dist/Server/Utils/Cookie.js +36 -0
  165. package/build/dist/Server/Utils/Cookie.js.map +1 -1
  166. package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js +34 -0
  167. package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js.map +1 -0
  168. package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +173 -0
  169. package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
  170. package/build/dist/Server/Utils/Profile/PprofEncoder.js +129 -0
  171. package/build/dist/Server/Utils/Profile/PprofEncoder.js.map +1 -0
  172. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +36 -14
  173. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
  174. package/build/dist/Server/Utils/Workspace/Slack/Slack.js +23 -6
  175. package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
  176. package/build/dist/ServiceRoute.js +1 -0
  177. package/build/dist/ServiceRoute.js.map +1 -1
  178. package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js +2 -0
  179. package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js.map +1 -1
  180. package/build/dist/Types/CookieName.js +1 -0
  181. package/build/dist/Types/CookieName.js.map +1 -1
  182. package/build/dist/Types/Dashboard/Chart/ChartType.js +5 -0
  183. package/build/dist/Types/Dashboard/Chart/ChartType.js.map +1 -1
  184. package/build/dist/Types/Dashboard/DashboardComponentType.js +4 -0
  185. package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
  186. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +1 -0
  187. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
  188. package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js +2 -0
  189. package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js.map +1 -0
  190. package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js +2 -0
  191. package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js.map +1 -0
  192. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js +2 -0
  193. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js.map +1 -0
  194. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js +2 -0
  195. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js.map +1 -0
  196. package/build/dist/Types/Dashboard/DashboardTemplates.js +853 -0
  197. package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -0
  198. package/build/dist/Types/Dashboard/DashboardVariable.js +7 -0
  199. package/build/dist/Types/Dashboard/DashboardVariable.js.map +1 -0
  200. package/build/dist/Types/Dashboard/DashboardViewConfig.js +50 -1
  201. package/build/dist/Types/Dashboard/DashboardViewConfig.js.map +1 -1
  202. package/build/dist/Types/Dashboard/MasterPassword.js +5 -0
  203. package/build/dist/Types/Dashboard/MasterPassword.js.map +1 -0
  204. package/build/dist/Types/Icon/IconProp.js +1 -0
  205. package/build/dist/Types/Icon/IconProp.js.map +1 -1
  206. package/build/dist/Types/Incident/IncidentMetricType.js +3 -0
  207. package/build/dist/Types/Incident/IncidentMetricType.js.map +1 -1
  208. package/build/dist/Types/MeteredPlan/ProductType.js +1 -0
  209. package/build/dist/Types/MeteredPlan/ProductType.js.map +1 -1
  210. package/build/dist/Types/Metrics/MetricQueryConfigData.js +1 -0
  211. package/build/dist/Types/Metrics/MetricQueryConfigData.js.map +1 -1
  212. package/build/dist/Types/Monitor/CriteriaFilter.js +2 -0
  213. package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
  214. package/build/dist/Types/Monitor/KubernetesAlertTemplates.js +58 -7
  215. package/build/dist/Types/Monitor/KubernetesAlertTemplates.js.map +1 -1
  216. package/build/dist/Types/Monitor/MonitorStep.js +15 -0
  217. package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
  218. package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js +59 -0
  219. package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js.map +1 -0
  220. package/build/dist/Types/Monitor/MonitorType.js +10 -0
  221. package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
  222. package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js +2 -0
  223. package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js.map +1 -0
  224. package/build/dist/Types/Permission.js +75 -0
  225. package/build/dist/Types/Permission.js.map +1 -1
  226. package/build/dist/Types/Telemetry/TelemetryType.js +1 -0
  227. package/build/dist/Types/Telemetry/TelemetryType.js.map +1 -1
  228. package/build/dist/Types/Workflow/Component.js +1 -0
  229. package/build/dist/Types/Workflow/Component.js.map +1 -1
  230. package/build/dist/Types/Workflow/Components/Condition.js +24 -0
  231. package/build/dist/Types/Workflow/Components/Condition.js.map +1 -1
  232. package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js +1 -0
  233. package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js.map +1 -1
  234. package/build/dist/UI/Components/Button/Button.js +1 -1
  235. package/build/dist/UI/Components/Button/Button.js.map +1 -1
  236. package/build/dist/UI/Components/Card/Card.js +4 -4
  237. package/build/dist/UI/Components/Card/Card.js.map +1 -1
  238. package/build/dist/UI/Components/Charts/Area/AreaChart.js +1 -1
  239. package/build/dist/UI/Components/Charts/Area/AreaChart.js.map +1 -1
  240. package/build/dist/UI/Components/Charts/Bar/BarChart.js +1 -1
  241. package/build/dist/UI/Components/Charts/Bar/BarChart.js.map +1 -1
  242. package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js +5 -2
  243. package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js.map +1 -1
  244. package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js +5 -2
  245. package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js.map +1 -1
  246. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +6 -3
  247. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -1
  248. package/build/dist/UI/Components/Charts/Line/LineChart.js +1 -1
  249. package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
  250. package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js +2 -0
  251. package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js.map +1 -0
  252. package/build/dist/UI/Components/Icon/Icon.js +11 -0
  253. package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
  254. package/build/dist/UI/Components/ModelTable/BaseModelTable.js +12 -9
  255. package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
  256. package/build/dist/UI/Components/MoreMenu/MoreMenu.js +8 -2
  257. package/build/dist/UI/Components/MoreMenu/MoreMenu.js.map +1 -1
  258. package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js +4 -4
  259. package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js.map +1 -1
  260. package/build/dist/UI/Components/Workflow/Component.js +311 -143
  261. package/build/dist/UI/Components/Workflow/Component.js.map +1 -1
  262. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js +44 -18
  263. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js.map +1 -1
  264. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js +48 -22
  265. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js.map +1 -1
  266. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js +127 -21
  267. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js.map +1 -1
  268. package/build/dist/UI/Components/Workflow/ComponentsModal.js +107 -52
  269. package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -1
  270. package/build/dist/UI/Components/Workflow/Utils.js +28 -1
  271. package/build/dist/UI/Components/Workflow/Utils.js.map +1 -1
  272. package/build/dist/UI/Components/Workflow/Workflow.js +87 -12
  273. package/build/dist/UI/Components/Workflow/Workflow.js.map +1 -1
  274. package/build/dist/UI/Config.js +3 -1
  275. package/build/dist/UI/Config.js.map +1 -1
  276. package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js +50 -21
  277. package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js.map +1 -1
  278. package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js +104 -0
  279. package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js.map +1 -0
  280. package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js +91 -0
  281. package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js.map +1 -0
  282. package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js +70 -0
  283. package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js.map +1 -0
  284. package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js +28 -7
  285. package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js.map +1 -1
  286. package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js +70 -0
  287. package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js.map +1 -0
  288. package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js +34 -3
  289. package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js.map +1 -1
  290. package/build/dist/Utils/Dashboard/Components/Index.js +16 -0
  291. package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
  292. package/build/dist/Utils/ValueFormatter.js +132 -0
  293. package/build/dist/Utils/ValueFormatter.js.map +1 -0
  294. package/package.json +1 -1
@@ -4,11 +4,25 @@ import ObjectID from "../../../Types/ObjectID";
4
4
  import DashboardBaseComponentUtil from "./DashboardBaseComponent";
5
5
  import {
6
6
  ComponentArgument,
7
+ ComponentArgumentSection,
7
8
  ComponentInputType,
8
9
  } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
9
10
  import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
10
11
  import DashboardChartType from "../../../Types/Dashboard/Chart/ChartType";
11
12
 
13
+ const DataSourceSection: ComponentArgumentSection = {
14
+ name: "Data Source",
15
+ description: "Configure what data to display on the chart",
16
+ order: 1,
17
+ };
18
+
19
+ const DisplaySection: ComponentArgumentSection = {
20
+ name: "Display Options",
21
+ description: "Customize the chart appearance",
22
+ order: 2,
23
+ defaultCollapsed: true,
24
+ };
25
+
12
26
  export default class DashboardChartComponentUtil extends DashboardBaseComponentUtil {
13
27
  public static override getDefaultComponent(): DashboardChartComponent {
14
28
  return {
@@ -23,6 +37,13 @@ export default class DashboardChartComponentUtil extends DashboardBaseComponentU
23
37
  minWidthInDashboardUnits: 6,
24
38
  arguments: {
25
39
  metricQueryConfig: {
40
+ metricAliasData: {
41
+ metricVariable: "a",
42
+ title: undefined,
43
+ description: undefined,
44
+ legend: undefined,
45
+ legendUnit: undefined,
46
+ },
26
47
  metricQueryData: {
27
48
  filterData: {},
28
49
  groupBy: undefined,
@@ -42,10 +63,11 @@ export default class DashboardChartComponentUtil extends DashboardBaseComponentU
42
63
 
43
64
  componentArguments.push({
44
65
  name: "Chart Type",
45
- description: "Select the type of chart to display",
66
+ description: "How the data will be visualized",
46
67
  required: true,
47
68
  type: ComponentInputType.Dropdown,
48
69
  id: "chartType",
70
+ section: DataSourceSection,
49
71
  dropdownOptions: [
50
72
  {
51
73
  label: "Line Chart",
@@ -55,47 +77,56 @@ export default class DashboardChartComponentUtil extends DashboardBaseComponentU
55
77
  label: "Bar Chart",
56
78
  value: DashboardChartType.Bar,
57
79
  },
80
+ {
81
+ label: "Area Chart",
82
+ value: DashboardChartType.Area,
83
+ },
84
+ {
85
+ label: "Stacked Area Chart",
86
+ value: DashboardChartType.StackedArea,
87
+ },
88
+ {
89
+ label: "Pie Chart",
90
+ value: DashboardChartType.Pie,
91
+ },
58
92
  ],
59
93
  });
60
94
 
61
95
  componentArguments.push({
62
- name: "Chart Configuration",
63
- description: "Please select the metrics to display on the chart",
96
+ name: "Metric Query",
97
+ description: "Select the metric and filters for this chart",
64
98
  required: true,
65
99
  type: ComponentInputType.MetricsQueryConfig,
66
100
  id: "metricQueryConfig",
101
+ section: DataSourceSection,
67
102
  });
68
103
 
69
104
  componentArguments.push({
70
- name: "Chart Title",
71
- description: "The title of the chart",
105
+ name: "Additional Queries",
106
+ description: "Overlay more metrics on the same chart",
72
107
  required: false,
73
- type: ComponentInputType.Text,
74
- id: "chartTitle",
108
+ type: ComponentInputType.MetricsQueryConfigs,
109
+ id: "metricQueryConfigs",
110
+ isAdvanced: true,
111
+ section: DataSourceSection,
75
112
  });
76
113
 
77
114
  componentArguments.push({
78
- name: "Chart Description",
79
- description: "Description of the chart",
80
- required: false,
81
- type: ComponentInputType.LongText,
82
- id: "chartDescription",
83
- });
84
-
85
- componentArguments.push({
86
- name: "Legend Text",
87
- description: "The text to display in the legend",
115
+ name: "Title",
116
+ description: "Displayed above the chart",
88
117
  required: false,
89
118
  type: ComponentInputType.Text,
90
- id: "legendText",
119
+ id: "chartTitle",
120
+ section: DisplaySection,
91
121
  });
92
122
 
93
123
  componentArguments.push({
94
- name: "Legend Unit",
95
- description: "The unit to display in the legend",
124
+ name: "Description",
125
+ description: "Subtitle shown below the title",
96
126
  required: false,
97
- type: ComponentInputType.Text,
98
- id: "legendUnit",
127
+ type: ComponentInputType.LongText,
128
+ id: "chartDescription",
129
+ section: DisplaySection,
99
130
  });
100
131
 
101
132
  return componentArguments;
@@ -0,0 +1,124 @@
1
+ import DashboardGaugeComponent from "../../../Types/Dashboard/DashboardComponents/DashboardGaugeComponent";
2
+ import { ObjectType } from "../../../Types/JSON";
3
+ import ObjectID from "../../../Types/ObjectID";
4
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent";
5
+ import {
6
+ ComponentArgument,
7
+ ComponentArgumentSection,
8
+ ComponentInputType,
9
+ } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
10
+ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
11
+
12
+ const DataSourceSection: ComponentArgumentSection = {
13
+ name: "Data Source",
14
+ description: "Configure which metric to display on the gauge",
15
+ order: 1,
16
+ };
17
+
18
+ const DisplaySection: ComponentArgumentSection = {
19
+ name: "Display Options",
20
+ description: "Customize the gauge range and appearance",
21
+ order: 2,
22
+ defaultCollapsed: true,
23
+ };
24
+
25
+ const ThresholdsSection: ComponentArgumentSection = {
26
+ name: "Thresholds",
27
+ description: "Set warning and critical levels",
28
+ order: 3,
29
+ defaultCollapsed: true,
30
+ };
31
+
32
+ export default class DashboardGaugeComponentUtil extends DashboardBaseComponentUtil {
33
+ public static override getDefaultComponent(): DashboardGaugeComponent {
34
+ return {
35
+ _type: ObjectType.DashboardComponent,
36
+ componentType: DashboardComponentType.Gauge,
37
+ widthInDashboardUnits: 3,
38
+ heightInDashboardUnits: 3,
39
+ topInDashboardUnits: 0,
40
+ leftInDashboardUnits: 0,
41
+ componentId: ObjectID.generate(),
42
+ minHeightInDashboardUnits: 2,
43
+ minWidthInDashboardUnits: 2,
44
+ arguments: {
45
+ metricQueryConfig: {
46
+ metricQueryData: {
47
+ filterData: {},
48
+ groupBy: undefined,
49
+ },
50
+ },
51
+ minValue: 0,
52
+ maxValue: 100,
53
+ },
54
+ };
55
+ }
56
+
57
+ public static override getComponentConfigArguments(): Array<
58
+ ComponentArgument<DashboardGaugeComponent>
59
+ > {
60
+ const componentArguments: Array<
61
+ ComponentArgument<DashboardGaugeComponent>
62
+ > = [];
63
+
64
+ componentArguments.push({
65
+ name: "Metric Query",
66
+ description: "Select the metric to display on the gauge",
67
+ required: true,
68
+ type: ComponentInputType.MetricsQueryConfig,
69
+ id: "metricQueryConfig",
70
+ section: DataSourceSection,
71
+ });
72
+
73
+ componentArguments.push({
74
+ name: "Title",
75
+ description: "Label shown above the gauge",
76
+ required: false,
77
+ type: ComponentInputType.Text,
78
+ id: "gaugeTitle",
79
+ section: DisplaySection,
80
+ });
81
+
82
+ componentArguments.push({
83
+ name: "Min Value",
84
+ description: "Left end of the gauge scale",
85
+ required: false,
86
+ type: ComponentInputType.Number,
87
+ id: "minValue",
88
+ placeholder: "0",
89
+ section: DisplaySection,
90
+ });
91
+
92
+ componentArguments.push({
93
+ name: "Max Value",
94
+ description: "Right end of the gauge scale",
95
+ required: false,
96
+ type: ComponentInputType.Number,
97
+ id: "maxValue",
98
+ placeholder: "100",
99
+ section: DisplaySection,
100
+ });
101
+
102
+ componentArguments.push({
103
+ name: "Warning Threshold",
104
+ description: "Yellow zone starts at this value",
105
+ required: false,
106
+ type: ComponentInputType.Number,
107
+ id: "warningThreshold",
108
+ isAdvanced: true,
109
+ section: ThresholdsSection,
110
+ });
111
+
112
+ componentArguments.push({
113
+ name: "Critical Threshold",
114
+ description: "Red zone starts at this value",
115
+ required: false,
116
+ type: ComponentInputType.Number,
117
+ id: "criticalThreshold",
118
+ isAdvanced: true,
119
+ section: ThresholdsSection,
120
+ });
121
+
122
+ return componentArguments;
123
+ }
124
+ }
@@ -0,0 +1,110 @@
1
+ import DashboardLogStreamComponent from "../../../Types/Dashboard/DashboardComponents/DashboardLogStreamComponent";
2
+ import { ObjectType } from "../../../Types/JSON";
3
+ import ObjectID from "../../../Types/ObjectID";
4
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent";
5
+ import {
6
+ ComponentArgument,
7
+ ComponentArgumentSection,
8
+ ComponentInputType,
9
+ } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
10
+ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
11
+
12
+ const DisplaySection: ComponentArgumentSection = {
13
+ name: "Display Options",
14
+ description: "Configure the widget title and row limit",
15
+ order: 1,
16
+ };
17
+
18
+ const FiltersSection: ComponentArgumentSection = {
19
+ name: "Filters",
20
+ description: "Narrow down which logs are shown",
21
+ order: 2,
22
+ defaultCollapsed: true,
23
+ };
24
+
25
+ export default class DashboardLogStreamComponentUtil extends DashboardBaseComponentUtil {
26
+ public static override getDefaultComponent(): DashboardLogStreamComponent {
27
+ return {
28
+ _type: ObjectType.DashboardComponent,
29
+ componentType: DashboardComponentType.LogStream,
30
+ widthInDashboardUnits: 6,
31
+ heightInDashboardUnits: 4,
32
+ topInDashboardUnits: 0,
33
+ leftInDashboardUnits: 0,
34
+ componentId: ObjectID.generate(),
35
+ minHeightInDashboardUnits: 3,
36
+ minWidthInDashboardUnits: 6,
37
+ arguments: {
38
+ maxRows: 50,
39
+ },
40
+ };
41
+ }
42
+
43
+ public static override getComponentConfigArguments(): Array<
44
+ ComponentArgument<DashboardLogStreamComponent>
45
+ > {
46
+ const componentArguments: Array<
47
+ ComponentArgument<DashboardLogStreamComponent>
48
+ > = [];
49
+
50
+ componentArguments.push({
51
+ name: "Title",
52
+ description: "Header shown above the log stream",
53
+ required: false,
54
+ type: ComponentInputType.Text,
55
+ id: "title",
56
+ section: DisplaySection,
57
+ });
58
+
59
+ componentArguments.push({
60
+ name: "Max Rows",
61
+ description: "Maximum number of log entries to show",
62
+ required: false,
63
+ type: ComponentInputType.Number,
64
+ id: "maxRows",
65
+ placeholder: "50",
66
+ section: DisplaySection,
67
+ });
68
+
69
+ componentArguments.push({
70
+ name: "Severity",
71
+ description: "Show only logs of this severity level",
72
+ required: false,
73
+ type: ComponentInputType.Dropdown,
74
+ id: "severityFilter",
75
+ section: FiltersSection,
76
+ dropdownOptions: [
77
+ { label: "All", value: "" },
78
+ { label: "Trace", value: "Trace" },
79
+ { label: "Debug", value: "Debug" },
80
+ { label: "Information", value: "Information" },
81
+ { label: "Warning", value: "Warning" },
82
+ { label: "Error", value: "Error" },
83
+ { label: "Fatal", value: "Fatal" },
84
+ ],
85
+ });
86
+
87
+ componentArguments.push({
88
+ name: "Body Contains",
89
+ description: "Show only logs containing this text",
90
+ required: false,
91
+ type: ComponentInputType.Text,
92
+ id: "bodyContains",
93
+ placeholder: "Search text...",
94
+ section: FiltersSection,
95
+ });
96
+
97
+ componentArguments.push({
98
+ name: "Attribute Filters",
99
+ description:
100
+ "Filter by attributes, e.g. @k8s.pod.name:my-pod @http.status_code:500",
101
+ required: false,
102
+ type: ComponentInputType.LongText,
103
+ id: "attributeFilterQuery",
104
+ placeholder: "@key:value @another.key:value",
105
+ section: FiltersSection,
106
+ });
107
+
108
+ return componentArguments;
109
+ }
110
+ }
@@ -0,0 +1,86 @@
1
+ import DashboardTableComponent from "../../../Types/Dashboard/DashboardComponents/DashboardTableComponent";
2
+ import { ObjectType } from "../../../Types/JSON";
3
+ import ObjectID from "../../../Types/ObjectID";
4
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent";
5
+ import {
6
+ ComponentArgument,
7
+ ComponentArgumentSection,
8
+ ComponentInputType,
9
+ } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
10
+ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
11
+
12
+ const DataSourceSection: ComponentArgumentSection = {
13
+ name: "Data Source",
14
+ description: "Configure which metrics to display in the table",
15
+ order: 1,
16
+ };
17
+
18
+ const DisplaySection: ComponentArgumentSection = {
19
+ name: "Display Options",
20
+ description: "Customize the table appearance",
21
+ order: 2,
22
+ defaultCollapsed: true,
23
+ };
24
+
25
+ export default class DashboardTableComponentUtil extends DashboardBaseComponentUtil {
26
+ public static override getDefaultComponent(): DashboardTableComponent {
27
+ return {
28
+ _type: ObjectType.DashboardComponent,
29
+ componentType: DashboardComponentType.Table,
30
+ widthInDashboardUnits: 6,
31
+ heightInDashboardUnits: 4,
32
+ topInDashboardUnits: 0,
33
+ leftInDashboardUnits: 0,
34
+ componentId: ObjectID.generate(),
35
+ minHeightInDashboardUnits: 3,
36
+ minWidthInDashboardUnits: 4,
37
+ arguments: {
38
+ metricQueryConfig: {
39
+ metricQueryData: {
40
+ filterData: {},
41
+ groupBy: undefined,
42
+ },
43
+ },
44
+ maxRows: 20,
45
+ },
46
+ };
47
+ }
48
+
49
+ public static override getComponentConfigArguments(): Array<
50
+ ComponentArgument<DashboardTableComponent>
51
+ > {
52
+ const componentArguments: Array<
53
+ ComponentArgument<DashboardTableComponent>
54
+ > = [];
55
+
56
+ componentArguments.push({
57
+ name: "Metric Query",
58
+ description: "Select the metrics to display in the table",
59
+ required: true,
60
+ type: ComponentInputType.MetricsQueryConfig,
61
+ id: "metricQueryConfig",
62
+ section: DataSourceSection,
63
+ });
64
+
65
+ componentArguments.push({
66
+ name: "Title",
67
+ description: "Header shown above the table",
68
+ required: false,
69
+ type: ComponentInputType.Text,
70
+ id: "tableTitle",
71
+ section: DisplaySection,
72
+ });
73
+
74
+ componentArguments.push({
75
+ name: "Max Rows",
76
+ description: "Maximum number of rows to show",
77
+ required: false,
78
+ type: ComponentInputType.Number,
79
+ id: "maxRows",
80
+ placeholder: "20",
81
+ section: DisplaySection,
82
+ });
83
+
84
+ return componentArguments;
85
+ }
86
+ }
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  ComponentArgument,
3
+ ComponentArgumentSection,
3
4
  ComponentInputType,
4
5
  } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
5
6
  import DashboardTextComponent from "../../../Types/Dashboard/DashboardComponents/DashboardTextComponent";
@@ -8,6 +9,19 @@ import { ObjectType } from "../../../Types/JSON";
8
9
  import ObjectID from "../../../Types/ObjectID";
9
10
  import DashboardBaseComponentUtil from "./DashboardBaseComponent";
10
11
 
12
+ const ContentSection: ComponentArgumentSection = {
13
+ name: "Content",
14
+ description: "The text content to display",
15
+ order: 1,
16
+ };
17
+
18
+ const FormattingSection: ComponentArgumentSection = {
19
+ name: "Formatting",
20
+ description: "Text style options",
21
+ order: 2,
22
+ defaultCollapsed: true,
23
+ };
24
+
11
25
  export default class DashboardTextComponentUtil extends DashboardBaseComponentUtil {
12
26
  public static override getDefaultComponent(): DashboardTextComponent {
13
27
  return {
@@ -22,6 +36,7 @@ export default class DashboardTextComponentUtil extends DashboardBaseComponentUt
22
36
  isBold: false,
23
37
  isItalic: false,
24
38
  isUnderline: false,
39
+ isMarkdown: false,
25
40
  },
26
41
  componentId: ObjectID.generate(),
27
42
  minHeightInDashboardUnits: 1,
@@ -37,38 +52,48 @@ export default class DashboardTextComponentUtil extends DashboardBaseComponentUt
37
52
 
38
53
  componentArguments.push({
39
54
  name: "Text",
40
- description: "The text to display",
55
+ description: "The text to display in the widget",
41
56
  required: true,
42
57
  type: ComponentInputType.LongText,
43
58
  id: "text",
44
59
  placeholder: "Hello, World!",
60
+ section: ContentSection,
45
61
  });
46
62
 
47
63
  componentArguments.push({
48
64
  name: "Bold",
49
- description: "Whether the text should be bold",
65
+ description: "Make text bold",
50
66
  required: false,
51
67
  type: ComponentInputType.Boolean,
52
68
  id: "isBold",
53
- placeholder: "false",
69
+ section: FormattingSection,
54
70
  });
55
71
 
56
72
  componentArguments.push({
57
73
  name: "Italic",
58
- description: "Whether the text should be italic",
74
+ description: "Make text italic",
59
75
  required: false,
60
76
  type: ComponentInputType.Boolean,
61
77
  id: "isItalic",
62
- placeholder: "false",
78
+ section: FormattingSection,
63
79
  });
64
80
 
65
81
  componentArguments.push({
66
82
  name: "Underline",
67
- description: "Whether the text should be underlined",
83
+ description: "Underline the text",
68
84
  required: false,
69
85
  type: ComponentInputType.Boolean,
70
86
  id: "isUnderline",
71
- placeholder: "false",
87
+ section: FormattingSection,
88
+ });
89
+
90
+ componentArguments.push({
91
+ name: "Markdown",
92
+ description: "Render as markdown (headers, links, lists, code, tables)",
93
+ required: false,
94
+ type: ComponentInputType.Boolean,
95
+ id: "isMarkdown",
96
+ section: FormattingSection,
72
97
  });
73
98
 
74
99
  return componentArguments;
@@ -0,0 +1,86 @@
1
+ import DashboardTraceListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardTraceListComponent";
2
+ import { ObjectType } from "../../../Types/JSON";
3
+ import ObjectID from "../../../Types/ObjectID";
4
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent";
5
+ import {
6
+ ComponentArgument,
7
+ ComponentArgumentSection,
8
+ ComponentInputType,
9
+ } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
10
+ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
11
+
12
+ const DisplaySection: ComponentArgumentSection = {
13
+ name: "Display Options",
14
+ description: "Configure the widget title and row limit",
15
+ order: 1,
16
+ };
17
+
18
+ const FiltersSection: ComponentArgumentSection = {
19
+ name: "Filters",
20
+ description: "Narrow down which traces are shown",
21
+ order: 2,
22
+ defaultCollapsed: true,
23
+ };
24
+
25
+ export default class DashboardTraceListComponentUtil extends DashboardBaseComponentUtil {
26
+ public static override getDefaultComponent(): DashboardTraceListComponent {
27
+ return {
28
+ _type: ObjectType.DashboardComponent,
29
+ componentType: DashboardComponentType.TraceList,
30
+ widthInDashboardUnits: 6,
31
+ heightInDashboardUnits: 4,
32
+ topInDashboardUnits: 0,
33
+ leftInDashboardUnits: 0,
34
+ componentId: ObjectID.generate(),
35
+ minHeightInDashboardUnits: 3,
36
+ minWidthInDashboardUnits: 6,
37
+ arguments: {
38
+ maxRows: 50,
39
+ },
40
+ };
41
+ }
42
+
43
+ public static override getComponentConfigArguments(): Array<
44
+ ComponentArgument<DashboardTraceListComponent>
45
+ > {
46
+ const componentArguments: Array<
47
+ ComponentArgument<DashboardTraceListComponent>
48
+ > = [];
49
+
50
+ componentArguments.push({
51
+ name: "Title",
52
+ description: "Header shown above the trace list",
53
+ required: false,
54
+ type: ComponentInputType.Text,
55
+ id: "title",
56
+ section: DisplaySection,
57
+ });
58
+
59
+ componentArguments.push({
60
+ name: "Max Rows",
61
+ description: "Maximum number of traces to show",
62
+ required: false,
63
+ type: ComponentInputType.Number,
64
+ id: "maxRows",
65
+ placeholder: "50",
66
+ section: DisplaySection,
67
+ });
68
+
69
+ componentArguments.push({
70
+ name: "Status",
71
+ description: "Show only traces with this status",
72
+ required: false,
73
+ type: ComponentInputType.Dropdown,
74
+ id: "statusFilter",
75
+ section: FiltersSection,
76
+ dropdownOptions: [
77
+ { label: "All", value: "" },
78
+ { label: "Ok", value: "1" },
79
+ { label: "Error", value: "2" },
80
+ { label: "Unset", value: "0" },
81
+ ],
82
+ });
83
+
84
+ return componentArguments;
85
+ }
86
+ }
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  ComponentArgument,
3
+ ComponentArgumentSection,
3
4
  ComponentInputType,
4
5
  } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
5
6
  import DashboardValueComponent from "../../../Types/Dashboard/DashboardComponents/DashboardValueComponent";
@@ -8,6 +9,19 @@ import { ObjectType } from "../../../Types/JSON";
8
9
  import ObjectID from "../../../Types/ObjectID";
9
10
  import DashboardBaseComponentUtil from "./DashboardBaseComponent";
10
11
 
12
+ const DataSourceSection: ComponentArgumentSection = {
13
+ name: "Data Source",
14
+ description: "Configure which metric to display",
15
+ order: 1,
16
+ };
17
+
18
+ const ThresholdsSection: ComponentArgumentSection = {
19
+ name: "Thresholds",
20
+ description: "Set warning and critical levels",
21
+ order: 2,
22
+ defaultCollapsed: true,
23
+ };
24
+
11
25
  export default class DashboardValueComponentUtil extends DashboardBaseComponentUtil {
12
26
  public static override getDefaultComponent(): DashboardValueComponent {
13
27
  return {
@@ -41,18 +55,40 @@ export default class DashboardValueComponentUtil extends DashboardBaseComponentU
41
55
 
42
56
  componentArguments.push({
43
57
  name: "Title",
44
- description: "The title to display",
58
+ description: "Label shown above the value",
45
59
  required: false,
46
60
  type: ComponentInputType.Text,
47
61
  id: "title",
62
+ section: DataSourceSection,
48
63
  });
49
64
 
50
65
  componentArguments.push({
51
- name: "Value Configuration",
52
- description: "Please select the metric to display",
66
+ name: "Metric Query",
67
+ description: "Select the metric to display as a value",
53
68
  required: true,
54
69
  type: ComponentInputType.MetricsQueryConfig,
55
70
  id: "metricQueryConfig",
71
+ section: DataSourceSection,
72
+ });
73
+
74
+ componentArguments.push({
75
+ name: "Warning Threshold",
76
+ description: "Yellow background when value exceeds this",
77
+ required: false,
78
+ type: ComponentInputType.Number,
79
+ id: "warningThreshold",
80
+ isAdvanced: true,
81
+ section: ThresholdsSection,
82
+ });
83
+
84
+ componentArguments.push({
85
+ name: "Critical Threshold",
86
+ description: "Red background when value exceeds this",
87
+ required: false,
88
+ type: ComponentInputType.Number,
89
+ id: "criticalThreshold",
90
+ isAdvanced: true,
91
+ section: ThresholdsSection,
56
92
  });
57
93
 
58
94
  return componentArguments;