@oneuptime/common 14.0.110 → 14.2.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.d.mts +1 -0
- package/Models/DatabaseModels/Alert.d.ts +1 -0
- package/Models/DatabaseModels/Alert.js +52 -2
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +62 -0
- 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.d.mts +1 -0
- package/Models/DatabaseModels/Incident.d.ts +1 -0
- package/Models/DatabaseModels/Incident.js +53 -2
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.mts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.ts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.js +591 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.mjs +3 -0
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/Index.js +6 -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/TelemetryIngestionKey.js +1 -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 +28 -2
- package/Types/AI/AIActionWords.d.ts +28 -2
- package/Types/AI/AIActionWords.js +235 -3
- package/Types/AI/AIActionWords.mjs +8 -0
- package/Types/AI/AIChatTypes.d.mts +3 -1
- package/Types/AI/AIChatTypes.d.ts +3 -1
- package/Types/AI/AIReadTableWords.d.mts +192 -0
- package/Types/AI/AIReadTableWords.d.ts +192 -0
- package/Types/AI/AIReadTableWords.js +368 -0
- package/Types/AI/AIReadTableWords.mjs +18 -0
- 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 +48 -0
- package/Types/AI/AiRunRefusal.d.ts +48 -0
- package/Types/AI/AiRunRefusal.js +208 -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/AI/ResourceAiAccessPermissions.js +7 -18
- 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/AuditLog/AuditLogActionLabel.js +19 -9
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +32 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +32 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +199 -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/Cloud/CloudResourceHealth.d.mts +30 -1
- package/Types/Cloud/CloudResourceHealth.d.ts +30 -1
- package/Types/Cloud/CloudResourceHealth.js +405 -13
- package/Types/Cloud/CloudResourceHealth.mjs +28 -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/DataObservability/DataCheckRefusals.d.mts +32 -0
- package/Types/DataObservability/DataCheckRefusals.d.ts +32 -0
- package/Types/DataObservability/DataCheckRefusals.js +77 -0
- package/Types/DataObservability/DataCheckRefusals.mjs +8 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
- package/Types/Date.d.mts +8 -1
- package/Types/Date.d.ts +8 -1
- package/Types/Date.js +61 -7
- package/Types/Date.mjs +1 -0
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +8 -5
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -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/Exception/EgressGuardException.js +1 -1
- package/Types/Exception/ErrorMessageRule.d.mts +1 -0
- package/Types/Exception/ErrorMessageRule.d.ts +1 -0
- package/Types/Exception/ErrorMessageRule.js +67 -13
- package/Types/Exception/ErrorMessageRule.mjs +1 -0
- package/Types/Exception/ExceptionMessages.d.mts +2 -0
- package/Types/Exception/ExceptionMessages.d.ts +2 -0
- package/Types/Exception/ExceptionMessages.js +2 -0
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/Incident/PostmortemActionItemStatus.d.mts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.d.ts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.js +74 -0
- package/Types/Incident/PostmortemActionItemStatus.mjs +5 -0
- package/Types/JSONFunctions.js +10 -3
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -0
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/MeaningKeys.d.mts +4 -0
- package/Types/MeaningKeys.d.ts +4 -0
- package/Types/MeaningKeys.js +74 -0
- package/Types/MeaningKeys.mjs +5 -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/Monitor/WhoIsTold.d.mts +3 -0
- package/Types/Monitor/WhoIsTold.d.ts +3 -0
- package/Types/Monitor/WhoIsTold.js +63 -13
- package/Types/NoBreakSpaces.d.mts +16 -0
- package/Types/NoBreakSpaces.d.ts +16 -0
- package/Types/NoBreakSpaces.js +419 -0
- package/Types/NoBreakSpaces.mjs +9 -0
- package/Types/NotificationRule/PagingLadder.d.mts +12 -0
- package/Types/NotificationRule/PagingLadder.d.ts +12 -0
- package/Types/NotificationRule/PagingLadder.js +159 -11
- package/Types/NotificationRule/PagingLadder.mjs +3 -0
- 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/OnCallPageRecordGone.d.mts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +42 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +4 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.js +21 -20
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +125 -1
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +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/OnCallTestPage.d.mts +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +12 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -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/OpenStack/OpenStackCapacity.js +12 -5
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +66 -10
- 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/Product/ProductUsage.js +2 -1
- package/Types/Product/ProjectProductsAnswer.js +2 -1
- 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/ResourceAiAgent/AiResourceType.d.mts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.d.ts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.js +12 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/Rum/ProductAnalyticsEventReads.js +10 -1
- package/Types/Rum/ProductAnalyticsEvents.js +13 -1
- package/Types/Rum/SessionReplayCustomEvents.d.mts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.d.ts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.js +12 -0
- package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
- 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/SetupHealth/SetupHealth.d.mts +1 -0
- package/Types/SetupHealth/SetupHealth.d.ts +1 -0
- package/Types/SetupHealth/SetupHealth.js +13 -5
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/DefaultStatusNames.d.mts +11 -3
- package/Types/StatusPage/DefaultStatusNames.d.ts +11 -3
- package/Types/StatusPage/DefaultStatusNames.js +74 -28
- package/Types/StatusPage/DefaultStatusNames.mjs +9 -2
- 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/StatusPage/StateChangeNoteMessage.d.mts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.d.ts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.js +16 -13
- 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/Telemetry/TelemetryIngestionKeyType.js +7 -6
- package/Types/TimezoneAlias.d.mts +1 -0
- package/Types/TimezoneAlias.d.ts +1 -0
- package/Types/TimezoneAlias.js +13 -0
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +470 -63
- package/Types/Translator.mjs +1 -0
- package/Types/UserSession/SessionLength.d.mts +33 -0
- package/Types/UserSession/SessionLength.d.ts +33 -0
- package/Types/UserSession/SessionLength.js +134 -5
- package/Types/UserSession/SessionLength.mjs +5 -0
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +2 -2
- package/Types/Workflow/WorkflowStatus.js +21 -10
- 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/AI/InvestigationReport.js +2 -2
- package/Utils/API.d.mts +0 -11
- package/Utils/API.d.ts +0 -11
- package/Utils/API.js +0 -432
- package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +2 -2
- package/Utils/AiRemediation/VerifiedFixRunbook.d.mts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.d.ts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.js +231 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.mjs +10 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +11 -2
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.js +5 -3
- 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/DefaultRecordNames.d.mts +6 -0
- package/Utils/DefaultRecordNames.d.ts +6 -0
- package/Utils/DefaultRecordNames.js +122 -0
- package/Utils/DefaultRecordNames.mjs +6 -0
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/Grok/Grok.js +7 -4
- 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/Incident/PostmortemActionItemCodeTask.d.mts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +107 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +10 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.mts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.ts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.js +118 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.mjs +12 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.mts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.ts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.js +544 -0
- package/Utils/Incident/PostmortemNoteActionItems.mjs +7 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/LookupTable.d.mts +3 -0
- package/Utils/LookupTable.d.ts +3 -0
- package/Utils/LookupTable.js +61 -0
- package/Utils/LookupTable.mjs +3 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +101 -1
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +2 -0
- package/Utils/Markdown/OverLongText.js +296 -2
- package/Utils/Markdown/SlowMarkdown.d.mts +1 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +1 -0
- package/Utils/Markdown/SlowMarkdown.js +354 -4
- package/Utils/Markdown/SlowMarkdown.mjs +1 -0
- package/Utils/Metrics/MetricFormulaEvaluator.js +10 -4
- package/Utils/Metrics/MetricSeriesFingerprint.js +13 -4
- package/Utils/Metrics/MetricSeriesScope.d.mts +5 -0
- package/Utils/Metrics/MetricSeriesScope.d.ts +5 -0
- package/Utils/Metrics/MetricSeriesScope.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 +5 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +5 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +148 -5
- 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/ProbeAgreementRule.d.mts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.d.ts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.js +58 -0
- package/Utils/Monitor/ProbeAgreementRule.mjs +3 -0
- package/Utils/Monitor/ProbeFailureReading.d.mts +18 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +18 -0
- package/Utils/Monitor/ProbeFailureReading.js +166 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +8 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.mts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.ts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.js +252 -0
- package/Utils/Monitor/RequestFailureDescriptions.mjs +6 -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 +974 -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 +829 -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/PromQLLabelOrder.d.mts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.d.ts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.js +212 -0
- package/Utils/PromQL/PromQLLabelOrder.mjs +6 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +219 -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 +205 -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 +836 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +20 -0
- package/Utils/PromQL/PromQLRegex.d.ts +20 -0
- package/Utils/PromQL/PromQLRegex.js +1014 -0
- package/Utils/PromQL/PromQLRegex.mjs +5 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +92 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/PromQL/RE2CharacterClass.d.mts +24 -0
- package/Utils/PromQL/RE2CharacterClass.d.ts +24 -0
- package/Utils/PromQL/RE2CharacterClass.js +532 -0
- package/Utils/PromQL/RE2CharacterClass.mjs +16 -0
- package/Utils/RequestFailedDetailsUtil.d.mts +15 -0
- package/Utils/RequestFailedDetailsUtil.d.ts +15 -0
- package/Utils/RequestFailedDetailsUtil.js +452 -0
- package/Utils/RequestFailedDetailsUtil.mjs +2 -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 +5 -1
- package/Utils/Rum/UrlScrubber.d.ts +5 -1
- package/Utils/Rum/UrlScrubber.js +153 -7
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +202 -29
- 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/SecurityCase/SecurityOverviewMetrics.d.mts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.js +99 -17
- package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +3 -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/Sms/OnCallPageSms.d.mts +2 -0
- package/Utils/Sms/OnCallPageSms.d.ts +2 -0
- package/Utils/Sms/OnCallPageSms.js +3 -1
- package/Utils/StateListType.d.mts +11 -0
- package/Utils/StateListType.d.ts +11 -0
- package/Utils/StateListType.js +21 -0
- package/Utils/StateListType.mjs +2 -0
- package/Utils/StateOrder.d.mts +8 -11
- package/Utils/StateOrder.d.ts +8 -11
- package/Utils/StateOrder.js +50 -88
- package/Utils/StateOrder.mjs +2 -0
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.mts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.ts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.js +25 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.mjs +2 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.mts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.ts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.js +39 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.mjs +2 -0
- package/Utils/Syslog/SyslogMessageParser.js +16 -6
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +113 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/Utils/ValueFormatter.d.mts +1 -0
- package/Utils/ValueFormatter.d.ts +1 -0
- package/Utils/ValueFormatter.js +258 -18
- package/package.json +1 -1
|
@@ -1,50 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DEFAULT_STATUS_NAMES = exports.DEFAULT_SECURITY_CASE_PRIORITY_NAMES = exports.DEFAULT_SECURITY_CASE_STATUS_NAMES = exports.DEFAULT_POSTMORTEM_STATUS_NAMES = exports.DEFAULT_SCHEDULED_MAINTENANCE_STATE_NAMES = exports.DEFAULT_MONITOR_STATUS_NAMES = exports.DEFAULT_ALERT_SEVERITY_NAMES = exports.DEFAULT_INCIDENT_SEVERITY_NAMES = exports.DEFAULT_ALERT_STATE_NAMES = exports.DEFAULT_INCIDENT_STATE_NAMES = void 0;
|
|
4
4
|
const Translator_1 = require("../Translator");
|
|
5
5
|
/*
|
|
6
6
|
* THE NAMES ONEUPTIME GIVES EVERY NEW PROJECT'S STATES, SEVERITIES AND
|
|
7
|
-
* STATUSES (ProjectService)
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* (StatusPage/src/Utils/StatusTranslation), and so do its notifications to
|
|
12
|
-
* its subscribers (Server/Utils/StatusPage/SubscriberMessageText). A name
|
|
13
|
-
* the project changed is its own, and reads as written in every language.
|
|
7
|
+
* STATUSES (ProjectService), one list for each kind of record. They are
|
|
8
|
+
* OneUptime's words, read in the reader's language; a name the project
|
|
9
|
+
* changed is its own, and reads as written in every language. Which list a
|
|
10
|
+
* record's name is read against goes by its table (Utils/DefaultRecordNames).
|
|
14
11
|
*/
|
|
15
|
-
|
|
12
|
+
// A new project's incident states (addDefaultIncidentState).
|
|
13
|
+
exports.DEFAULT_INCIDENT_STATE_NAMES = [
|
|
16
14
|
(0, Translator_1.translationKey)("Identified"),
|
|
17
15
|
(0, Translator_1.translationKey)("Acknowledged"),
|
|
18
16
|
(0, Translator_1.translationKey)("Resolved"),
|
|
17
|
+
];
|
|
18
|
+
// Its alert states (addDefaultAlertState), named as its incident states are.
|
|
19
|
+
exports.DEFAULT_ALERT_STATE_NAMES = exports.DEFAULT_INCIDENT_STATE_NAMES;
|
|
20
|
+
// Its incident severities (addDefaultIncidentSeverity).
|
|
21
|
+
exports.DEFAULT_INCIDENT_SEVERITY_NAMES = [
|
|
19
22
|
(0, Translator_1.translationKey)("Critical Incident"),
|
|
20
23
|
(0, Translator_1.translationKey)("Major Incident"),
|
|
21
24
|
(0, Translator_1.translationKey)("Minor Incident"),
|
|
25
|
+
];
|
|
26
|
+
/*
|
|
27
|
+
* Its alert severities (addDefaultAlertSeverity). A status page never shows
|
|
28
|
+
* an alert, so they are not among the status page's names below; a
|
|
29
|
+
* person's on-call page shows them (OnCallDutyPolicy/OnCallPageWords).
|
|
30
|
+
*/
|
|
31
|
+
exports.DEFAULT_ALERT_SEVERITY_NAMES = [
|
|
32
|
+
(0, Translator_1.translationKey)("High"),
|
|
33
|
+
(0, Translator_1.translationKey)("Low"),
|
|
34
|
+
];
|
|
35
|
+
// Its monitor statuses (addDefaultMonitorStatus).
|
|
36
|
+
exports.DEFAULT_MONITOR_STATUS_NAMES = [
|
|
22
37
|
(0, Translator_1.translationKey)("Operational"),
|
|
23
38
|
(0, Translator_1.translationKey)("Degraded"),
|
|
24
39
|
(0, Translator_1.translationKey)("Offline"),
|
|
40
|
+
];
|
|
41
|
+
// Its scheduled maintenance states (addDefaultScheduledMaintenanceState).
|
|
42
|
+
exports.DEFAULT_SCHEDULED_MAINTENANCE_STATE_NAMES = [
|
|
25
43
|
(0, Translator_1.translationKey)("Scheduled"),
|
|
26
44
|
(0, Translator_1.translationKey)("Ongoing"),
|
|
27
45
|
(0, Translator_1.translationKey)("Ended"),
|
|
28
46
|
(0, Translator_1.translationKey)("Completed"),
|
|
29
47
|
];
|
|
30
|
-
// Whether `name` is one of OneUptime's default names, as it gave it.
|
|
31
|
-
const isDefaultStatusName = (name) => {
|
|
32
|
-
return typeof name === "string" && exports.DEFAULT_STATUS_NAMES.includes(name.trim());
|
|
33
|
-
};
|
|
34
|
-
exports.isDefaultStatusName = isDefaultStatusName;
|
|
35
48
|
/*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
49
|
+
* The names of its postmortem statuses (DEFAULT_POSTMORTEM_STATUSES,
|
|
50
|
+
* Utils/Incident/PostmortemStatus) and of its security case statuses and
|
|
51
|
+
* priorities (DEFAULT_SECURITY_CASE_STATUSES and _PRIORITIES, in
|
|
52
|
+
* Utils/SecurityCase), and nothing else of them: DefaultRecordNames reads a
|
|
53
|
+
* record's name against them on every form, and loading those lists'
|
|
54
|
+
* colours, descriptions and rules would load them on every page that has
|
|
55
|
+
* one (packages/Common/Scripts/first-load-budgets.js). Tests/Utils/
|
|
56
|
+
* DefaultRecordNames holds each to its list's names. Written as those lists
|
|
57
|
+
* write them, not as lookups: no message the server sends names one.
|
|
39
58
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
exports.DEFAULT_POSTMORTEM_STATUS_NAMES = [
|
|
60
|
+
"Not Started",
|
|
61
|
+
"Draft",
|
|
62
|
+
"Completed",
|
|
63
|
+
"Not Needed",
|
|
64
|
+
];
|
|
65
|
+
exports.DEFAULT_SECURITY_CASE_STATUS_NAMES = [
|
|
66
|
+
"New",
|
|
67
|
+
"Investigating",
|
|
68
|
+
"Contained",
|
|
69
|
+
"Closed",
|
|
70
|
+
];
|
|
71
|
+
exports.DEFAULT_SECURITY_CASE_PRIORITY_NAMES = [
|
|
72
|
+
"Critical",
|
|
73
|
+
"High",
|
|
74
|
+
"Medium",
|
|
75
|
+
"Low",
|
|
76
|
+
"Informational",
|
|
77
|
+
];
|
|
78
|
+
/*
|
|
79
|
+
* The default names a status page shows, of all four lists. A status page
|
|
80
|
+
* shows these in its reader's language
|
|
81
|
+
* (StatusPage/src/Utils/StatusTranslation), and so do its notifications to
|
|
82
|
+
* its subscribers (Server/Utils/StatusPage/SubscriberMessageText).
|
|
83
|
+
*
|
|
84
|
+
* Whether a record's name is one of them is never decided against this
|
|
85
|
+
* union: an incident state a project named "Degraded" is the project's own,
|
|
86
|
+
* though Degraded is a default monitor status. It goes by the record's own
|
|
87
|
+
* list (Utils/DefaultRecordNames: isDefaultRecordName, translateRecordName),
|
|
88
|
+
* on the Dashboard, a status page, an on-call page and in every message
|
|
89
|
+
* (#8066).
|
|
90
|
+
*/
|
|
91
|
+
exports.DEFAULT_STATUS_NAMES = [
|
|
92
|
+
...exports.DEFAULT_INCIDENT_STATE_NAMES,
|
|
93
|
+
...exports.DEFAULT_INCIDENT_SEVERITY_NAMES,
|
|
94
|
+
...exports.DEFAULT_MONITOR_STATUS_NAMES,
|
|
95
|
+
...exports.DEFAULT_SCHEDULED_MAINTENANCE_STATE_NAMES,
|
|
96
|
+
];
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import commonJsModule from "./DefaultStatusNames.js";
|
|
2
|
+
export const DEFAULT_ALERT_SEVERITY_NAMES = commonJsModule.DEFAULT_ALERT_SEVERITY_NAMES;
|
|
3
|
+
export const DEFAULT_ALERT_STATE_NAMES = commonJsModule.DEFAULT_ALERT_STATE_NAMES;
|
|
4
|
+
export const DEFAULT_INCIDENT_SEVERITY_NAMES = commonJsModule.DEFAULT_INCIDENT_SEVERITY_NAMES;
|
|
5
|
+
export const DEFAULT_INCIDENT_STATE_NAMES = commonJsModule.DEFAULT_INCIDENT_STATE_NAMES;
|
|
6
|
+
export const DEFAULT_MONITOR_STATUS_NAMES = commonJsModule.DEFAULT_MONITOR_STATUS_NAMES;
|
|
7
|
+
export const DEFAULT_POSTMORTEM_STATUS_NAMES = commonJsModule.DEFAULT_POSTMORTEM_STATUS_NAMES;
|
|
8
|
+
export const DEFAULT_SCHEDULED_MAINTENANCE_STATE_NAMES = commonJsModule.DEFAULT_SCHEDULED_MAINTENANCE_STATE_NAMES;
|
|
9
|
+
export const DEFAULT_SECURITY_CASE_PRIORITY_NAMES = commonJsModule.DEFAULT_SECURITY_CASE_PRIORITY_NAMES;
|
|
10
|
+
export const DEFAULT_SECURITY_CASE_STATUS_NAMES = commonJsModule.DEFAULT_SECURITY_CASE_STATUS_NAMES;
|
|
2
11
|
export const DEFAULT_STATUS_NAMES = commonJsModule.DEFAULT_STATUS_NAMES;
|
|
3
|
-
export const isDefaultStatusName = commonJsModule.isDefaultStatusName;
|
|
4
|
-
export const translateStateName = commonJsModule.translateStateName;
|
|
@@ -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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MarkdownText } from "../../Utils/Markdown/FeedMarkdown.mjs";
|
|
2
2
|
import { ComposedValue, Translator } from "../Translator.mjs";
|
|
3
|
+
import { StatusPageNameList } from "./DefaultStatusNames.mjs";
|
|
3
4
|
export declare const StateChangeNoteText: {
|
|
4
5
|
readonly incidentEmailSubject: string;
|
|
5
6
|
readonly incidentCustomTemplateEmailSubject: string;
|
|
@@ -12,7 +13,7 @@ export declare const StateChangeNoteText: {
|
|
|
12
13
|
export default class StateChangeNoteMessage {
|
|
13
14
|
static readonly statusLabel: string;
|
|
14
15
|
static formatStateName(stateName: string): string;
|
|
15
|
-
static stateInSentence(stateName: string): ComposedValue;
|
|
16
|
+
static stateInSentence(list: StatusPageNameList, stateName: string): ComposedValue;
|
|
16
17
|
static getIncidentEmailSubject(data: {
|
|
17
18
|
stateName: string;
|
|
18
19
|
incidentTitle: string;
|
|
@@ -45,5 +46,5 @@ export default class StateChangeNoteMessage {
|
|
|
45
46
|
statusPageName: string;
|
|
46
47
|
translator?: Translator | undefined;
|
|
47
48
|
}): string;
|
|
48
|
-
static getChatStatusLine(stateName: string, translator?: Translator | undefined): MarkdownText;
|
|
49
|
+
static getChatStatusLine(list: StatusPageNameList, stateName: string, translator?: Translator | undefined): MarkdownText;
|
|
49
50
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MarkdownText } from "../../Utils/Markdown/FeedMarkdown";
|
|
2
2
|
import { ComposedValue, Translator } from "../Translator";
|
|
3
|
+
import { StatusPageNameList } from "./DefaultStatusNames";
|
|
3
4
|
export declare const StateChangeNoteText: {
|
|
4
5
|
readonly incidentEmailSubject: string;
|
|
5
6
|
readonly incidentCustomTemplateEmailSubject: string;
|
|
@@ -12,7 +13,7 @@ export declare const StateChangeNoteText: {
|
|
|
12
13
|
export default class StateChangeNoteMessage {
|
|
13
14
|
static readonly statusLabel: string;
|
|
14
15
|
static formatStateName(stateName: string): string;
|
|
15
|
-
static stateInSentence(stateName: string): ComposedValue;
|
|
16
|
+
static stateInSentence(list: StatusPageNameList, stateName: string): ComposedValue;
|
|
16
17
|
static getIncidentEmailSubject(data: {
|
|
17
18
|
stateName: string;
|
|
18
19
|
incidentTitle: string;
|
|
@@ -45,5 +46,5 @@ export default class StateChangeNoteMessage {
|
|
|
45
46
|
statusPageName: string;
|
|
46
47
|
translator?: Translator | undefined;
|
|
47
48
|
}): string;
|
|
48
|
-
static getChatStatusLine(stateName: string, translator?: Translator | undefined): MarkdownText;
|
|
49
|
+
static getChatStatusLine(list: StatusPageNameList, stateName: string, translator?: Translator | undefined): MarkdownText;
|
|
49
50
|
}
|
|
@@ -7,7 +7,8 @@ exports.StateChangeNoteText = void 0;
|
|
|
7
7
|
const Text_1 = __importDefault(require("../Text"));
|
|
8
8
|
const FeedMarkdown_1 = require("../../Utils/Markdown/FeedMarkdown");
|
|
9
9
|
const Translator_1 = require("../Translator");
|
|
10
|
-
const
|
|
10
|
+
const DefaultRecordNames_1 = require("../../Utils/DefaultRecordNames");
|
|
11
|
+
const StateOrder_1 = require("../../Utils/StateOrder");
|
|
11
12
|
/*
|
|
12
13
|
* WHAT A PUBLIC NOTE POSTED WITH A STATE CHANGE ADDS TO ITS MESSAGES.
|
|
13
14
|
*
|
|
@@ -35,7 +36,9 @@ const DefaultStatusNames_1 = require("./DefaultStatusNames");
|
|
|
35
36
|
* Each message is written in the language of the translator it is handed -
|
|
36
37
|
* a subscriber's (Server/Utils/StatusPage/SubscriberLanguage), with
|
|
37
38
|
* OneUptime's default state names in that language and a project's own as
|
|
38
|
-
* written
|
|
39
|
+
* written - an incident's state read against the incident states' defaults,
|
|
40
|
+
* a scheduled maintenance event's against the maintenance states' (#8066).
|
|
41
|
+
* Without one it is the English it always was.
|
|
39
42
|
*/
|
|
40
43
|
const ENGLISH = (0, Translator_1.createTranslator)(undefined, "en");
|
|
41
44
|
exports.StateChangeNoteText = {
|
|
@@ -54,17 +57,17 @@ class StateChangeNoteMessage {
|
|
|
54
57
|
}
|
|
55
58
|
/*
|
|
56
59
|
* A state as a sentence names it: as formatStateName writes it, with
|
|
57
|
-
* OneUptime's default names in the sentence's language.
|
|
60
|
+
* OneUptime's default names of its `list` in the sentence's language.
|
|
58
61
|
*/
|
|
59
|
-
static stateInSentence(stateName) {
|
|
62
|
+
static stateInSentence(list, stateName) {
|
|
60
63
|
return (0, Translator_1.composedValue)((translator) => {
|
|
61
|
-
return StateChangeNoteMessage.formatStateName((0,
|
|
64
|
+
return StateChangeNoteMessage.formatStateName((0, DefaultRecordNames_1.translateRecordName)(translator, list, stateName.trim()));
|
|
62
65
|
});
|
|
63
66
|
}
|
|
64
67
|
// The default incident email's subject: "[Resolved Incident] <title>".
|
|
65
68
|
static getIncidentEmailSubject(data) {
|
|
66
69
|
return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.incidentEmailSubject, {
|
|
67
|
-
state: this.stateInSentence(data.stateName),
|
|
70
|
+
state: this.stateInSentence(StateOrder_1.StateListType.IncidentState, data.stateName),
|
|
68
71
|
title: data.incidentTitle,
|
|
69
72
|
});
|
|
70
73
|
}
|
|
@@ -74,7 +77,7 @@ class StateChangeNoteMessage {
|
|
|
74
77
|
*/
|
|
75
78
|
static getIncidentCustomTemplateEmailSubject(data) {
|
|
76
79
|
return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.incidentCustomTemplateEmailSubject, {
|
|
77
|
-
state: this.stateInSentence(data.stateName),
|
|
80
|
+
state: this.stateInSentence(StateOrder_1.StateListType.IncidentState, data.stateName),
|
|
78
81
|
title: data.incidentTitle,
|
|
79
82
|
});
|
|
80
83
|
}
|
|
@@ -84,7 +87,7 @@ class StateChangeNoteMessage {
|
|
|
84
87
|
*/
|
|
85
88
|
static getScheduledMaintenanceEmailSubject(data) {
|
|
86
89
|
return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.scheduledMaintenanceEmailSubject, {
|
|
87
|
-
state: this.stateInSentence(data.stateName),
|
|
90
|
+
state: this.stateInSentence(StateOrder_1.StateListType.ScheduledMaintenanceState, data.stateName),
|
|
88
91
|
title: data.eventTitle,
|
|
89
92
|
});
|
|
90
93
|
}
|
|
@@ -94,7 +97,7 @@ class StateChangeNoteMessage {
|
|
|
94
97
|
*/
|
|
95
98
|
static getScheduledMaintenanceCustomTemplateEmailSubject(data) {
|
|
96
99
|
return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.scheduledMaintenanceCustomTemplateEmailSubject, {
|
|
97
|
-
state: this.stateInSentence(data.stateName),
|
|
100
|
+
state: this.stateInSentence(StateOrder_1.StateListType.ScheduledMaintenanceState, data.stateName),
|
|
98
101
|
title: data.eventTitle,
|
|
99
102
|
});
|
|
100
103
|
}
|
|
@@ -103,7 +106,7 @@ class StateChangeNoteMessage {
|
|
|
103
106
|
return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.incidentSmsHeadline, {
|
|
104
107
|
title: data.incidentTitle,
|
|
105
108
|
statusPageName: data.statusPageName,
|
|
106
|
-
state: this.stateInSentence(data.stateName),
|
|
109
|
+
state: this.stateInSentence(StateOrder_1.StateListType.IncidentState, data.stateName),
|
|
107
110
|
});
|
|
108
111
|
}
|
|
109
112
|
/*
|
|
@@ -114,7 +117,7 @@ class StateChangeNoteMessage {
|
|
|
114
117
|
return (data.translator || ENGLISH).translateTemplate(exports.StateChangeNoteText.scheduledMaintenanceSmsHeadline, {
|
|
115
118
|
title: data.eventTitle,
|
|
116
119
|
statusPageName: data.statusPageName,
|
|
117
|
-
state: this.stateInSentence(data.stateName),
|
|
120
|
+
state: this.stateInSentence(StateOrder_1.StateListType.ScheduledMaintenanceState, data.stateName),
|
|
118
121
|
});
|
|
119
122
|
}
|
|
120
123
|
/*
|
|
@@ -123,11 +126,11 @@ class StateChangeNoteMessage {
|
|
|
123
126
|
* (mdText), so it reads as typed - OneUptime's default names in the
|
|
124
127
|
* reader's language, a project's own as written.
|
|
125
128
|
*/
|
|
126
|
-
static getChatStatusLine(stateName, translator) {
|
|
129
|
+
static getChatStatusLine(list, stateName, translator) {
|
|
127
130
|
const reader = translator || ENGLISH;
|
|
128
131
|
const label = reader.translateText(exports.StateChangeNoteText.chatStatusLabel) ||
|
|
129
132
|
exports.StateChangeNoteText.chatStatusLabel;
|
|
130
|
-
return (0, FeedMarkdown_1.mdText) `**${label}** ${(0,
|
|
133
|
+
return (0, FeedMarkdown_1.mdText) `**${label}** ${(0, DefaultRecordNames_1.translateRecordName)(reader, list, stateName.trim())}`;
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
// The label of the line every chat message and email names the state on.
|
|
@@ -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",
|