@oneuptime/common 10.0.39 → 10.0.41

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 (285) 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/Utils/Cookie.ts +48 -0
  32. package/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.ts +34 -0
  33. package/Server/Utils/Monitor/DataToProcess.ts +3 -1
  34. package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +299 -0
  35. package/Server/Utils/Profile/PprofEncoder.ts +225 -0
  36. package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +53 -16
  37. package/Server/Utils/Workspace/Slack/Slack.ts +26 -6
  38. package/ServiceRoute.ts +2 -0
  39. package/Tests/UI/Components/ComponentsModal.test.tsx +19 -15
  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/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.ts +1 -0
  70. package/UI/Components/Button/Button.tsx +1 -1
  71. package/UI/Components/Card/Card.tsx +8 -4
  72. package/UI/Components/Charts/Area/AreaChart.tsx +4 -0
  73. package/UI/Components/Charts/Bar/BarChart.tsx +4 -0
  74. package/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.tsx +26 -0
  75. package/UI/Components/Charts/ChartLibrary/BarChart/BarChart.tsx +26 -0
  76. package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +26 -0
  77. package/UI/Components/Charts/Line/LineChart.tsx +4 -0
  78. package/UI/Components/Charts/Types/ReferenceLineProps.ts +6 -0
  79. package/UI/Components/Icon/Icon.tsx +33 -0
  80. package/UI/Components/ModelTable/BaseModelTable.tsx +13 -10
  81. package/UI/Components/MoreMenu/MoreMenu.tsx +15 -2
  82. package/UI/Components/MoreMenu/MoreMenuItem.tsx +4 -4
  83. package/UI/Components/Workflow/Component.tsx +450 -209
  84. package/UI/Components/Workflow/ComponentPortViewer.tsx +57 -20
  85. package/UI/Components/Workflow/ComponentReturnValueViewer.tsx +65 -25
  86. package/UI/Components/Workflow/ComponentSettingsModal.tsx +202 -37
  87. package/UI/Components/Workflow/ComponentsModal.tsx +180 -93
  88. package/UI/Components/Workflow/Workflow.tsx +105 -9
  89. package/UI/Config.ts +9 -0
  90. package/Utils/Dashboard/Components/DashboardChartComponent.ts +53 -22
  91. package/Utils/Dashboard/Components/DashboardGaugeComponent.ts +124 -0
  92. package/Utils/Dashboard/Components/DashboardLogStreamComponent.ts +110 -0
  93. package/Utils/Dashboard/Components/DashboardTableComponent.ts +86 -0
  94. package/Utils/Dashboard/Components/DashboardTextComponent.ts +32 -7
  95. package/Utils/Dashboard/Components/DashboardTraceListComponent.ts +86 -0
  96. package/Utils/Dashboard/Components/DashboardValueComponent.ts +39 -3
  97. package/Utils/Dashboard/Components/Index.ts +28 -0
  98. package/Utils/ValueFormatter.ts +170 -0
  99. package/build/dist/Models/AnalyticsModels/Index.js +4 -0
  100. package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
  101. package/build/dist/Models/AnalyticsModels/Profile.js +621 -0
  102. package/build/dist/Models/AnalyticsModels/Profile.js.map +1 -0
  103. package/build/dist/Models/AnalyticsModels/ProfileSample.js +497 -0
  104. package/build/dist/Models/AnalyticsModels/ProfileSample.js.map +1 -0
  105. package/build/dist/Models/DatabaseModels/Dashboard.js +365 -0
  106. package/build/dist/Models/DatabaseModels/Dashboard.js.map +1 -1
  107. package/build/dist/Models/DatabaseModels/DashboardDomain.js +691 -0
  108. package/build/dist/Models/DatabaseModels/DashboardDomain.js.map +1 -0
  109. package/build/dist/Models/DatabaseModels/Index.js +2 -0
  110. package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
  111. package/build/dist/Models/DatabaseModels/StatusPage.js +42 -0
  112. package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
  113. package/build/dist/Server/API/DashboardAPI.js +293 -0
  114. package/build/dist/Server/API/DashboardAPI.js.map +1 -0
  115. package/build/dist/Server/API/DashboardDomainAPI.js +124 -0
  116. package/build/dist/Server/API/DashboardDomainAPI.js.map +1 -0
  117. package/build/dist/Server/API/StatusPageAPI.js +26 -2
  118. package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
  119. package/build/dist/Server/API/TelemetryAPI.js +222 -0
  120. package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
  121. package/build/dist/Server/EnvironmentConfig.js +4 -0
  122. package/build/dist/Server/EnvironmentConfig.js.map +1 -1
  123. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js +40 -0
  124. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js.map +1 -0
  125. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js +12 -0
  126. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js.map +1 -0
  127. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js +23 -0
  128. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js.map +1 -0
  129. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js +26 -0
  130. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js.map +1 -0
  131. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +8 -0
  132. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
  133. package/build/dist/Server/Middleware/UserAuthorization.js +41 -0
  134. package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
  135. package/build/dist/Server/Services/DashboardDomainService.js +595 -0
  136. package/build/dist/Server/Services/DashboardDomainService.js.map +1 -0
  137. package/build/dist/Server/Services/DashboardService.js +117 -3
  138. package/build/dist/Server/Services/DashboardService.js.map +1 -1
  139. package/build/dist/Server/Services/IncidentService.js +231 -55
  140. package/build/dist/Server/Services/IncidentService.js.map +1 -1
  141. package/build/dist/Server/Services/IncidentStateTimelineService.js +1 -1
  142. package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
  143. package/build/dist/Server/Services/Index.js +6 -0
  144. package/build/dist/Server/Services/Index.js.map +1 -1
  145. package/build/dist/Server/Services/MonitorService.js +5 -2
  146. package/build/dist/Server/Services/MonitorService.js.map +1 -1
  147. package/build/dist/Server/Services/ProfileAggregationService.js +356 -0
  148. package/build/dist/Server/Services/ProfileAggregationService.js.map +1 -0
  149. package/build/dist/Server/Services/ProfileSampleService.js +9 -0
  150. package/build/dist/Server/Services/ProfileSampleService.js.map +1 -0
  151. package/build/dist/Server/Services/ProfileService.js +9 -0
  152. package/build/dist/Server/Services/ProfileService.js.map +1 -0
  153. package/build/dist/Server/Services/TelemetryUsageBillingService.js +61 -4
  154. package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
  155. package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js +13 -1
  156. package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js.map +1 -1
  157. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +8 -0
  158. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -1
  159. package/build/dist/Server/Utils/Cookie.js +36 -0
  160. package/build/dist/Server/Utils/Cookie.js.map +1 -1
  161. package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js +34 -0
  162. package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js.map +1 -0
  163. package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +173 -0
  164. package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
  165. package/build/dist/Server/Utils/Profile/PprofEncoder.js +129 -0
  166. package/build/dist/Server/Utils/Profile/PprofEncoder.js.map +1 -0
  167. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +36 -14
  168. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
  169. package/build/dist/Server/Utils/Workspace/Slack/Slack.js +23 -6
  170. package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
  171. package/build/dist/ServiceRoute.js +1 -0
  172. package/build/dist/ServiceRoute.js.map +1 -1
  173. package/build/dist/Tests/UI/Components/ComponentsModal.test.js +15 -15
  174. package/build/dist/Tests/UI/Components/ComponentsModal.test.js.map +1 -1
  175. package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js +2 -0
  176. package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js.map +1 -1
  177. package/build/dist/Types/CookieName.js +1 -0
  178. package/build/dist/Types/CookieName.js.map +1 -1
  179. package/build/dist/Types/Dashboard/Chart/ChartType.js +5 -0
  180. package/build/dist/Types/Dashboard/Chart/ChartType.js.map +1 -1
  181. package/build/dist/Types/Dashboard/DashboardComponentType.js +4 -0
  182. package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
  183. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +1 -0
  184. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
  185. package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js +2 -0
  186. package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js.map +1 -0
  187. package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js +2 -0
  188. package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js.map +1 -0
  189. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js +2 -0
  190. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js.map +1 -0
  191. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js +2 -0
  192. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js.map +1 -0
  193. package/build/dist/Types/Dashboard/DashboardTemplates.js +853 -0
  194. package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -0
  195. package/build/dist/Types/Dashboard/DashboardVariable.js +7 -0
  196. package/build/dist/Types/Dashboard/DashboardVariable.js.map +1 -0
  197. package/build/dist/Types/Dashboard/DashboardViewConfig.js +50 -1
  198. package/build/dist/Types/Dashboard/DashboardViewConfig.js.map +1 -1
  199. package/build/dist/Types/Dashboard/MasterPassword.js +5 -0
  200. package/build/dist/Types/Dashboard/MasterPassword.js.map +1 -0
  201. package/build/dist/Types/Icon/IconProp.js +1 -0
  202. package/build/dist/Types/Icon/IconProp.js.map +1 -1
  203. package/build/dist/Types/Incident/IncidentMetricType.js +3 -0
  204. package/build/dist/Types/Incident/IncidentMetricType.js.map +1 -1
  205. package/build/dist/Types/MeteredPlan/ProductType.js +1 -0
  206. package/build/dist/Types/MeteredPlan/ProductType.js.map +1 -1
  207. package/build/dist/Types/Metrics/MetricQueryConfigData.js +1 -0
  208. package/build/dist/Types/Metrics/MetricQueryConfigData.js.map +1 -1
  209. package/build/dist/Types/Monitor/CriteriaFilter.js +2 -0
  210. package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
  211. package/build/dist/Types/Monitor/KubernetesAlertTemplates.js +58 -7
  212. package/build/dist/Types/Monitor/KubernetesAlertTemplates.js.map +1 -1
  213. package/build/dist/Types/Monitor/MonitorStep.js +15 -0
  214. package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
  215. package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js +59 -0
  216. package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js.map +1 -0
  217. package/build/dist/Types/Monitor/MonitorType.js +10 -0
  218. package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
  219. package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js +2 -0
  220. package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js.map +1 -0
  221. package/build/dist/Types/Permission.js +75 -0
  222. package/build/dist/Types/Permission.js.map +1 -1
  223. package/build/dist/Types/Telemetry/TelemetryType.js +1 -0
  224. package/build/dist/Types/Telemetry/TelemetryType.js.map +1 -1
  225. package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js +1 -0
  226. package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js.map +1 -1
  227. package/build/dist/UI/Components/Button/Button.js +1 -1
  228. package/build/dist/UI/Components/Button/Button.js.map +1 -1
  229. package/build/dist/UI/Components/Card/Card.js +4 -4
  230. package/build/dist/UI/Components/Card/Card.js.map +1 -1
  231. package/build/dist/UI/Components/Charts/Area/AreaChart.js +1 -1
  232. package/build/dist/UI/Components/Charts/Area/AreaChart.js.map +1 -1
  233. package/build/dist/UI/Components/Charts/Bar/BarChart.js +1 -1
  234. package/build/dist/UI/Components/Charts/Bar/BarChart.js.map +1 -1
  235. package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js +5 -2
  236. package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js.map +1 -1
  237. package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js +5 -2
  238. package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js.map +1 -1
  239. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +6 -3
  240. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -1
  241. package/build/dist/UI/Components/Charts/Line/LineChart.js +1 -1
  242. package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
  243. package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js +2 -0
  244. package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js.map +1 -0
  245. package/build/dist/UI/Components/Icon/Icon.js +11 -0
  246. package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
  247. package/build/dist/UI/Components/ModelTable/BaseModelTable.js +12 -9
  248. package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
  249. package/build/dist/UI/Components/MoreMenu/MoreMenu.js +8 -2
  250. package/build/dist/UI/Components/MoreMenu/MoreMenu.js.map +1 -1
  251. package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js +4 -4
  252. package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js.map +1 -1
  253. package/build/dist/UI/Components/Workflow/Component.js +311 -143
  254. package/build/dist/UI/Components/Workflow/Component.js.map +1 -1
  255. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js +44 -18
  256. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js.map +1 -1
  257. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js +48 -22
  258. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js.map +1 -1
  259. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js +127 -21
  260. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js.map +1 -1
  261. package/build/dist/UI/Components/Workflow/ComponentsModal.js +107 -52
  262. package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -1
  263. package/build/dist/UI/Components/Workflow/Workflow.js +87 -12
  264. package/build/dist/UI/Components/Workflow/Workflow.js.map +1 -1
  265. package/build/dist/UI/Config.js +3 -1
  266. package/build/dist/UI/Config.js.map +1 -1
  267. package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js +50 -21
  268. package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js.map +1 -1
  269. package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js +104 -0
  270. package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js.map +1 -0
  271. package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js +91 -0
  272. package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js.map +1 -0
  273. package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js +70 -0
  274. package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js.map +1 -0
  275. package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js +28 -7
  276. package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js.map +1 -1
  277. package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js +70 -0
  278. package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js.map +1 -0
  279. package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js +34 -3
  280. package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js.map +1 -1
  281. package/build/dist/Utils/Dashboard/Components/Index.js +16 -0
  282. package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
  283. package/build/dist/Utils/ValueFormatter.js +132 -0
  284. package/build/dist/Utils/ValueFormatter.js.map +1 -0
  285. package/package.json +1 -1
@@ -0,0 +1,70 @@
1
+ import { ObjectType } from "../../../Types/JSON";
2
+ import ObjectID from "../../../Types/ObjectID";
3
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent";
4
+ import { ComponentInputType, } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
5
+ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
6
+ const DataSourceSection = {
7
+ name: "Data Source",
8
+ description: "Configure which metrics to display in the table",
9
+ order: 1,
10
+ };
11
+ const DisplaySection = {
12
+ name: "Display Options",
13
+ description: "Customize the table appearance",
14
+ order: 2,
15
+ defaultCollapsed: true,
16
+ };
17
+ export default class DashboardTableComponentUtil extends DashboardBaseComponentUtil {
18
+ static getDefaultComponent() {
19
+ return {
20
+ _type: ObjectType.DashboardComponent,
21
+ componentType: DashboardComponentType.Table,
22
+ widthInDashboardUnits: 6,
23
+ heightInDashboardUnits: 4,
24
+ topInDashboardUnits: 0,
25
+ leftInDashboardUnits: 0,
26
+ componentId: ObjectID.generate(),
27
+ minHeightInDashboardUnits: 3,
28
+ minWidthInDashboardUnits: 4,
29
+ arguments: {
30
+ metricQueryConfig: {
31
+ metricQueryData: {
32
+ filterData: {},
33
+ groupBy: undefined,
34
+ },
35
+ },
36
+ maxRows: 20,
37
+ },
38
+ };
39
+ }
40
+ static getComponentConfigArguments() {
41
+ const componentArguments = [];
42
+ componentArguments.push({
43
+ name: "Metric Query",
44
+ description: "Select the metrics to display in the table",
45
+ required: true,
46
+ type: ComponentInputType.MetricsQueryConfig,
47
+ id: "metricQueryConfig",
48
+ section: DataSourceSection,
49
+ });
50
+ componentArguments.push({
51
+ name: "Title",
52
+ description: "Header shown above the table",
53
+ required: false,
54
+ type: ComponentInputType.Text,
55
+ id: "tableTitle",
56
+ section: DisplaySection,
57
+ });
58
+ componentArguments.push({
59
+ name: "Max Rows",
60
+ description: "Maximum number of rows to show",
61
+ required: false,
62
+ type: ComponentInputType.Number,
63
+ id: "maxRows",
64
+ placeholder: "20",
65
+ section: DisplaySection,
66
+ });
67
+ return componentArguments;
68
+ }
69
+ }
70
+ //# sourceMappingURL=DashboardTableComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardTableComponent.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/DashboardTableComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGL,kBAAkB,GACnB,MAAM,gEAAgE,CAAC;AACxE,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AAErF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,iDAAiD;IAC9D,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,MAAM,cAAc,GAA6B;IAC/C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE,CAAC;IACR,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,0BAA0B;IAC1E,MAAM,CAAU,mBAAmB;QACxC,OAAO;YACL,KAAK,EAAE,UAAU,CAAC,kBAAkB;YACpC,aAAa,EAAE,sBAAsB,CAAC,KAAK;YAC3C,qBAAqB,EAAE,CAAC;YACxB,sBAAsB,EAAE,CAAC;YACzB,mBAAmB,EAAE,CAAC;YACtB,oBAAoB,EAAE,CAAC;YACvB,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAAE;YAChC,yBAAyB,EAAE,CAAC;YAC5B,wBAAwB,EAAE,CAAC;YAC3B,SAAS,EAAE;gBACT,iBAAiB,EAAE;oBACjB,eAAe,EAAE;wBACf,UAAU,EAAE,EAAE;wBACd,OAAO,EAAE,SAAS;qBACnB;iBACF;gBACD,OAAO,EAAE,EAAE;aACZ;SACF,CAAC;IACJ,CAAC;IAEM,MAAM,CAAU,2BAA2B;QAGhD,MAAM,kBAAkB,GAEpB,EAAE,CAAC;QAEP,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,kBAAkB,CAAC,kBAAkB;YAC3C,EAAE,EAAE,mBAAmB;YACvB,OAAO,EAAE,iBAAiB;SAC3B,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,IAAI;YAC7B,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE,cAAc;SACxB,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,MAAM;YAC/B,EAAE,EAAE,SAAS;YACb,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,cAAc;SACxB,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
@@ -3,6 +3,17 @@ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentT
3
3
  import { ObjectType } from "../../../Types/JSON";
4
4
  import ObjectID from "../../../Types/ObjectID";
5
5
  import DashboardBaseComponentUtil from "./DashboardBaseComponent";
6
+ const ContentSection = {
7
+ name: "Content",
8
+ description: "The text content to display",
9
+ order: 1,
10
+ };
11
+ const FormattingSection = {
12
+ name: "Formatting",
13
+ description: "Text style options",
14
+ order: 2,
15
+ defaultCollapsed: true,
16
+ };
6
17
  export default class DashboardTextComponentUtil extends DashboardBaseComponentUtil {
7
18
  static getDefaultComponent() {
8
19
  return {
@@ -17,6 +28,7 @@ export default class DashboardTextComponentUtil extends DashboardBaseComponentUt
17
28
  isBold: false,
18
29
  isItalic: false,
19
30
  isUnderline: false,
31
+ isMarkdown: false,
20
32
  },
21
33
  componentId: ObjectID.generate(),
22
34
  minHeightInDashboardUnits: 1,
@@ -27,35 +39,44 @@ export default class DashboardTextComponentUtil extends DashboardBaseComponentUt
27
39
  const componentArguments = [];
28
40
  componentArguments.push({
29
41
  name: "Text",
30
- description: "The text to display",
42
+ description: "The text to display in the widget",
31
43
  required: true,
32
44
  type: ComponentInputType.LongText,
33
45
  id: "text",
34
46
  placeholder: "Hello, World!",
47
+ section: ContentSection,
35
48
  });
36
49
  componentArguments.push({
37
50
  name: "Bold",
38
- description: "Whether the text should be bold",
51
+ description: "Make text bold",
39
52
  required: false,
40
53
  type: ComponentInputType.Boolean,
41
54
  id: "isBold",
42
- placeholder: "false",
55
+ section: FormattingSection,
43
56
  });
44
57
  componentArguments.push({
45
58
  name: "Italic",
46
- description: "Whether the text should be italic",
59
+ description: "Make text italic",
47
60
  required: false,
48
61
  type: ComponentInputType.Boolean,
49
62
  id: "isItalic",
50
- placeholder: "false",
63
+ section: FormattingSection,
51
64
  });
52
65
  componentArguments.push({
53
66
  name: "Underline",
54
- description: "Whether the text should be underlined",
67
+ description: "Underline the text",
55
68
  required: false,
56
69
  type: ComponentInputType.Boolean,
57
70
  id: "isUnderline",
58
- placeholder: "false",
71
+ section: FormattingSection,
72
+ });
73
+ componentArguments.push({
74
+ name: "Markdown",
75
+ description: "Render as markdown (headers, links, lists, code, tables)",
76
+ required: false,
77
+ type: ComponentInputType.Boolean,
78
+ id: "isMarkdown",
79
+ section: FormattingSection,
59
80
  });
60
81
  return componentArguments;
61
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardTextComponent.js","sourceRoot":"","sources":["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AAE,EAAE,QAAQ;YACZ,WAAW,EAAE,OAAO;SACrB,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,OAAO;YAChC,EAAE,EAAE,UAAU;YACd,WAAW,EAAE,OAAO;SACrB,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,OAAO;YAChC,EAAE,EAAE,aAAa;YACjB,WAAW,EAAE,OAAO;SACrB,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
1
+ {"version":3,"file":"DashboardTextComponent.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/DashboardTextComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,GACnB,MAAM,gEAAgE,CAAC;AAExE,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAElE,MAAM,cAAc,GAA6B;IAC/C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE,CAAC;IACR,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,0BAA0B;IACzE,MAAM,CAAU,mBAAmB;QACxC,OAAO;YACL,KAAK,EAAE,UAAU,CAAC,kBAA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BAAoB;YACjC,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,OAAO;YAChC,EAAE,EAAE,aAAa;YACjB,OAAO,EAAE,iBAAiB;SAC3B,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,OAAO;YAChC,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE,iBAAiB;SAC3B,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
@@ -0,0 +1,70 @@
1
+ import { ObjectType } from "../../../Types/JSON";
2
+ import ObjectID from "../../../Types/ObjectID";
3
+ import DashboardBaseComponentUtil from "./DashboardBaseComponent";
4
+ import { ComponentInputType, } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
5
+ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
6
+ const DisplaySection = {
7
+ name: "Display Options",
8
+ description: "Configure the widget title and row limit",
9
+ order: 1,
10
+ };
11
+ const FiltersSection = {
12
+ name: "Filters",
13
+ description: "Narrow down which traces are shown",
14
+ order: 2,
15
+ defaultCollapsed: true,
16
+ };
17
+ export default class DashboardTraceListComponentUtil extends DashboardBaseComponentUtil {
18
+ static getDefaultComponent() {
19
+ return {
20
+ _type: ObjectType.DashboardComponent,
21
+ componentType: DashboardComponentType.TraceList,
22
+ widthInDashboardUnits: 6,
23
+ heightInDashboardUnits: 4,
24
+ topInDashboardUnits: 0,
25
+ leftInDashboardUnits: 0,
26
+ componentId: ObjectID.generate(),
27
+ minHeightInDashboardUnits: 3,
28
+ minWidthInDashboardUnits: 6,
29
+ arguments: {
30
+ maxRows: 50,
31
+ },
32
+ };
33
+ }
34
+ static getComponentConfigArguments() {
35
+ const componentArguments = [];
36
+ componentArguments.push({
37
+ name: "Title",
38
+ description: "Header shown above the trace list",
39
+ required: false,
40
+ type: ComponentInputType.Text,
41
+ id: "title",
42
+ section: DisplaySection,
43
+ });
44
+ componentArguments.push({
45
+ name: "Max Rows",
46
+ description: "Maximum number of traces to show",
47
+ required: false,
48
+ type: ComponentInputType.Number,
49
+ id: "maxRows",
50
+ placeholder: "50",
51
+ section: DisplaySection,
52
+ });
53
+ componentArguments.push({
54
+ name: "Status",
55
+ description: "Show only traces with this status",
56
+ required: false,
57
+ type: ComponentInputType.Dropdown,
58
+ id: "statusFilter",
59
+ section: FiltersSection,
60
+ dropdownOptions: [
61
+ { label: "All", value: "" },
62
+ { label: "Ok", value: "1" },
63
+ { label: "Error", value: "2" },
64
+ { label: "Unset", value: "0" },
65
+ ],
66
+ });
67
+ return componentArguments;
68
+ }
69
+ }
70
+ //# sourceMappingURL=DashboardTraceListComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardTraceListComponent.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/DashboardTraceListComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGL,kBAAkB,GACnB,MAAM,gEAAgE,CAAC;AACxE,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AAErF,MAAM,cAAc,GAA6B;IAC/C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,0CAA0C;IACvD,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,MAAM,cAAc,GAA6B;IAC/C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,oCAAoC;IACjD,KAAK,EAAE,CAAC;IACR,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,0BAA0B;IAC9E,MAAM,CAAU,mBAAmB;QACxC,OAAO;YACL,KAAK,EAAE,UAAU,CAAC,kBAAkB;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AC9B,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;aAC/B;SACF,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
@@ -3,6 +3,17 @@ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentT
3
3
  import { ObjectType } from "../../../Types/JSON";
4
4
  import ObjectID from "../../../Types/ObjectID";
5
5
  import DashboardBaseComponentUtil from "./DashboardBaseComponent";
6
+ const DataSourceSection = {
7
+ name: "Data Source",
8
+ description: "Configure which metric to display",
9
+ order: 1,
10
+ };
11
+ const ThresholdsSection = {
12
+ name: "Thresholds",
13
+ description: "Set warning and critical levels",
14
+ order: 2,
15
+ defaultCollapsed: true,
16
+ };
6
17
  export default class DashboardValueComponentUtil extends DashboardBaseComponentUtil {
7
18
  static getDefaultComponent() {
8
19
  return {
@@ -30,17 +41,37 @@ export default class DashboardValueComponentUtil extends DashboardBaseComponentU
30
41
  const componentArguments = [];
31
42
  componentArguments.push({
32
43
  name: "Title",
33
- description: "The title to display",
44
+ description: "Label shown above the value",
34
45
  required: false,
35
46
  type: ComponentInputType.Text,
36
47
  id: "title",
48
+ section: DataSourceSection,
37
49
  });
38
50
  componentArguments.push({
39
- name: "Value Configuration",
40
- description: "Please select the metric to display",
51
+ name: "Metric Query",
52
+ description: "Select the metric to display as a value",
41
53
  required: true,
42
54
  type: ComponentInputType.MetricsQueryConfig,
43
55
  id: "metricQueryConfig",
56
+ section: DataSourceSection,
57
+ });
58
+ componentArguments.push({
59
+ name: "Warning Threshold",
60
+ description: "Yellow background when value exceeds this",
61
+ required: false,
62
+ type: ComponentInputType.Number,
63
+ id: "warningThreshold",
64
+ isAdvanced: true,
65
+ section: ThresholdsSection,
66
+ });
67
+ componentArguments.push({
68
+ name: "Critical Threshold",
69
+ description: "Red background when value exceeds this",
70
+ required: false,
71
+ type: ComponentInputType.Number,
72
+ id: "criticalThreshold",
73
+ isAdvanced: true,
74
+ section: ThresholdsSection,
44
75
  });
45
76
  return componentArguments;
46
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardValueComponent.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/DashboardValueComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,GACnB,MAAM,gEAAgE,CAAC;AAExE,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,0BAA0B;IAC1E,MAAM,CAAU,mBAAmB;QACxC,OAAO;YACL,KAAK,EAAE,UAAU,CAAC,kBAAkB;YACpC,aAAa,EAAE,sBAAsB,CAAC,KAAK;YAC3C,qBAAqB,EAAE,CAAC;YACxB,sBAAsB,EAAE,CAAC;YACzB,mBAAmB,EAAE,CAAC;YACtB,oBAAoB,EAAE,CAAC;YACvB,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAAE;YAChC,yBAAyB,EAAE,CAAC;YAC5B,wBAAwB,EAAE,CAAC;YAC3B,SAAS,EAAE;gBACT,KAAK,EAAE,EAAE;gBACT,iBAAiB,EAAE;oBACjB,eAAe,EAAE;wBACf,UAAU,EAAE,EAAE;wBACd,OAAO,EAAE,SAAS;qBACnB;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IAEM,MAAM,CAAU,2BAA2B;QAGhD,MAAM,kBAAkB,GAEpB,EAAE,CAAC;QAEP,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,IAAI;YAC7B,EAAE,EAAE,OAAO;SACZ,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,kBAAkB,CAAC,kBAAkB;YAC3C,EAAE,EAAE,mBAAmB;SACxB,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
1
+ {"version":3,"file":"DashboardValueComponent.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/DashboardValueComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,GACnB,MAAM,gEAAgE,CAAC;AAExE,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAElE,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE,CAAC;IACR,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,0BAA0B;IAC1E,MAAM,CAAU,mBAAmB;QACxC,OAAO;YACL,KAAK,EAAE,UAAU,CAAC,kBAAkB;YACpC,aAAa,EAAE,sBAAsB,CAAC,KAAK;YAC3C,qBAAqB,EAAE,CAAC;YACxB,sBAAsB,EAAE,CAAC;YACzB,mBAAmB,EAAE,CAAC;YACtB,oBAAoB,EAAE,CAAC;YACvB,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAAE;YAChC,yBAAyB,EAAE,CAAC;YAC5B,wBAAwB,EAAE,CAAC;YAC3B,SAAS,EAAE;gBACT,KAAK,EAAE,EAAE;gBACT,iBAAiB,EAAE;oBACjB,eAAe,EAAE;wBACf,UAAU,EAAE,EAAE;wBACd,OAAO,EAAE,SAAS;qBACnB;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IAEM,MAAM,CAAU,2BAA2B;QAGhD,MAAM,kBAAkB,GAEpB,EAAE,CAAC;QAEP,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,IAAI;YAC7B,EAAE,EAAE,OAAO;YACX,OAAO,EAAE,iBAAiB;SAC3B,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,kBAAkB,CAAC,kBAAkB;YAC3C,EAAE,EAAE,mBAAmB;YACvB,OAAO,EAAE,iBAAiB;SAC3B,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,MAAM;YAC/B,EAAE,EAAE,kBAAkB;YACtB,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,iBAAiB;SAC3B,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,MAAM;YAC/B,EAAE,EAAE,mBAAmB;YACvB,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,iBAAiB;SAC3B,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
@@ -1,7 +1,11 @@
1
1
  import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
2
2
  import BadDataException from "../../../Types/Exception/BadDataException";
3
3
  import DashboardChartComponentUtil from "./DashboardChartComponent";
4
+ import DashboardGaugeComponentUtil from "./DashboardGaugeComponent";
5
+ import DashboardLogStreamComponentUtil from "./DashboardLogStreamComponent";
6
+ import DashboardTableComponentUtil from "./DashboardTableComponent";
4
7
  import DashboardTextComponentUtil from "./DashboardTextComponent";
8
+ import DashboardTraceListComponentUtil from "./DashboardTraceListComponent";
5
9
  import DashboardValueComponentUtil from "./DashboardValueComponent";
6
10
  export default class DashboardComponentsUtil {
7
11
  static getComponentSettingsArguments(dashboardComponentType) {
@@ -14,6 +18,18 @@ export default class DashboardComponentsUtil {
14
18
  if (dashboardComponentType === DashboardComponentType.Value) {
15
19
  return DashboardValueComponentUtil.getComponentConfigArguments();
16
20
  }
21
+ if (dashboardComponentType === DashboardComponentType.Table) {
22
+ return DashboardTableComponentUtil.getComponentConfigArguments();
23
+ }
24
+ if (dashboardComponentType === DashboardComponentType.Gauge) {
25
+ return DashboardGaugeComponentUtil.getComponentConfigArguments();
26
+ }
27
+ if (dashboardComponentType === DashboardComponentType.LogStream) {
28
+ return DashboardLogStreamComponentUtil.getComponentConfigArguments();
29
+ }
30
+ if (dashboardComponentType === DashboardComponentType.TraceList) {
31
+ return DashboardTraceListComponentUtil.getComponentConfigArguments();
32
+ }
17
33
  throw new BadDataException(`Unknown dashboard component type: ${dashboardComponentType}`);
18
34
  }
19
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Index.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/Index.ts"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,2BAA2B,MAAM,2BAA2B,CAAC;AACpE,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAClE,OAAO,2BAA2B,MAAM,2BAA2B,CAAC;AAEpE,MAAM,CAAC,OAAO,OAAO,uBAAuB;IACnC,MAAM,CAAC,6BAA6B,CACzC,sBAA8C;QAE9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B,KAAK,sBAAsB,CAAC,KAAK,EAAE,CAAC;YAC5D,OAAO,2BAA2B,CAAC,2BAA2B,EAE7D,CAAC;QACJ,CAAC;QAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,KAAK,EAAE,CAAC;YAC5D,OAAO,2BAA2B,CAAC,2BAA2B,EAE7D,CAAC;QACJ,CAAC;QAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,KAAK,EAAE,CAAC;YAC5D,OAAO,2BAA2B,CAAC,2BAA2B,EAE7D,CAAC;QACJ,CAAC;QAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,SAAS,EAAE,CAAC;YAChE,OAAO,+BAA+B,CAAC,2BAA2B,EAEjE,CAAC;QACJ,CAAC;QAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,SAAS,EAAE,CAAC;YAChE,OAAO,+BAA+B,CAAC,2BAA2B,EAEjE,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,gBAAgB,CACxB,qCAAqC,sBAAsB,EAAE,CAC9D,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Human-friendly value formatting for metric units.
3
+ * Converts raw values like 1048576 bytes → "1 MB", 3661 seconds → "1.02 hr", etc.
4
+ */
5
+ const byteUnits = [
6
+ { threshold: 1e15, unit: "PB", divisor: 1e15 },
7
+ { threshold: 1e12, unit: "TB", divisor: 1e12 },
8
+ { threshold: 1e9, unit: "GB", divisor: 1e9 },
9
+ { threshold: 1e6, unit: "MB", divisor: 1e6 },
10
+ { threshold: 1e3, unit: "KB", divisor: 1e3 },
11
+ { threshold: 0, unit: "B", divisor: 1 },
12
+ ];
13
+ const secondUnits = [
14
+ { threshold: 86400, unit: "d", divisor: 86400 },
15
+ { threshold: 3600, unit: "hr", divisor: 3600 },
16
+ { threshold: 60, unit: "min", divisor: 60 },
17
+ { threshold: 1, unit: "s", divisor: 1 },
18
+ { threshold: 0.001, unit: "ms", divisor: 0.001 },
19
+ { threshold: 0.000001, unit: "µs", divisor: 0.000001 },
20
+ { threshold: 0, unit: "ns", divisor: 0.000000001 },
21
+ ];
22
+ const millisecondUnits = [
23
+ { threshold: 86400000, unit: "d", divisor: 86400000 },
24
+ { threshold: 3600000, unit: "hr", divisor: 3600000 },
25
+ { threshold: 60000, unit: "min", divisor: 60000 },
26
+ { threshold: 1000, unit: "s", divisor: 1000 },
27
+ { threshold: 1, unit: "ms", divisor: 1 },
28
+ { threshold: 0.001, unit: "µs", divisor: 0.001 },
29
+ { threshold: 0, unit: "ns", divisor: 0.000001 },
30
+ ];
31
+ const microsecondUnits = [
32
+ { threshold: 1e6, unit: "s", divisor: 1e6 },
33
+ { threshold: 1e3, unit: "ms", divisor: 1e3 },
34
+ { threshold: 1, unit: "µs", divisor: 1 },
35
+ { threshold: 0, unit: "ns", divisor: 0.001 },
36
+ ];
37
+ const nanosecondUnits = [
38
+ { threshold: 1e9, unit: "s", divisor: 1e9 },
39
+ { threshold: 1e6, unit: "ms", divisor: 1e6 },
40
+ { threshold: 1e3, unit: "µs", divisor: 1e3 },
41
+ { threshold: 0, unit: "ns", divisor: 1 },
42
+ ];
43
+ // Maps common metric unit strings to their scaling table
44
+ const unitTableMap = {
45
+ // Byte variants
46
+ bytes: byteUnits,
47
+ byte: byteUnits,
48
+ by: byteUnits,
49
+ b: byteUnits,
50
+ // Second variants
51
+ seconds: secondUnits,
52
+ second: secondUnits,
53
+ sec: secondUnits,
54
+ s: secondUnits,
55
+ // Millisecond variants
56
+ milliseconds: millisecondUnits,
57
+ millisecond: millisecondUnits,
58
+ ms: millisecondUnits,
59
+ // Microsecond variants
60
+ microseconds: microsecondUnits,
61
+ microsecond: microsecondUnits,
62
+ us: microsecondUnits,
63
+ µs: microsecondUnits,
64
+ // Nanosecond variants
65
+ nanoseconds: nanosecondUnits,
66
+ nanosecond: nanosecondUnits,
67
+ ns: nanosecondUnits,
68
+ };
69
+ function formatWithThresholds(value, thresholds) {
70
+ const absValue = Math.abs(value);
71
+ for (const t of thresholds) {
72
+ if (absValue >= t.threshold) {
73
+ const scaled = value / t.divisor;
74
+ const formatted = formatNumber(scaled);
75
+ return {
76
+ value: formatted,
77
+ unit: t.unit,
78
+ formatted: `${formatted} ${t.unit}`,
79
+ };
80
+ }
81
+ }
82
+ // Fallback: use last threshold
83
+ const last = thresholds[thresholds.length - 1];
84
+ const scaled = value / last.divisor;
85
+ const formatted = formatNumber(scaled);
86
+ return {
87
+ value: formatted,
88
+ unit: last.unit,
89
+ formatted: `${formatted} ${last.unit}`,
90
+ };
91
+ }
92
+ function formatNumber(value) {
93
+ if (value === 0) {
94
+ return "0";
95
+ }
96
+ const absValue = Math.abs(value);
97
+ if (absValue >= 100) {
98
+ return Math.round(value).toString();
99
+ }
100
+ if (absValue >= 10) {
101
+ return (Math.round(value * 10) / 10).toString();
102
+ }
103
+ return (Math.round(value * 100) / 100).toString();
104
+ }
105
+ export default class ValueFormatter {
106
+ /*
107
+ * Format a value with a unit into a human-friendly string.
108
+ * e.g. formatValue(1048576, "bytes") → "1 MB"
109
+ * e.g. formatValue(3661, "seconds") → "1.02 hr"
110
+ * e.g. formatValue(42, "%") → "42 %" (passthrough for unknown units)
111
+ */
112
+ static formatValue(value, unit) {
113
+ if (!unit || unit.trim() === "") {
114
+ return formatNumber(value);
115
+ }
116
+ const normalizedUnit = unit.trim().toLowerCase();
117
+ const thresholds = unitTableMap[normalizedUnit];
118
+ if (thresholds) {
119
+ return formatWithThresholds(value, thresholds).formatted;
120
+ }
121
+ // Unknown unit — just format the number and append the unit as-is
122
+ return `${formatNumber(value)} ${unit}`;
123
+ }
124
+ // Check if a unit is one we can auto-scale (bytes, seconds, etc.)
125
+ static isScalableUnit(unit) {
126
+ if (!unit || unit.trim() === "") {
127
+ return false;
128
+ }
129
+ return unitTableMap[unit.trim().toLowerCase()] !== undefined;
130
+ }
131
+ }
132
+ //# sourceMappingURL=ValueFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValueFormatter.js","sourceRoot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AW,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACzD,MAAM,UAAU,GACd,YAAY,CAAC,cAAc,CAAC,CAAC;QAE/B,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,SAAS,CAAC;QAC3D,CAAC;QAED,kEAAkE;QAClE,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,kEAAkE;IAC3D,MAAM,CAAC,cAAc,CAAC,IAAY;QACvC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,SAAS,CAAC;IAC/D,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneuptime/common",
3
- "version": "10.0.39",
3
+ "version": "10.0.41",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",