Commit Graph

2025 Commits

Author SHA1 Message Date
Simon Larsen
5c3175f9e7
refactor: Update monitor interfaces to use consistent naming
```
2024-08-04 18:01:04 -06:00
Simon Larsen
8caac12041
refactor: Update LogSeverity enum to use string values instead of enum values 2024-08-04 17:29:38 -06:00
Simon Larsen
d84cf5b8ec
refactor: Update LogSeverity enum to use string values instead of enum values
This refactor updates the LogSeverity enum to use string values instead of enum values. This change allows for better compatibility and flexibility when working with log severity levels. The enum values have been replaced with corresponding string values.

Files modified:
- Common/Types/Log/LogSeverity.ts
- Ingestor/API/OTelIngest.ts
- Ingestor/API/FluentIngest.ts
- Model/AnalyticsModels/Log.ts
- CommonUI/src/Components/LogsViewer/LogItem.tsx
- CommonUI/src/Components/LogsViewer/LogsViewer.tsx
- CommonUI/src/Components/Filters/DropdownFilter.tsx
- Common/Types/ObjectID.ts
- CommonUI/src/Components/Filters/FiltersForm.tsx
2024-08-04 16:41:07 -06:00
Simon Larsen
c9e67311e7
refactor: Update TelemetryIngestor and Probe to initialize telemetry with the correct service name 2024-08-02 16:37:23 -06:00
Simon Larsen
0d40be3db1
refactor: Update APIKeyView and TelemetryIngestionKeyView to use RouteUtil.populateRouteParams
This refactor updates the APIKeyView and TelemetryIngestionKeyView components to use the RouteUtil.populateRouteParams function when navigating to other routes. This ensures that route parameters are properly populated, improving the reliability and consistency of the navigation logic.

Files modified:
- Dashboard/src/Pages/Settings/APIKeyView.tsx
- Dashboard/src/Pages/Settings/TelemetryIngestionKeyView.tsx
2024-08-01 20:43:41 -06:00
Simon Larsen
6fbca4b6cb
refactor: Remove deprecated Service Token field
The deprecated Service Token field in the TelemetryService model and related components was removed. This improves code cleanliness and removes unnecessary dependencies.

Files modified:
- Dashboard/src/Pages/Telemetry/Services/View/Index.tsx
- Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx
- Model/Models/TelemetryService.ts
2024-08-01 15:46:14 -06:00
Simon Larsen
5cf1a7f675
chore: Remove unused ResetObjectID component
The ResetObjectID component in the Settings page was removed as it is no longer needed. This improves code cleanliness and reduces unnecessary dependencies.

Files modified:
- Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx
2024-08-01 15:41:55 -06:00
Simon Larsen
7339f4873b
feat: Add lazy loading for images in SettingsRoutes
Update SettingsRoutes to include lazy loading for images in the telemetry ingestion key view. This improves page load performance by loading images only when they are in the viewport.

Files modified:
- Dashboard/src/Routes/SettingsRoutes.tsx
2024-08-01 15:38:31 -06:00
Simon Larsen
8307f4deca
feat: Add Telemetry Ingestion Keys page to Settings
This commit adds a new page, "Telemetry Ingestion Keys," to the Settings section of the dashboard. The page allows users to manage and view the telemetry ingestion keys used for data collection. It includes a list of keys and their associated details, such as name and creation date. This enhancement provides users with better control and visibility over their telemetry data.

Files modified:
- Dashboard/src/Utils/PageMap.ts
- Dashboard/src/Pages/Settings/SideMenu.tsx
- Dashboard/src/Routes/SettingsRoutes.tsx
2024-08-01 14:23:02 -06:00
Simon Larsen
2b1ad303d9
feat: Update MetricsTable to fetch and display attributes
This commit updates the MetricsTable component to fetch and display attributes for each metric. It adds a new API request to retrieve the attributes from the server and updates the component's state to store the fetched attributes. The attributes are then passed to the AnalyticsModelTable component to be displayed in the "Attributes" column. This enhancement improves the visibility and analysis capabilities of the metrics data.

Files modified:
- Dashboard/src/Components/Metrics/MetricsTable.tsx
2024-07-29 17:12:39 -06:00
Simon Larsen
10ed38197e
feat: Update TwoFactorAuth utility class to use otpauth library 2024-07-29 16:45:14 -06:00
Simon Larsen
a4d1ed7f01
feat: Add BadDataException for two-factor authentication
This commit adds the BadDataException class to handle errors related to two-factor authentication. It is imported and used in the UserService and UserTwoFactorAuthService files to throw an exception when necessary. This improves the error handling and provides more specific error messages for two-factor authentication related issues.

Files modified:
- CommonServer/Services/UserService.ts
- CommonServer/Services/UserTwoFactorAuthService.ts
2024-07-28 11:49:59 -06:00
Simon Larsen
2f2c4891e3
feat: Enable lazy loading of QR code generation in QR component 2024-07-27 10:43:14 -06:00
Simon Larsen
83cb3b66e0
feat: Enable lazy loading of QR code generation in QR component
This commit updates the QR component to use React hooks and lazy load the QR code generation. By utilizing functional components and the useState and useEffect hooks, the QR code is now only generated when needed, improving performance by reducing unnecessary computations. The code changes also include error handling to display an error message if there is an issue generating the QR code.

Files modified:
- CommonUI/src/Components/QR/QR.tsx
2024-07-27 10:18:02 -06:00
Simon Larsen
63575f3065
Update QR component to use React hooks and lazy load QR code generation. This improves performance by only generating the QR code when needed, reducing unnecessary computations. The code changes include replacing class components with functional components and utilizing the useState and useEffect hooks. The QR code generation is now triggered when the props.text value changes. Additionally, error handling has been added to display an error message if there is an issue generating the QR code.
Files modified:
- CommonUI/src/Components/QR/QR.tsx
2024-07-27 09:25:01 -06:00
Simon Larsen
bf031f64fa
feat: Add support for two-factor authentication in user profile
This commit adds support for two-factor authentication in the user profile. It includes the necessary code changes to enable the "Two Factor Auth Enabled" feature in the User model, as well as the addition of the "USER_TWO_FACTOR_AUTH" page in the PageMap and the corresponding route in the RouteMap. The UserTwoFactorAuth model, service, and controller have also been added to handle the logic and API endpoints related to two-factor authentication.

See the following files for more details:
- Common/Types/Icon/IconProp.ts
- Dashboard/src/Utils/PageMap.ts
- Dashboard/src/Utils/RouteMap.ts
- Model/Models/Index.ts
- Model/Models/User.ts
- CommonServer/Services/Index.ts
- CommonServer/package.json
- CommonUI/package.json
- CommonServer/Infrastructure/Postgres/SchemaMigrations/Index.ts
- Dashboard/src/App.tsx
2024-07-26 19:55:40 -06:00
Simon Larsen
04f1cfe414
chore: Remove unused ChartGroupInterval enum
The ChartGroupInterval enum was removed from the ChartGroup component in order to simplify the code and remove unnecessary complexity. This enum was not being used anywhere in the codebase.
2024-07-26 13:57:42 -06:00
Simon Larsen
59d6ef240f
chore: Add error handling for missing SMTP configuration
This commit adds error handling to the `getGlobalSMTPConfig` function in the `Config.ts` file. If any required SMTP configuration values are missing, a `BadDataException` is thrown with a message instructing the user to set the missing values in the Admin Dashboard.

See this file in the repository:
`App/FeatureSet/Notification/Config.ts`
2024-07-26 10:20:47 -06:00
Simon Larsen
b2bdd5d1af
refactor: Update import paths for UptimeEvent and CommonMonitorEvent 2024-07-25 15:00:10 -06:00
Simon Larsen
72e0f200f7
refactor: Update Monitor model and EmailTemplateType enum 2024-07-25 14:46:15 -06:00
Simon Larsen
3f0d75d799
refactor: Update Monitor model and EmailTemplateType enum
- Add 'canReadOnRelationQuery' property to the 'Monitor' model in order to allow reading on relation queries.
- Rename 'StatusPageReport' email template to 'StatusPageSubscriberReport' in the 'EmailTemplateType' enum.
2024-07-25 14:39:53 -06:00
Simon Larsen
8ef66650fb
chore: Update package.json dependencies for CommonProject 2024-07-25 07:42:45 -06:00
Simon Larsen
07973e85a3
chore: Update package.json dependencies for CommonProject 2024-07-24 19:10:40 -06:00
Simon Larsen
09883b1129
chore: Update Dockerfile templates to include CommonProject dependencies 2024-07-24 19:04:25 -06:00
Simon Larsen
a145b346a4
refactor: Add support for reportDataInDays in StatusPage model
This commit adds the `reportDataInDays` property to the `StatusPage` model in the `StatusPage.ts` file. The `reportDataInDays` property allows users to specify the number of days of data to include in the report. This change enhances the reporting functionality of the application by providing more flexibility in generating reports for status pages.
2024-07-23 19:43:10 -06:00
Simon Larsen
f090654ab6
refactor: Add support for StatusPage reports 2024-07-23 17:56:45 -06:00
Simon Larsen
77996b2066
refactor: Add support for StatusPage reports
This commit adds support for generating and managing reports for the StatusPage feature. It includes database changes, such as adding new columns to the "StatusPage" table, and updates to various components and routes. The new functionality allows users to configure and schedule reports, enhancing the reporting capabilities of the application.
2024-07-23 13:06:12 -06:00
Simon Larsen
9f8764d741
refactor: Add canReadOnRelationQuery property to TelemetryService's serviceColor
This commit adds the `canReadOnRelationQuery` property to the `serviceColor` field in the `TelemetryService` model. The `canReadOnRelationQuery` property allows for reading the `serviceColor` field when querying related data. This change enhances the functionality and flexibility of the `TelemetryService` model when working with related data.
2024-07-23 09:50:15 -06:00
Simon Larsen
de4eea4d24
refactor: Round metric values to integers in MetricView component 2024-07-22 15:24:08 -06:00
Simon Larsen
104535b723
```text
refactor: Round metric values to integers in MetricView component

This commit modifies the MetricView component in the MetricView.tsx file. It adds logic to round the metric values to integers using the Math.round() function. This change improves the accuracy and readability of the displayed metric values.
2024-07-22 15:09:31 -06:00
Simon Larsen
6f5dfceb34
refactor: Enable real-time updates in LogsViewer components
This commit enables real-time updates in the LogsViewer components by setting the `enableRealtime` prop to `true` in the `Logs.tsx` and `Index.tsx` files. Previously, real-time updates were disabled (`enableRealtime` set to `false`), but this change allows for immediate updates of logs when new data is available. This enhancement improves the usability and responsiveness of the LogsViewer feature.
2024-07-22 14:47:01 -06:00
Simon Larsen
1ec61a473a
refactor: Update LogItem component to display service name and color
This commit updates the LogItem component in the LogItem.tsx file. It adds functionality to display the service name and color based on the serviceId provided. The serviceMap dictionary is used to retrieve the service name and color, improving the readability and usability of the component. This change enhances the overall quality and user experience of the LogsViewer feature.
2024-07-22 14:33:18 -06:00
Simon Larsen
abf4faade7
refactor: Update TraceTable component to use React hooks and improve performance
This commit updates the TraceTable component in the TraceTable.tsx file. The component is refactored to use React hooks instead of class components, resulting in cleaner and more concise code. Additionally, the update improves the performance of the component by removing unused code and optimizing rendering. These changes enhance the overall quality and maintainability of the TraceTable component.
2024-07-22 13:50:04 -06:00
Simon Larsen
6a9ee5ba75
refactor: Add jsonKeys property to Filter interfaces
This commit adds the `jsonKeys` property to the `Filter` interface in two different files: `Filter.ts` and `ModelFilter/Filter.ts`. The `jsonKeys` property is an array of strings and is used to specify the JSON keys associated with a filter. This addition allows for more flexibility and customization when working with filters in the application.
2024-07-22 13:48:33 -06:00
Simon Larsen
b696e52145
refactor: Update SpanStatusElement component to handle SpanStatus
This commit updates the SpanStatusElement component to handle the new SpanStatus type. The title prop of the component is modified to accept a SpanStatus value in addition to a string. This change allows for more accurate and descriptive rendering of the span status in the TraceExplorer and TraceTable components. The update improves the overall consistency and usability of the application when displaying span status information.
2024-07-21 17:23:00 -06:00
Simon Larsen
8af8eb34ad
refactor: Update TelemetryLayout component and add TraceTable
This commit updates the TelemetryLayout component to improve performance and readability. Unused code is removed, including imports, variables, and functions that are no longer needed. The component is also refactored to use React hooks instead of class components, resulting in cleaner and more concise code.

Additionally, a new TraceTable component is added, which replaces the TelemetryServiceTable component in the Telemetry/Traces.tsx file. The TraceTable component provides enhanced functionality for displaying and filtering trace data.

These changes enhance the overall quality, maintainability, and functionality of the TelemetryLayout component and improve the user experience when viewing telemetry data.
2024-07-21 17:10:09 -06:00
Simon Larsen
e600fac4fd
refactor: Update TelemetryLayout component and add TraceTable 2024-07-21 17:02:51 -06:00
Simon Larsen
1772953b34
refactor: Update TelemetryLayout component and add TraceTable
This commit updates the TelemetryLayout component to improve performance and readability. Unused code is removed, including imports, variables, and functions that are no longer needed. The component is also refactored to use React hooks instead of class components, resulting in cleaner and more concise code.

Additionally, a new TraceTable component is added, which replaces the TelemetryServiceTable component in the Telemetry/Traces.tsx file. The TraceTable component provides enhanced functionality for displaying and filtering trace data.

These changes enhance the overall quality, maintainability, and functionality of the TelemetryLayout component and improve the user experience when viewing telemetry data.
2024-07-21 15:37:40 -06:00
Simon Larsen
44e3c99da8
refactor: Remove unused code and update TelemetryLayout component 2024-07-21 14:30:45 -06:00
Simon Larsen
5fa0f23689
refactor: Remove unused code and update TelemetryLayout component
This commit removes unused code in the TelemetryLayout component and updates it to improve performance and readability. The unused code includes imports, variables, and functions that are no longer needed. The component is also refactored to use React hooks instead of class components, resulting in cleaner and more concise code. These changes enhance the overall quality and maintainability of the TelemetryLayout component.
2024-07-21 13:09:00 -06:00
Simon Larsen
5a9a53dfea
refactor: Add TelemetryAttributeService and update BaseAPIFeatureSet 2024-07-21 10:54:56 -06:00
Simon Larsen
9dae8e1764
refactor: Remove commented out code for empty formula configuration 2024-07-21 10:06:08 -06:00
Simon Larsen
2c8b58c293
refactor: Remove commented out code for empty formula configuration 2024-07-21 10:05:55 -06:00
Simon Larsen
57686c87e3
refactor: Remove commented out code for empty formula configuration 2024-07-21 09:18:03 -06:00
Simon Larsen
51a714f4bd
refactor: Add jsonKeys prop to Filter and JSONFilter components
This commit adds the jsonKeys prop to the Filter and JSONFilter components in order to support filtering by JSON keys. The jsonKeys prop is an array of string values that represents the available JSON keys for filtering. This enhancement improves the flexibility and functionality of the filter components, allowing users to filter data based on specific JSON keys.
2024-07-20 09:25:34 -06:00
Simon Larsen
7effd05896
refactor: Update MetricQueryConfig and MetricQuery components
This commit updates the MetricQueryConfig and MetricQuery components to include the metricNames prop. The metricNames prop is an array of string values that represents the available metric names for filtering and querying. This change improves the flexibility and functionality of the components, allowing users to select from a predefined list of metric names.
2024-07-19 15:57:21 -06:00
Simon Larsen
6ea6f94694
getAggregationInterval 2024-07-19 15:25:29 -06:00
Simon Larsen
4b91e598ce
refactor: Update StatementGenerator.ts and AnalyticsDatabaseService.ts
The code changes in StatementGenerator.ts and AnalyticsDatabaseService.ts refactor the import statements for the AggregateBy module. The changes ensure consistent formatting and improve code readability.
2024-07-19 14:02:54 -06:00
Simon Larsen
07293006c3
refactor: Update MetricView component to render charts for metric results 2024-07-19 13:58:46 -06:00
Simon Larsen
74857d58d8
refactor: Update MetricView component to render charts for metric results 2024-07-18 18:03:37 -06:00