@oneuptime/common 14.0.110 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
- package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
- package/Models/DatabaseModels/AIRunRecording.js +181 -0
- package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
- package/Models/DatabaseModels/Alert.js +18 -2
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/EmailLog.js +2 -2
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +4 -4
- package/Models/DatabaseModels/GlobalConfig.js +46 -45
- package/Models/DatabaseModels/Incident.js +18 -2
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/Index.js +4 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +51 -17
- package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
- package/Models/DatabaseModels/MonitorProbe.js +22 -5
- package/Models/DatabaseModels/NetworkDevice.js +23 -7
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
- package/Models/DatabaseModels/NetworkInterface.js +5 -5
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +19 -5
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +1 -0
- package/Models/DatabaseModels/Project.d.ts +1 -0
- package/Models/DatabaseModels/Project.js +46 -3
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- package/Models/DatabaseModels/TeamMember.js +10 -1
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
- package/Server/Services/DatabaseService.d.mts +4 -1
- package/Server/Services/DatabaseService.d.ts +4 -1
- package/Server/Types/Database/CountBy.d.mts +1 -0
- package/Server/Types/Database/CountBy.d.ts +1 -0
- package/Server/Types/Database/UpdateLimit.d.mts +6 -0
- package/Server/Types/Database/UpdateLimit.d.ts +6 -0
- package/Types/AI/AIActionWords.d.mts +25 -1
- package/Types/AI/AIActionWords.d.ts +25 -1
- package/Types/AI/AIActionWords.js +166 -3
- package/Types/AI/AIActionWords.mjs +6 -0
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AiOutcomes.d.mts +57 -0
- package/Types/AI/AiOutcomes.d.ts +57 -0
- package/Types/AI/AiOutcomes.js +67 -0
- package/Types/AI/AiOutcomes.mjs +10 -0
- package/Types/AI/AiRunRefusal.d.mts +45 -0
- package/Types/AI/AiRunRefusal.d.ts +45 -0
- package/Types/AI/AiRunRefusal.js +187 -0
- package/Types/AI/AiRunRefusal.mjs +12 -0
- package/Types/AI/InvestigationRecording.d.mts +46 -0
- package/Types/AI/InvestigationRecording.d.ts +46 -0
- package/Types/AI/InvestigationRecording.js +42 -0
- package/Types/AI/InvestigationRecording.mjs +7 -0
- package/Types/API/HTTPResponse.d.mts +3 -0
- package/Types/API/HTTPResponse.d.ts +3 -0
- package/Types/API/HTTPResponse.js +15 -0
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
- package/Types/BaseDatabase/ListResult.d.mts +1 -0
- package/Types/BaseDatabase/ListResult.d.ts +1 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
- package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
- package/Types/Date.d.mts +6 -1
- package/Types/Date.d.ts +6 -1
- package/Types/Date.js +39 -7
- package/Types/Date.mjs +1 -0
- package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
- package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
- package/Types/Email/ServerEmailEnvironment.js +793 -0
- package/Types/Email/ServerEmailEnvironment.mjs +14 -0
- package/Types/Exception/AiRunRefusalException.d.mts +6 -0
- package/Types/Exception/AiRunRefusalException.d.ts +6 -0
- package/Types/Exception/AiRunRefusalException.js +23 -0
- package/Types/Exception/AiRunRefusalException.mjs +2 -0
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
- package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
- package/Types/Monitor/UptimeHistoryLabels.js +2 -2
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
- package/Types/Permission.js +2 -2
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +10 -0
- package/Types/ReaderLanguage.d.mts +1 -0
- package/Types/ReaderLanguage.d.ts +1 -0
- package/Types/ReaderLanguage.js +13 -1
- package/Types/ReaderLanguage.mjs +1 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
- package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
- package/Types/ServerSending/ServerSendingStatus.js +49 -2
- package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
- package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
- package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
- package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
- package/Types/Telemetry/CompatibleIngest.js +123 -0
- package/Types/Telemetry/CompatibleIngest.mjs +21 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +48 -7
- package/Types/TimezoneAlias.d.mts +1 -0
- package/Types/TimezoneAlias.d.ts +1 -0
- package/Types/TimezoneAlias.js +13 -0
- package/Types/Translator.js +374 -48
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +2 -2
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
- package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
- package/Utils/HostAddressUtil.d.mts +1 -0
- package/Utils/HostAddressUtil.d.ts +1 -0
- package/Utils/HostAddressUtil.js +30 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/Milliseconds.d.mts +7 -0
- package/Utils/Milliseconds.d.ts +7 -0
- package/Utils/Milliseconds.js +60 -0
- package/Utils/Milliseconds.mjs +4 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
- package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
- package/Utils/Monitor/MonitoringOff.d.mts +2 -0
- package/Utils/Monitor/MonitoringOff.d.ts +2 -0
- package/Utils/Monitor/MonitoringOff.js +21 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
- package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
- package/Utils/Monitor/ProbeFailureReading.js +137 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
- package/Utils/Project/NextNumber.js +1 -1
- package/Utils/PromQL/PromQLAst.d.mts +159 -0
- package/Utils/PromQL/PromQLAst.d.ts +159 -0
- package/Utils/PromQL/PromQLAst.js +118 -0
- package/Utils/PromQL/PromQLAst.mjs +12 -0
- package/Utils/PromQL/PromQLDuration.d.mts +2 -0
- package/Utils/PromQL/PromQLDuration.d.ts +2 -0
- package/Utils/PromQL/PromQLDuration.js +78 -0
- package/Utils/PromQL/PromQLDuration.mjs +3 -0
- package/Utils/PromQL/PromQLEngine.d.mts +15 -0
- package/Utils/PromQL/PromQLEngine.d.ts +15 -0
- package/Utils/PromQL/PromQLEngine.js +965 -0
- package/Utils/PromQL/PromQLEngine.mjs +7 -0
- package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.js +10 -0
- package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
- package/Utils/PromQL/PromQLError.d.mts +11 -0
- package/Utils/PromQL/PromQLError.d.ts +11 -0
- package/Utils/PromQL/PromQLError.js +27 -0
- package/Utils/PromQL/PromQLError.mjs +3 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
- package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
- package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
- package/Utils/PromQL/PromQLFunctions.js +127 -0
- package/Utils/PromQL/PromQLFunctions.mjs +4 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +218 -0
- package/Utils/PromQL/PromQLLabels.mjs +9 -0
- package/Utils/PromQL/PromQLLexer.d.mts +39 -0
- package/Utils/PromQL/PromQLLexer.d.ts +39 -0
- package/Utils/PromQL/PromQLLexer.js +391 -0
- package/Utils/PromQL/PromQLLexer.mjs +3 -0
- package/Utils/PromQL/PromQLMath.d.mts +19 -0
- package/Utils/PromQL/PromQLMath.d.ts +19 -0
- package/Utils/PromQL/PromQLMath.js +200 -0
- package/Utils/PromQL/PromQLMath.mjs +9 -0
- package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
- package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
- package/Utils/PromQL/PromQLMetricNames.js +199 -0
- package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
- package/Utils/PromQL/PromQLParser.d.mts +4 -0
- package/Utils/PromQL/PromQLParser.d.ts +4 -0
- package/Utils/PromQL/PromQLParser.js +831 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +9 -0
- package/Utils/PromQL/PromQLRegex.d.ts +9 -0
- package/Utils/PromQL/PromQLRegex.js +74 -0
- package/Utils/PromQL/PromQLRegex.mjs +2 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +90 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/Rum/PathInSentence.d.mts +5 -0
- package/Utils/Rum/PathInSentence.d.ts +5 -0
- package/Utils/Rum/PathInSentence.js +46 -0
- package/Utils/Rum/PathInSentence.mjs +6 -0
- package/Utils/Rum/UrlScrubber.d.mts +4 -0
- package/Utils/Rum/UrlScrubber.d.ts +4 -0
- package/Utils/Rum/UrlScrubber.js +143 -3
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +180 -25
- package/Utils/Rum/UserFlow.mjs +1 -1
- package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.js +30 -0
- package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
- package/Utils/Schema/TypeSchemas.js +6 -0
- package/Utils/Slo/SloDuration.d.mts +5 -2
- package/Utils/Slo/SloDuration.d.ts +5 -2
- package/Utils/Slo/SloDuration.js +11 -6
- package/Utils/Slo/SloHealth.js +1 -1
- package/Utils/StateOrder.js +1 -4
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ const ServerSendingStatus_1 = __importStar(require("../ServerSending/ServerSendi
|
|
|
48
48
|
* - required: email, HTTPS, who can sign up;
|
|
49
49
|
* - recommended: SMS and calls, a probe that reports, backups, update
|
|
50
50
|
* checks;
|
|
51
|
-
* - optional: browser push, an
|
|
51
|
+
* - optional: browser push, an LLM provider, single sign-on.
|
|
52
52
|
*
|
|
53
53
|
* Whether each is done is worked out from the server's real state on every
|
|
54
54
|
* read (Server/Utils/ServerSetup/ServerSetupChecklist reads the facts and
|
|
@@ -207,7 +207,7 @@ exports.SERVER_SETUP_CHECKS = [
|
|
|
207
207
|
{
|
|
208
208
|
id: ServerSetupCheckId.AiProvider,
|
|
209
209
|
tier: ServerSetupCheckTier.Optional,
|
|
210
|
-
title: (0, Translator_1.translationKey)("
|
|
210
|
+
title: (0, Translator_1.translationKey)("LLM provider"),
|
|
211
211
|
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.llmProviders,
|
|
212
212
|
choice: null,
|
|
213
213
|
tests: [],
|
|
@@ -270,7 +270,7 @@ exports.SERVER_SETUP_STATUS_WORDS = {
|
|
|
270
270
|
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: people can get alerts as browser notifications."),
|
|
271
271
|
},
|
|
272
272
|
[ServerSetupCheckId.AiProvider]: {
|
|
273
|
-
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: add an
|
|
273
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: add an LLM provider so projects can use OneUptime AI."),
|
|
274
274
|
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: projects can use OneUptime AI."),
|
|
275
275
|
},
|
|
276
276
|
[ServerSetupCheckId.SingleSignOn]: {
|
|
@@ -80,7 +80,7 @@ exports.ROWS_KEPT_ON_DELETE_BY_QUERY = {
|
|
|
80
80
|
ScheduledMaintenanceStateTimeline: {
|
|
81
81
|
parentColumn: "scheduledMaintenanceId",
|
|
82
82
|
keepsHistoryInEffect: false,
|
|
83
|
-
whatStays: "each
|
|
83
|
+
whatStays: "each maintenance event's current state",
|
|
84
84
|
why: "so status pages always show it",
|
|
85
85
|
oneRowByIdCanGo: true,
|
|
86
86
|
},
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type NewIncidentNotifyDefaultColumn = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
|
|
2
|
+
export declare const NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN: NewIncidentNotifyDefaultColumn;
|
|
3
|
+
export interface NewIncidentNotifyDefaultSetting {
|
|
4
|
+
notifyStatusPageSubscribersOfNewIncidentsByDefault?: boolean | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default class NewIncidentSubscriberNotificationDefault {
|
|
7
|
+
static isTickedByDefault(project: NewIncidentNotifyDefaultSetting | null | undefined): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type NewIncidentNotifyDefaultColumn = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
|
|
2
|
+
export declare const NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN: NewIncidentNotifyDefaultColumn;
|
|
3
|
+
export interface NewIncidentNotifyDefaultSetting {
|
|
4
|
+
notifyStatusPageSubscribersOfNewIncidentsByDefault?: boolean | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default class NewIncidentSubscriberNotificationDefault {
|
|
7
|
+
static isTickedByDefault(project: NewIncidentNotifyDefaultSetting | null | undefined): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* WHETHER "NOTIFY STATUS PAGE SUBSCRIBERS" STARTS TICKED WHEN SOMEONE
|
|
4
|
+
* DECLARES AN INCIDENT (#7606).
|
|
5
|
+
*
|
|
6
|
+
* Declare New Incident asks whether status page subscribers are told about
|
|
7
|
+
* the new incident (the incident's
|
|
8
|
+
* shouldStatusPageSubscribersBeNotifiedOnIncidentCreated). The box started
|
|
9
|
+
* ticked in every project, so a team that works on an incident before anyone
|
|
10
|
+
* outside hears of it had to remember to untick it every time - and one
|
|
11
|
+
* forgotten box emailed every subscriber.
|
|
12
|
+
*
|
|
13
|
+
* Each project now says how the box starts:
|
|
14
|
+
* Project.notifyStatusPageSubscribersOfNewIncidentsByDefault, the switch
|
|
15
|
+
* "Notify status page subscribers by default" on Incidents -> Settings ->
|
|
16
|
+
* Subscriber Notifications. It is on for every project, existing and new, so
|
|
17
|
+
* nothing changes until a project owner or admin turns it off. Off, the box
|
|
18
|
+
* starts unticked, and subscribers hear about a new incident only when the
|
|
19
|
+
* person declaring it ticks the box.
|
|
20
|
+
*
|
|
21
|
+
* Only where the box starts moves. What the person declaring leaves it at is
|
|
22
|
+
* what the incident records, and everything after reads that: an incident
|
|
23
|
+
* declared without notifying stays quiet
|
|
24
|
+
* (PublicNoteSubscriberNotificationDefault).
|
|
25
|
+
*
|
|
26
|
+
* People also declare incidents where no box asks: Slack's and Microsoft
|
|
27
|
+
* Teams' Declare Incident forms, and OneUptime AI when someone asks it to.
|
|
28
|
+
* Those follow the switch too, as the box would have started
|
|
29
|
+
* (Server/Utils/StatusPage/NewIncidentSubscriberNotificationDefaultReader):
|
|
30
|
+
* off, they are declared without notifying. Incidents nobody declares by
|
|
31
|
+
* hand - by monitors, the API, Terraform, workflows or a public form - keep
|
|
32
|
+
* their own value, which notifies unless they say otherwise.
|
|
33
|
+
*
|
|
34
|
+
* Shared by the dashboard, which starts the box from it, the server, which
|
|
35
|
+
* declares the chat and AI incidents by it, and their tests.
|
|
36
|
+
*/
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN = void 0;
|
|
39
|
+
exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
|
|
40
|
+
class NewIncidentSubscriberNotificationDefault {
|
|
41
|
+
/*
|
|
42
|
+
* Only an explicit "off" starts the box unticked. A project that could not
|
|
43
|
+
* be read, or that holds no value, starts it ticked, as it always started:
|
|
44
|
+
* when the form cannot tell, it keeps what every project has always had.
|
|
45
|
+
*/
|
|
46
|
+
static isTickedByDefault(project) {
|
|
47
|
+
return (project === null || project === void 0 ? void 0 : project[exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN]) !== false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.default = NewIncidentSubscriberNotificationDefault;
|
|
@@ -127,5 +127,5 @@ class PublicNoteSubscriberNotificationDefault {
|
|
|
127
127
|
// Shown under the checkbox when it starts unticked for this reason.
|
|
128
128
|
PublicNoteSubscriberNotificationDefault.quietIncidentDescription = "Unticked by default because status page subscribers were not notified when this incident was declared.";
|
|
129
129
|
PublicNoteSubscriberNotificationDefault.quietIncidentEpisodeDescription = "Unticked by default because status page subscribers were not notified when this episode was created.";
|
|
130
|
-
PublicNoteSubscriberNotificationDefault.quietScheduledMaintenanceDescription = "Unticked by default because status page subscribers were not notified when this
|
|
130
|
+
PublicNoteSubscriberNotificationDefault.quietScheduledMaintenanceDescription = "Unticked by default because status page subscribers were not notified when this maintenance event was created.";
|
|
131
131
|
exports.default = PublicNoteSubscriberNotificationDefault;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const COMPATIBLE_INGEST_URL_PREFIX: string;
|
|
2
|
+
export declare const PROMETHEUS_REMOTE_WRITE_PATH: string;
|
|
3
|
+
export declare const LOKI_PUSH_PATH: string;
|
|
4
|
+
export declare const SPLUNK_HEC_BASE_PATH: string;
|
|
5
|
+
export declare const SPLUNK_HEC_EVENT_PATHS: ReadonlyArray<string>;
|
|
6
|
+
export declare const SPLUNK_HEC_RAW_PATHS: ReadonlyArray<string>;
|
|
7
|
+
export declare const SPLUNK_HEC_HEALTH_PATHS: ReadonlyArray<string>;
|
|
8
|
+
export declare const DATADOG_BASE_PATH: string;
|
|
9
|
+
export declare const DATADOG_LOGS_PATH: string;
|
|
10
|
+
export declare const DATADOG_SERIES_V1_PATH: string;
|
|
11
|
+
export declare const DATADOG_SERIES_V2_PATH: string;
|
|
12
|
+
export declare const DATADOG_SKETCHES_PATH: string;
|
|
13
|
+
export declare const DATADOG_CHECK_RUN_PATH: string;
|
|
14
|
+
export declare const DATADOG_VALIDATE_PATH: string;
|
|
15
|
+
export declare const DATADOG_METADATA_PATHS: ReadonlyArray<string>;
|
|
16
|
+
export declare const DATADOG_PATHS: ReadonlyArray<string>;
|
|
17
|
+
export declare const DATADOG_ROOT_PATHS: ReadonlyArray<string>;
|
|
18
|
+
export declare const SENTRY_BASE_PATH: string;
|
|
19
|
+
export declare const SENTRY_DSN_PROJECT_NUMBER: string;
|
|
20
|
+
export declare function isCompatibleIngestPath(path: string): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const COMPATIBLE_INGEST_URL_PREFIX: string;
|
|
2
|
+
export declare const PROMETHEUS_REMOTE_WRITE_PATH: string;
|
|
3
|
+
export declare const LOKI_PUSH_PATH: string;
|
|
4
|
+
export declare const SPLUNK_HEC_BASE_PATH: string;
|
|
5
|
+
export declare const SPLUNK_HEC_EVENT_PATHS: ReadonlyArray<string>;
|
|
6
|
+
export declare const SPLUNK_HEC_RAW_PATHS: ReadonlyArray<string>;
|
|
7
|
+
export declare const SPLUNK_HEC_HEALTH_PATHS: ReadonlyArray<string>;
|
|
8
|
+
export declare const DATADOG_BASE_PATH: string;
|
|
9
|
+
export declare const DATADOG_LOGS_PATH: string;
|
|
10
|
+
export declare const DATADOG_SERIES_V1_PATH: string;
|
|
11
|
+
export declare const DATADOG_SERIES_V2_PATH: string;
|
|
12
|
+
export declare const DATADOG_SKETCHES_PATH: string;
|
|
13
|
+
export declare const DATADOG_CHECK_RUN_PATH: string;
|
|
14
|
+
export declare const DATADOG_VALIDATE_PATH: string;
|
|
15
|
+
export declare const DATADOG_METADATA_PATHS: ReadonlyArray<string>;
|
|
16
|
+
export declare const DATADOG_PATHS: ReadonlyArray<string>;
|
|
17
|
+
export declare const DATADOG_ROOT_PATHS: ReadonlyArray<string>;
|
|
18
|
+
export declare const SENTRY_BASE_PATH: string;
|
|
19
|
+
export declare const SENTRY_DSN_PROJECT_NUMBER: string;
|
|
20
|
+
export declare function isCompatibleIngestPath(path: string): boolean;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THE COMPATIBLE INGEST ENDPOINTS: OTHER TOOLS' PROTOCOLS, ACCEPTED AS THEY
|
|
4
|
+
* ARE.
|
|
5
|
+
*
|
|
6
|
+
* A team moving to OneUptime should not have to re-instrument anything to
|
|
7
|
+
* try it. These endpoints accept what the agents and SDKs they already run
|
|
8
|
+
* send - Prometheus remote write, Loki's push API, Splunk's HTTP Event
|
|
9
|
+
* Collector, the Datadog Agent and Datadog's HTTP intake, and Sentry SDKs -
|
|
10
|
+
* so moving is a change of URL and key. What arrives is turned into OTLP
|
|
11
|
+
* and stored like any OpenTelemetry data.
|
|
12
|
+
*
|
|
13
|
+
* Each path is given without the /telemetry prefix: the App serves every
|
|
14
|
+
* telemetry route under both "/telemetry" and "/" (FeatureSet/Telemetry),
|
|
15
|
+
* and the shipped ingress sends /telemetry to the App on every install.
|
|
16
|
+
*
|
|
17
|
+
* Shared by the server (the routes, and StartServer, which leaves these
|
|
18
|
+
* paths' bodies to them), the dashboard's setup guide and the docs tests.
|
|
19
|
+
* React-free and Node-free.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.SENTRY_DSN_PROJECT_NUMBER = exports.SENTRY_BASE_PATH = exports.DATADOG_ROOT_PATHS = exports.DATADOG_PATHS = exports.DATADOG_METADATA_PATHS = exports.DATADOG_VALIDATE_PATH = exports.DATADOG_CHECK_RUN_PATH = exports.DATADOG_SKETCHES_PATH = exports.DATADOG_SERIES_V2_PATH = exports.DATADOG_SERIES_V1_PATH = exports.DATADOG_LOGS_PATH = exports.DATADOG_BASE_PATH = exports.SPLUNK_HEC_HEALTH_PATHS = exports.SPLUNK_HEC_RAW_PATHS = exports.SPLUNK_HEC_EVENT_PATHS = exports.SPLUNK_HEC_BASE_PATH = exports.LOKI_PUSH_PATH = exports.PROMETHEUS_REMOTE_WRITE_PATH = exports.COMPATIBLE_INGEST_URL_PREFIX = void 0;
|
|
23
|
+
exports.isCompatibleIngestPath = isCompatibleIngestPath;
|
|
24
|
+
exports.COMPATIBLE_INGEST_URL_PREFIX = "/telemetry";
|
|
25
|
+
// Prometheus remote write (1.0 and 2.0): a Prometheus server, Grafana Alloy, an agent.
|
|
26
|
+
exports.PROMETHEUS_REMOTE_WRITE_PATH = "/prometheus/api/v1/write";
|
|
27
|
+
// Loki's push API, at Loki's own path: Promtail, Grafana Alloy, Fluent Bit, Vector.
|
|
28
|
+
exports.LOKI_PUSH_PATH = "/loki/api/v1/push";
|
|
29
|
+
/*
|
|
30
|
+
* Splunk's HTTP Event Collector, at Splunk's own paths. Some clients
|
|
31
|
+
* (Splunk's Docker logging driver, Fluent Bit's splunk output) post to
|
|
32
|
+
* these paths at the root of the host they are given, so the shipped
|
|
33
|
+
* ingress sends /services/collector to the App too.
|
|
34
|
+
*/
|
|
35
|
+
exports.SPLUNK_HEC_BASE_PATH = "/services/collector";
|
|
36
|
+
exports.SPLUNK_HEC_EVENT_PATHS = [
|
|
37
|
+
"/services/collector",
|
|
38
|
+
"/services/collector/event",
|
|
39
|
+
"/services/collector/event/1.0",
|
|
40
|
+
];
|
|
41
|
+
exports.SPLUNK_HEC_RAW_PATHS = [
|
|
42
|
+
"/services/collector/raw",
|
|
43
|
+
];
|
|
44
|
+
exports.SPLUNK_HEC_HEALTH_PATHS = [
|
|
45
|
+
"/services/collector/health",
|
|
46
|
+
];
|
|
47
|
+
/*
|
|
48
|
+
* Datadog's intake, under /datadog: the Datadog Agent's `dd_url` is
|
|
49
|
+
* <host>/telemetry/datadog, and the routes below it are Datadog's own.
|
|
50
|
+
*/
|
|
51
|
+
exports.DATADOG_BASE_PATH = "/datadog";
|
|
52
|
+
exports.DATADOG_LOGS_PATH = "/api/v2/logs";
|
|
53
|
+
exports.DATADOG_SERIES_V1_PATH = "/api/v1/series";
|
|
54
|
+
exports.DATADOG_SERIES_V2_PATH = "/api/v2/series";
|
|
55
|
+
exports.DATADOG_SKETCHES_PATH = "/api/beta/sketches";
|
|
56
|
+
exports.DATADOG_CHECK_RUN_PATH = "/api/v1/check_run";
|
|
57
|
+
exports.DATADOG_VALIDATE_PATH = "/api/v1/validate";
|
|
58
|
+
/*
|
|
59
|
+
* What the Agent reports about itself and its host (host tags, inventory).
|
|
60
|
+
* Not telemetry: accepted so the Agent reports no error, and not kept.
|
|
61
|
+
*/
|
|
62
|
+
exports.DATADOG_METADATA_PATHS = [
|
|
63
|
+
"/intake",
|
|
64
|
+
"/api/v1/metadata",
|
|
65
|
+
];
|
|
66
|
+
// Every intake path, as served under /datadog.
|
|
67
|
+
exports.DATADOG_PATHS = [
|
|
68
|
+
exports.DATADOG_LOGS_PATH,
|
|
69
|
+
exports.DATADOG_SERIES_V1_PATH,
|
|
70
|
+
exports.DATADOG_SERIES_V2_PATH,
|
|
71
|
+
exports.DATADOG_SKETCHES_PATH,
|
|
72
|
+
exports.DATADOG_CHECK_RUN_PATH,
|
|
73
|
+
exports.DATADOG_VALIDATE_PATH,
|
|
74
|
+
...exports.DATADOG_METADATA_PATHS,
|
|
75
|
+
];
|
|
76
|
+
/*
|
|
77
|
+
* The Datadog Agent posts logs to /api/v2/logs on the host it is given
|
|
78
|
+
* (logs_config.logs_dd_url is a host and port, never a path), so that one
|
|
79
|
+
* route is served at the root too - only to a request that carries a
|
|
80
|
+
* DD-API-KEY header, so nothing else under /api is ever answered by it.
|
|
81
|
+
* Everything else the Agent sends goes to dd_url, which takes a path.
|
|
82
|
+
*/
|
|
83
|
+
exports.DATADOG_ROOT_PATHS = [exports.DATADOG_LOGS_PATH];
|
|
84
|
+
/*
|
|
85
|
+
* Sentry's ingest API under /sentry: a DSN of
|
|
86
|
+
* https://<key>@<host>/telemetry/sentry/<number> makes an SDK post to
|
|
87
|
+
* <host>/telemetry/sentry/api/<number>/envelope/. The number is any number
|
|
88
|
+
* (SDKs refuse a DSN without one); it is not read.
|
|
89
|
+
*/
|
|
90
|
+
exports.SENTRY_BASE_PATH = "/sentry";
|
|
91
|
+
exports.SENTRY_DSN_PROJECT_NUMBER = "1";
|
|
92
|
+
// /sentry/api/<n>/envelope or /store, without /telemetry or a trailing slash.
|
|
93
|
+
const SENTRY_INGEST_PATH = /^\/sentry\/api\/[^/]+\/(envelope|store)$/;
|
|
94
|
+
/*
|
|
95
|
+
* Whether StartServer's body parsers must leave a request's body to the
|
|
96
|
+
* compatible endpoint it is for: matched as the routers match, in any
|
|
97
|
+
* case, with or without the /telemetry prefix and a trailing slash.
|
|
98
|
+
*/
|
|
99
|
+
function isCompatibleIngestPath(path) {
|
|
100
|
+
let normalized = (path || "").toLowerCase();
|
|
101
|
+
while (normalized.length > 1 && normalized.endsWith("/")) {
|
|
102
|
+
normalized = normalized.slice(0, -1);
|
|
103
|
+
}
|
|
104
|
+
if (normalized.startsWith(`${exports.COMPATIBLE_INGEST_URL_PREFIX}/`)) {
|
|
105
|
+
normalized = normalized.slice(exports.COMPATIBLE_INGEST_URL_PREFIX.length);
|
|
106
|
+
}
|
|
107
|
+
if (normalized === exports.PROMETHEUS_REMOTE_WRITE_PATH ||
|
|
108
|
+
normalized === exports.LOKI_PUSH_PATH) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
if (normalized === exports.SPLUNK_HEC_BASE_PATH ||
|
|
112
|
+
normalized.startsWith(`${exports.SPLUNK_HEC_BASE_PATH}/`)) {
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
if (normalized.startsWith(`${exports.DATADOG_BASE_PATH}/`) &&
|
|
116
|
+
exports.DATADOG_PATHS.includes(normalized.slice(exports.DATADOG_BASE_PATH.length))) {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
if (exports.DATADOG_ROOT_PATHS.includes(normalized)) {
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
return SENTRY_INGEST_PATH.test(normalized);
|
|
123
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import commonJsModule from "./CompatibleIngest.js";
|
|
2
|
+
export const COMPATIBLE_INGEST_URL_PREFIX = commonJsModule.COMPATIBLE_INGEST_URL_PREFIX;
|
|
3
|
+
export const DATADOG_BASE_PATH = commonJsModule.DATADOG_BASE_PATH;
|
|
4
|
+
export const DATADOG_CHECK_RUN_PATH = commonJsModule.DATADOG_CHECK_RUN_PATH;
|
|
5
|
+
export const DATADOG_LOGS_PATH = commonJsModule.DATADOG_LOGS_PATH;
|
|
6
|
+
export const DATADOG_METADATA_PATHS = commonJsModule.DATADOG_METADATA_PATHS;
|
|
7
|
+
export const DATADOG_PATHS = commonJsModule.DATADOG_PATHS;
|
|
8
|
+
export const DATADOG_ROOT_PATHS = commonJsModule.DATADOG_ROOT_PATHS;
|
|
9
|
+
export const DATADOG_SERIES_V1_PATH = commonJsModule.DATADOG_SERIES_V1_PATH;
|
|
10
|
+
export const DATADOG_SERIES_V2_PATH = commonJsModule.DATADOG_SERIES_V2_PATH;
|
|
11
|
+
export const DATADOG_SKETCHES_PATH = commonJsModule.DATADOG_SKETCHES_PATH;
|
|
12
|
+
export const DATADOG_VALIDATE_PATH = commonJsModule.DATADOG_VALIDATE_PATH;
|
|
13
|
+
export const LOKI_PUSH_PATH = commonJsModule.LOKI_PUSH_PATH;
|
|
14
|
+
export const PROMETHEUS_REMOTE_WRITE_PATH = commonJsModule.PROMETHEUS_REMOTE_WRITE_PATH;
|
|
15
|
+
export const SENTRY_BASE_PATH = commonJsModule.SENTRY_BASE_PATH;
|
|
16
|
+
export const SENTRY_DSN_PROJECT_NUMBER = commonJsModule.SENTRY_DSN_PROJECT_NUMBER;
|
|
17
|
+
export const SPLUNK_HEC_BASE_PATH = commonJsModule.SPLUNK_HEC_BASE_PATH;
|
|
18
|
+
export const SPLUNK_HEC_EVENT_PATHS = commonJsModule.SPLUNK_HEC_EVENT_PATHS;
|
|
19
|
+
export const SPLUNK_HEC_HEALTH_PATHS = commonJsModule.SPLUNK_HEC_HEALTH_PATHS;
|
|
20
|
+
export const SPLUNK_HEC_RAW_PATHS = commonJsModule.SPLUNK_HEC_RAW_PATHS;
|
|
21
|
+
export const isCompatibleIngestPath = commonJsModule.isCompatibleIngestPath;
|
|
@@ -15,6 +15,11 @@ declare enum TelemetryIngestSurface {
|
|
|
15
15
|
DbtArtifacts = "dbt-artifacts",
|
|
16
16
|
SyncWebhooks = "sync-webhooks",
|
|
17
17
|
SecurityEvents = "security-events",
|
|
18
|
+
PrometheusRemoteWrite = "prometheus-remote-write",
|
|
19
|
+
Loki = "loki",
|
|
20
|
+
SplunkHec = "splunk-hec",
|
|
21
|
+
Datadog = "datadog",
|
|
22
|
+
Sentry = "sentry",
|
|
18
23
|
Grpc = "grpc",
|
|
19
24
|
Mqtt = "mqtt",
|
|
20
25
|
KubernetesAgentRunner = "kubernetes-agent-runner",
|
|
@@ -15,6 +15,11 @@ declare enum TelemetryIngestSurface {
|
|
|
15
15
|
DbtArtifacts = "dbt-artifacts",
|
|
16
16
|
SyncWebhooks = "sync-webhooks",
|
|
17
17
|
SecurityEvents = "security-events",
|
|
18
|
+
PrometheusRemoteWrite = "prometheus-remote-write",
|
|
19
|
+
Loki = "loki",
|
|
20
|
+
SplunkHec = "splunk-hec",
|
|
21
|
+
Datadog = "datadog",
|
|
22
|
+
Sentry = "sentry",
|
|
18
23
|
Grpc = "grpc",
|
|
19
24
|
Mqtt = "mqtt",
|
|
20
25
|
KubernetesAgentRunner = "kubernetes-agent-runner",
|
|
@@ -48,6 +48,32 @@ var TelemetryIngestSurface;
|
|
|
48
48
|
*/
|
|
49
49
|
TelemetryIngestSurface["SyncWebhooks"] = "sync-webhooks";
|
|
50
50
|
TelemetryIngestSurface["SecurityEvents"] = "security-events";
|
|
51
|
+
/*
|
|
52
|
+
* The compatible endpoints (Types/Telemetry/CompatibleIngest): other
|
|
53
|
+
* tools' protocols, turned into OTLP. Prometheus remote write
|
|
54
|
+
* (POST /prometheus/api/v1/write): a Prometheus server's or an agent's
|
|
55
|
+
* metrics. Server keys only.
|
|
56
|
+
*/
|
|
57
|
+
TelemetryIngestSurface["PrometheusRemoteWrite"] = "prometheus-remote-write";
|
|
58
|
+
// Loki's push API (POST /loki/api/v1/push): log shippers. Server keys only.
|
|
59
|
+
TelemetryIngestSurface["Loki"] = "loki";
|
|
60
|
+
/*
|
|
61
|
+
* Splunk's HTTP Event Collector (POST /services/collector/...): log
|
|
62
|
+
* shippers and Splunk forwarders, logs and metric events. Server keys
|
|
63
|
+
* only.
|
|
64
|
+
*/
|
|
65
|
+
TelemetryIngestSurface["SplunkHec"] = "splunk-hec";
|
|
66
|
+
/*
|
|
67
|
+
* The Datadog Agent's and Datadog HTTP API's intake (/datadog/api/...):
|
|
68
|
+
* logs and metrics from hosts. Server keys only.
|
|
69
|
+
*/
|
|
70
|
+
TelemetryIngestSurface["Datadog"] = "datadog";
|
|
71
|
+
/*
|
|
72
|
+
* Sentry SDKs' envelopes and events (/sentry/api/<n>/envelope/): errors,
|
|
73
|
+
* transactions and logs. A browser key may write here - see the
|
|
74
|
+
* allowlist below.
|
|
75
|
+
*/
|
|
76
|
+
TelemetryIngestSurface["Sentry"] = "sentry";
|
|
51
77
|
TelemetryIngestSurface["Grpc"] = "grpc";
|
|
52
78
|
TelemetryIngestSurface["Mqtt"] = "mqtt";
|
|
53
79
|
/*
|
|
@@ -111,19 +137,29 @@ exports.IDENTITY_REGISTRATION_SURFACES = new Set([
|
|
|
111
137
|
* "browser keys cannot reach a new endpoint" rather than "a key scraped off a
|
|
112
138
|
* public page can reach it".
|
|
113
139
|
*
|
|
114
|
-
* The
|
|
115
|
-
* logs and metrics from the web SDKs,
|
|
116
|
-
* else is a server-side or
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
140
|
+
* The members are exactly what a real browser agent emits: OTLP traces,
|
|
141
|
+
* logs and metrics from the web SDKs, session replay chunks, and Sentry's
|
|
142
|
+
* browser SDK's envelopes. Everything else is a server-side or
|
|
143
|
+
* infrastructure pipe that no page has any business calling - profiles,
|
|
144
|
+
* syslog, Fluent, Pyroscope, Kubernetes cost, gRPC, MQTT, remote write,
|
|
145
|
+
* Loki, HEC, Datadog - or is a build-time artifact upload (source maps)
|
|
146
|
+
* that belongs in CI with a server key, not in the browser bundle, which
|
|
147
|
+
* would otherwise be able to overwrite the maps used to de-obfuscate
|
|
148
|
+
* everyone else's stack traces.
|
|
149
|
+
*
|
|
150
|
+
* Sentry is here because a Sentry DSN is published by design: @sentry/browser
|
|
151
|
+
* and @sentry/react are given one in page JavaScript, exactly as the web
|
|
152
|
+
* OTLP SDKs are given a browser key. Refusing browser keys there would push
|
|
153
|
+
* teams to paste a SERVER key into their bundle instead. What an envelope
|
|
154
|
+
* can write is what a browser OTLP exporter can - errors and transactions as
|
|
155
|
+
* traces, and logs - with the key's origin allowlist and rate limit.
|
|
121
156
|
*/
|
|
122
157
|
exports.BROWSER_ALLOWED_INGEST_SURFACES = new Set([
|
|
123
158
|
TelemetryIngestSurface.OtelTraces,
|
|
124
159
|
TelemetryIngestSurface.OtelLogs,
|
|
125
160
|
TelemetryIngestSurface.OtelMetrics,
|
|
126
161
|
TelemetryIngestSurface.SessionReplay,
|
|
162
|
+
TelemetryIngestSurface.Sentry,
|
|
127
163
|
]);
|
|
128
164
|
/*
|
|
129
165
|
* Typed as a total Record rather than a partial lookup so that adding a member
|
|
@@ -147,6 +183,11 @@ const INGEST_SURFACE_READABLE_NAMES = {
|
|
|
147
183
|
[TelemetryIngestSurface.DbtArtifacts]: "dbt artifacts upload",
|
|
148
184
|
[TelemetryIngestSurface.SyncWebhooks]: "Fivetran and Airbyte sync webhooks",
|
|
149
185
|
[TelemetryIngestSurface.SecurityEvents]: "security event ingest",
|
|
186
|
+
[TelemetryIngestSurface.PrometheusRemoteWrite]: "Prometheus remote write",
|
|
187
|
+
[TelemetryIngestSurface.Loki]: "Loki push",
|
|
188
|
+
[TelemetryIngestSurface.SplunkHec]: "Splunk HTTP Event Collector",
|
|
189
|
+
[TelemetryIngestSurface.Datadog]: "Datadog intake",
|
|
190
|
+
[TelemetryIngestSurface.Sentry]: "Sentry ingest",
|
|
150
191
|
[TelemetryIngestSurface.Grpc]: "gRPC ingest",
|
|
151
192
|
[TelemetryIngestSurface.Mqtt]: "MQTT ingest",
|
|
152
193
|
[TelemetryIngestSurface.KubernetesAgentRunner]: "Kubernetes agent Runner registration",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Timezone from "./Timezone.mjs";
|
|
2
2
|
export declare const LEGACY_TIMEZONE_NAMES: Readonly<Partial<Record<Timezone, Timezone>>>;
|
|
3
3
|
export default class TimezoneAlias {
|
|
4
|
+
static isListedName(value: unknown): value is Timezone;
|
|
4
5
|
static isLegacyName(timezone: string | null | undefined): boolean;
|
|
5
6
|
static getCanonicalTimezone(timezone: Timezone | string): Timezone;
|
|
6
7
|
static getLegacyNamesOf(timezone: Timezone): Array<Timezone>;
|
package/Types/TimezoneAlias.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Timezone from "./Timezone";
|
|
2
2
|
export declare const LEGACY_TIMEZONE_NAMES: Readonly<Partial<Record<Timezone, Timezone>>>;
|
|
3
3
|
export default class TimezoneAlias {
|
|
4
|
+
static isListedName(value: unknown): value is Timezone;
|
|
4
5
|
static isLegacyName(timezone: string | null | undefined): boolean;
|
|
5
6
|
static getCanonicalTimezone(timezone: Timezone | string): Timezone;
|
|
6
7
|
static getLegacyNamesOf(timezone: Timezone): Array<Timezone>;
|
package/Types/TimezoneAlias.js
CHANGED
|
@@ -264,6 +264,8 @@ const buildCanonicalIndex = () => {
|
|
|
264
264
|
return index;
|
|
265
265
|
};
|
|
266
266
|
const CANONICAL_BY_LOWERCASE_NAME = buildCanonicalIndex();
|
|
267
|
+
// Every name in the enum, spelled exactly as the enum spells it.
|
|
268
|
+
const LISTED_NAMES = new Set(Object.values(Timezone_1.default));
|
|
267
269
|
const LEGACY_LOWERCASE_NAMES = new Set(Object.keys(exports.LEGACY_TIMEZONE_NAMES).map((timezone) => {
|
|
268
270
|
return timezone.toLowerCase();
|
|
269
271
|
}));
|
|
@@ -281,6 +283,17 @@ const buildLegacyNamesByCurrentName = () => {
|
|
|
281
283
|
};
|
|
282
284
|
const LEGACY_NAMES_BY_CURRENT_NAME = buildLegacyNamesByCurrentName();
|
|
283
285
|
class TimezoneAlias {
|
|
286
|
+
/*
|
|
287
|
+
* True for a name exactly as the Timezone list spells it - "Asia/Kolkata",
|
|
288
|
+
* and the legacy "Asia/Calcutta" too, which stays accepted everywhere - and
|
|
289
|
+
* for nothing else: not another spelling of one ("asia/kolkata"), not a
|
|
290
|
+
* zone newer than the list, not a value that is not text. Where a request
|
|
291
|
+
* names a zone that reaches the database (an aggregate's timezone, issue
|
|
292
|
+
* #7277), this is the whole of what it may be.
|
|
293
|
+
*/
|
|
294
|
+
static isListedName(value) {
|
|
295
|
+
return typeof value === "string" && LISTED_NAMES.has(value);
|
|
296
|
+
}
|
|
284
297
|
/*
|
|
285
298
|
* True for a name kept only for backward compatibility — one the picker
|
|
286
299
|
* does not offer because it offers the same clock under its current name.
|