Commit Graph

1536 Commits

Author SHA1 Message Date
Simon Larsen
524863dff3
refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-06 19:38:47 -06:00
Simon Larsen
5bc054504a
refactor: Update import statements for UserProfile component to use FileUtil.getFileRoute instead of FileUtil.getFileURL 2024-08-06 17:57:27 -06:00
Simon Larsen
725a58d5fb
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-06 17:47:14 -06:00
Simon Larsen
9bf3856c95
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-06 14:02:28 -06:00
Simon Larsen
5fc95eb02e
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-06 11:26:13 -06:00
Simon Larsen
02f91d26ff
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 15:40:20 -06:00
Simon Larsen
5221c20ee2
refactor: Remove commented out code and unused monitor types in MonitorTypeHelper 2024-08-05 15:11:54 -06:00
Simon Larsen
b1c3a9e3c8
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 14:34:48 -06:00
Simon Larsen
b29fb6e833
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 13:00:31 -06:00
Simon Larsen
2e2ade0b16
refactor: Update import statements for BaseModel in JSONFunctions and BaseModel in UserModel 2024-08-05 12:08:45 -06:00
Simon Larsen
525ad8c664
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 11:46:35 -06:00
Simon Larsen
c968156fa7
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 11:43:45 -06:00
Simon Larsen
36a0dad41c
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 11:35:45 -06:00
Simon Larsen
52630b16d1
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 10:06:53 -06:00
Simon Larsen
d0692ebc8f
refactor: Remove unnecessary whitespace in code 2024-08-04 20:44:30 -06:00
Simon Larsen
63197d263f
refactor: Update monitor interfaces to use consistent naming 2024-08-04 20:33:16 -06:00
Simon Larsen
29764ae7c7
refactor: Update monitor interfaces to use consistent naming 2024-08-04 19:39:36 -06:00
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
8a77ae977e
refactor: Update OneUptime chart to use probes instead of probe for probe configuration 2024-08-01 19:25:54 -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
9afbac2cbc
refactor: Rename telemetry tables and update related code
This commit renames the telemetry tables in the AnalyticsModels directory to have a "Telemetry" suffix (e.g., Log -> LogTelemetry, Metric -> MetricTelemetry, Span -> SpanTelemetry). It also updates the related code in the TelemetryAttribute, StatementGenerator, and DataMigrations files to reflect the table name changes. This change improves the clarity and consistency of the telemetry-related code.

Files modified:
- Model/AnalyticsModels/TelemetryAttribute.ts
- Model/AnalyticsModels/Log.ts
- Model/AnalyticsModels/Metric.ts
- Model/AnalyticsModels/Span.ts
- CommonServer/Tests/Services/AnalyticsDatabaseService.test.ts
- CommonServer/Tests/Utils/AnalyticsDatabase/StatementGenerator.test.ts
- App/FeatureSet/Workers/DataMigrations/Index.ts
- App/FeatureSet/Workers/DataMigrations/DeleteOldTelelmetryTable.ts
2024-07-30 14:35:30 -06:00
Simon Larsen
10ed38197e
feat: Update TwoFactorAuth utility class to use otpauth library 2024-07-29 16:45:14 -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
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
ff062cb6a2
Merge branch 'master' of github.com:OneUptime/oneuptime 2024-07-24 17:33:26 -06:00
Simon Larsen
6c44201e1c
Merge pull request #1583 from OneUptime/snyk-upgrade-b91af40dda1ae21dd8df7c2e11b2673d
[Snyk] Upgrade posthog-js from 1.139.3 to 1.139.6
2024-07-24 17:26:25 -06:00
Simon Larsen
b1eaded3fd
refactor: Update StatusPageSubscriberReport template to display downtime in hours and minutes
This commit updates the StatusPageSubscriberReport template to display the downtime in hours and minutes instead of seconds. The fields "totalDowntime" and "averageUptime" are replaced with "totalDowntimeInHoursAndMinutes" and "averageUptimePercent" respectively. This change improves the readability and usability of the report for users.
2024-07-24 16:29:46 -06:00
Simon Larsen
f090654ab6
refactor: Add support for StatusPage reports 2024-07-23 17:56:45 -06:00
Simon Larsen
c2e14c378b
refactor: Update StatusPageService to calculate and set the next report date
This commit modifies the StatusPageService in the StatusPageService.ts file. It adds logic to calculate and set the next report date based on the report start date and recurring interval. This change enhances the functionality of the StatusPage report feature by ensuring that the next report is scheduled correctly.
2024-07-23 13:29:02 -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
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
85c70bbc17
refactor: Add TelemetryAttributeService to AnalyticsServices
This commit adds the TelemetryAttributeService to the AnalyticsServices array in the CommonServer/Services/Index.ts file. By including the TelemetryAttributeService, we ensure that the service is available for handling telemetry attribute-related operations in the analytics module. This enhancement improves the functionality and flexibility of the analytics services, allowing users to work with telemetry attributes effectively.
2024-07-19 16:48:12 -06:00
Simon Larsen
6ea6f94694
getAggregationInterval 2024-07-19 15:25:29 -06:00
Simon Larsen
e93b74665b
refactor: Remove unused code and update types in AggregateBy.ts, StatementGenerator.ts, and MetricView.tsx 2024-07-18 17:58:26 -06:00
Simon Larsen
f57a487b13
refactor: Update BaseDatabase types and components
This commit updates the BaseDatabase types and components to include new interfaces and enums for handling aggregation, sorting, and querying of data. It improves the flexibility and functionality of the database operations, enhancing the overall performance and usability of the application.
2024-07-18 17:00:46 -06:00
Simon Larsen
a50cce6c6f
refactor: Update MetricsAggregationType enum values to uppercase
This commit updates the MetricsAggregationType enum values to uppercase for consistency and clarity. The previous lowercase values were inconsistent with the naming convention used throughout the codebase. This change improves the readability and maintainability of the code.
2024-07-17 14:50:15 -06:00
Simon Larsen
3c839799da
refactor: Update LastRunMessage and TelemetryServices components 2024-07-17 13:42:12 -06:00
Simon Larsen
60aa7032c5
refactor: Update TechStack enum and related imports
This commit updates the TechStack enum in the TechStack.ts file to include a comprehensive list of technology stacks. It also updates the import paths in various files to reflect the changes from using ServiceLanguage to TechStack. This refactoring improves the clarity and consistency of the codebase.
2024-07-16 14:07:47 -06:00
Simon Larsen
c87744c51e
feat: Add ServiceCatalogMonitor and ServiceCatalogTelemetryService models
This commit adds the ServiceCatalogMonitor and ServiceCatalogTelemetryService models to the application. These models are necessary for managing and monitoring service catalog dependencies and telemetry services. The addition of these models enhances the functionality and flexibility of the application.
2024-07-16 11:52:08 -06:00
Simon Larsen
9841ba52a9
feat: Add MetricsAggregationType enum and MetricsQuery interface
This commit adds the MetricsAggregationType enum to represent different types of metrics aggregations such as max, min, sum, avg, and count. It also introduces the MetricsQuery interface, which defines the structure of a metrics query including the metric name, attributes, aggregation type, aggregate by, start time, and end time. These changes enable the implementation of metrics queries and aggregations in the application.
2024-07-15 17:51:19 -06:00
Simon Larsen
c3d8acc61a
feat: Add SquareStack3D icon to IconProp enum and update SideMenu component
This commit adds the SquareStack3D icon to the IconProp enum in the IconProp.ts file. It also updates the SideMenu component in the SideMenu.tsx file to use the SquareStack3D icon instead of the SquareStack icon. This change ensures that the correct icon is displayed in the SideMenu for the specified modelId.
2024-07-15 15:16:26 -06:00
Simon Larsen
04fbb15405
feat: Add Service Catalog Dependency model and routes 2024-07-15 14:49:10 -06:00
Simon Larsen
2cd61dbbac
```text
refactor: Add Service Catalog Dependency permissions

This commit adds new permissions for creating, deleting, editing, and reading Service Catalog Dependencies. These permissions allow users to manage dependencies within the project.
2024-07-15 14:29:05 -06:00
Simon Larsen
5d1ad931fc
chore: Remove unused Copilot configuration variables
This commit removes the unused Copilot configuration variables from the `config.example.env` file. The `COPILOT_OPENAI_API_KEY` and `COPILOT_OPENAI_MODEL` variables are no longer needed and have been removed. This cleanup improves the clarity and maintainability of the codebase.
2024-07-12 19:36:33 +01:00
Simon Larsen
c648a6bf79
feat: Add CopilotPullRequestStatus enum
This commit adds the `CopilotPullRequestStatus` enum to the `CopilotPullRequestStatus.ts` file in the `Common/Types/Copilot` directory. This enum defines the possible statuses of a Copilot pull request, including "Created", "Merged", and "Closed". This enum will be used to track the status of Copilot pull requests throughout the application.
2024-07-12 13:07:59 +01:00
snyk-bot
8a41d48941
fix: upgrade posthog-js from 1.139.3 to 1.139.6
Snyk has created this PR to upgrade posthog-js from 1.139.3 to 1.139.6.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-12 04:37:12 +00:00
snyk-bot
4f3ae06e59
fix: upgrade posthog-js from 1.138.0 to 1.139.3
Snyk has created this PR to upgrade posthog-js from 1.138.0 to 1.139.3.

See this package in npm:
posthog-js

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/f6446ec8-d441-487e-b58f-38373430e213?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-07-10 06:12:11 +00:00