@oneuptime/common 14.3.0 → 16.0.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/AIAgent.js +7 -1
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.mts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.ts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +62 -0
- package/Models/DatabaseModels/AIRun.d.mts +2 -0
- package/Models/DatabaseModels/AIRun.d.ts +2 -0
- package/Models/DatabaseModels/AIRun.js +63 -0
- package/Models/DatabaseModels/AcmeCertificate.js +14 -0
- package/Models/DatabaseModels/Alert.js +6 -8
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/AlertSeverity.js +3 -12
- package/Models/DatabaseModels/ApiKey.d.mts +3 -1
- package/Models/DatabaseModels/ApiKey.d.ts +3 -1
- package/Models/DatabaseModels/ApiKey.js +67 -14
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +37 -4
- package/Models/DatabaseModels/CallLog.js +15 -3
- package/Models/DatabaseModels/CodeRepository.d.mts +1 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +1 -0
- package/Models/DatabaseModels/CodeRepository.js +45 -2
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.mts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.ts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.js +436 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.mjs +2 -0
- package/Models/DatabaseModels/CustomNotificationChannel.js +17 -9
- package/Models/DatabaseModels/Dashboard.js +10 -2
- package/Models/DatabaseModels/DashboardDomain.js +22 -27
- package/Models/DatabaseModels/DataProduct.js +3 -2
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +30 -0
- package/Models/DatabaseModels/EmailLog.js +15 -3
- package/Models/DatabaseModels/File.js +4 -2
- package/Models/DatabaseModels/FormDomain.js +10 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +9 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +9 -1
- package/Models/DatabaseModels/GlobalConfig.js +187 -11
- package/Models/DatabaseModels/Incident.js +38 -44
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentSeverity.js +3 -12
- package/Models/DatabaseModels/IncidentStateTimeline.js +12 -16
- package/Models/DatabaseModels/IncidentTemplate.js +6 -11
- package/Models/DatabaseModels/IncomingRequestSecret.d.mts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.d.ts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.js +156 -29
- package/Models/DatabaseModels/Index.js +2 -5
- package/Models/DatabaseModels/IoTDeviceCredential.js +3 -1
- package/Models/DatabaseModels/Monitor.d.mts +5 -0
- package/Models/DatabaseModels/Monitor.d.ts +5 -0
- package/Models/DatabaseModels/Monitor.js +204 -26
- package/Models/DatabaseModels/MonitorNetworkDevice.js +4 -1
- package/Models/DatabaseModels/MonitorTemplate.js +3 -1
- package/Models/DatabaseModels/MonitorTest.js +3 -1
- package/Models/DatabaseModels/NetworkDevice.js +59 -20
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +38 -15
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -0
- package/Models/DatabaseModels/NetworkSnmpCredentialProfile.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +45 -12
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +93 -5
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +43 -0
- package/Models/DatabaseModels/OpenStackProjectNotice.js +29 -10
- package/Models/DatabaseModels/Probe.js +7 -1
- package/Models/DatabaseModels/Project.d.mts +1 -1
- package/Models/DatabaseModels/Project.d.ts +1 -1
- package/Models/DatabaseModels/Project.js +59 -64
- package/Models/DatabaseModels/ProjectSCIM.d.mts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.d.ts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.js +21 -9
- package/Models/DatabaseModels/ProjectSmtpConfig.js +44 -49
- package/Models/DatabaseModels/PushNotificationLog.js +15 -3
- package/Models/DatabaseModels/Reseller.js +2 -8
- package/Models/DatabaseModels/ResellerPlan.js +2 -8
- package/Models/DatabaseModels/Runbook.js +3 -2
- package/Models/DatabaseModels/RunbookExecution.js +4 -4
- package/Models/DatabaseModels/Runner.d.mts +1 -0
- package/Models/DatabaseModels/Runner.d.ts +1 -0
- package/Models/DatabaseModels/Runner.js +52 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +32 -24
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +11 -16
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +12 -16
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +9 -8
- package/Models/DatabaseModels/ServiceLevelObjective.js +7 -0
- package/Models/DatabaseModels/SmsLog.js +15 -3
- package/Models/DatabaseModels/StatusPage.js +33 -13
- package/Models/DatabaseModels/StatusPageAnnouncement.js +19 -24
- package/Models/DatabaseModels/StatusPageDomain.js +24 -27
- package/Models/DatabaseModels/StatusPageSCIM.d.mts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.d.ts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.js +17 -8
- package/Models/DatabaseModels/StatusPageSubscriber.js +40 -19
- package/Models/DatabaseModels/TelegramLog.js +15 -3
- package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +36 -1
- package/Models/DatabaseModels/User.d.mts +0 -3
- package/Models/DatabaseModels/User.d.ts +0 -3
- package/Models/DatabaseModels/User.js +5 -73
- package/Models/DatabaseModels/UserOnCallLog.d.mts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.d.ts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.js +52 -5
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -2
- package/Models/DatabaseModels/UserWebhook.js +39 -22
- package/Models/DatabaseModels/WebhookLog.js +27 -5
- package/Models/DatabaseModels/WhatsAppLog.js +15 -3
- package/Models/DatabaseModels/Workflow.d.mts +3 -0
- package/Models/DatabaseModels/Workflow.d.ts +3 -0
- package/Models/DatabaseModels/Workflow.js +70 -1
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +10 -7
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +16 -2
- package/Models/DatabaseModels/WorkspaceUserAuthToken.js +13 -2
- package/Server/Services/DatabaseService.d.mts +78 -39
- package/Server/Services/DatabaseService.d.ts +78 -39
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.mts +123 -0
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.ts +123 -0
- package/Types/AI/AIActionWords.d.mts +14 -1
- package/Types/AI/AIActionWords.d.ts +14 -1
- package/Types/AI/AIActionWords.js +85 -1
- package/Types/AI/AIActionWords.mjs +4 -0
- package/Types/AI/AIAgentRunLimits.js +5 -4
- package/Types/AI/AIChatTypes.js +8 -3
- package/Types/AI/AIReadTableWords.js +7 -2
- package/Types/AI/AiActivityInsights.d.mts +1 -0
- package/Types/AI/AiActivityInsights.d.ts +1 -0
- package/Types/AI/CarriedRecords.d.mts +35 -0
- package/Types/AI/CarriedRecords.d.ts +35 -0
- package/Types/AI/CarriedRecords.js +211 -0
- package/Types/AI/CarriedRecords.mjs +3 -0
- package/Types/AI/CodeTask.d.mts +1 -0
- package/Types/AI/CodeTask.d.ts +1 -0
- package/Types/AI/CodeTask.js +7 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +4 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +4 -0
- package/Types/Accounts/MoreWaysToSignIn.d.mts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.d.ts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.js +11 -0
- package/Types/Accounts/MoreWaysToSignIn.mjs +2 -0
- package/Types/Accounts/SetPasswordLink.d.mts +6 -0
- package/Types/Accounts/SetPasswordLink.d.ts +6 -0
- package/Types/Accounts/SetPasswordLink.js +47 -0
- package/Types/Accounts/SetPasswordLink.mjs +7 -0
- package/Types/Accounts/SignInMessages.d.mts +5 -0
- package/Types/Accounts/SignInMessages.d.ts +5 -0
- package/Types/Accounts/SignInMessages.js +19 -1
- package/Types/Accounts/SignInMessages.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +7 -2
- package/Types/Analytics/ProductEvent.d.ts +7 -2
- package/Types/Analytics/ProductEvent.js +62 -12
- package/Types/ApiKey/ApiKeyShownOnce.d.mts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.d.ts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.js +78 -0
- package/Types/ApiKey/ApiKeyShownOnce.mjs +6 -0
- package/Types/AuditLog/AuditLogAction.d.mts +1 -0
- package/Types/AuditLog/AuditLogAction.d.ts +1 -0
- package/Types/AuditLog/AuditLogAction.js +11 -1
- package/Types/AuditLog/AuditLogActionLabel.js +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.js +107 -12
- package/Types/AuditLog/AuditLogSessionEvent.mjs +6 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.mts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.ts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.js +109 -0
- package/Types/AuditLog/AuditLogSignInFailure.mjs +8 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.mts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.ts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.js +106 -0
- package/Types/AuditLog/AuditLogStatusPageSession.mjs +9 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.mts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.ts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.js +57 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.mjs +5 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.js +174 -8
- package/Types/AutoRemediation/RemediationApprovals.mjs +9 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.mts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.ts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.js +131 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.mjs +6 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +1 -1
- package/Types/BaseDatabase/SortNulls.d.mts +5 -0
- package/Types/BaseDatabase/SortNulls.d.ts +5 -0
- package/Types/BaseDatabase/SortNulls.js +14 -0
- package/Types/BaseDatabase/SortNulls.mjs +2 -0
- package/Types/Billing/AdminProjectInvoice.d.mts +20 -0
- package/Types/Billing/AdminProjectInvoice.d.ts +20 -0
- package/Types/Billing/AdminProjectInvoice.js +85 -0
- package/Types/Billing/AdminProjectInvoice.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.js +28 -2
- package/Types/CloudConnection/CloudAiAgentCost.mjs +4 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +354 -16
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +17 -0
- package/Types/CodeRepository/ProductionReview.d.mts +5 -0
- package/Types/CodeRepository/ProductionReview.d.ts +5 -0
- package/Types/CodeRepository/ProductionReview.js +108 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.mts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.ts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.js +69 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.mjs +11 -0
- package/Types/DataObservability/DataLineageMap.d.mts +147 -0
- package/Types/DataObservability/DataLineageMap.d.ts +147 -0
- package/Types/DataObservability/DataLineageMap.js +503 -0
- package/Types/DataObservability/DataLineageMap.mjs +20 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/Database/DatabaseProperty.d.mts +1 -0
- package/Types/Database/DatabaseProperty.d.ts +1 -0
- package/Types/Database/DatabaseProperty.js +27 -0
- package/Types/Database/EncryptedValue.d.mts +2 -0
- package/Types/Database/EncryptedValue.d.ts +2 -0
- package/Types/Database/EncryptedValue.js +27 -0
- package/Types/Database/EncryptedValue.mjs +3 -0
- package/Types/Database/TableColumn.d.mts +4 -0
- package/Types/Database/TableColumn.d.ts +4 -0
- package/Types/Database/UserAttribution.js +7 -3
- package/Types/Date.d.mts +0 -2
- package/Types/Date.d.ts +0 -2
- package/Types/Date.js +12 -19
- package/Types/Docs/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -0
- package/Types/Email/EmailMessage.d.mts +2 -0
- package/Types/Email/EmailMessage.d.ts +2 -0
- package/Types/Email/EmailRecipients.d.mts +11 -0
- package/Types/Email/EmailRecipients.d.ts +11 -0
- package/Types/Email/EmailRecipients.js +84 -0
- package/Types/Email/EmailRecipients.mjs +6 -0
- package/Types/Email/EmailSendFailure.d.mts +20 -0
- package/Types/Email/EmailSendFailure.d.ts +20 -0
- package/Types/Email/EmailSendFailure.js +244 -0
- package/Types/Email/EmailSendFailure.mjs +3 -0
- package/Types/Email/EmailTemplateType.d.mts +3 -1
- package/Types/Email/EmailTemplateType.d.ts +3 -1
- package/Types/Email/EmailTemplateType.js +10 -0
- package/Types/IP/IP.js +27 -1
- package/Types/JoinedSerializableObjects.d.mts +6 -0
- package/Types/JoinedSerializableObjects.d.ts +6 -0
- package/Types/JoinedSerializableObjects.js +14 -0
- package/Types/JoinedSerializableObjects.mjs +3 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.mts +2 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.ts +2 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.mts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.ts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.js +81 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.mjs +5 -0
- package/Types/MeaningKeys.js +19 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +105 -4
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +7 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.mts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.ts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.js +28 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.mjs +3 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +8 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.mts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.ts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.js +2 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.mjs +1 -0
- package/Types/Monitor/MonitorJsonTypes.d.mts +4 -0
- package/Types/Monitor/MonitorJsonTypes.d.ts +4 -0
- package/Types/Monitor/MonitorJsonTypes.js +31 -0
- package/Types/Monitor/MonitorJsonTypes.mjs +2 -0
- package/Types/Monitor/MonitorStep.js +8 -0
- package/Types/Monitor/MonitorSteps.js +8 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.js +21 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.mjs +2 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.js +24 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.mjs +2 -0
- package/Types/Monitor/UptimeHistoryLabels.d.mts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.d.ts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.js +4 -0
- package/Types/Monitor/WhoIsTold.d.mts +25 -0
- package/Types/Monitor/WhoIsTold.d.ts +25 -0
- package/Types/Monitor/WhoIsTold.js +171 -19
- package/Types/Monitor/WhoIsTold.mjs +3 -0
- package/Types/NoBreakSpaces.d.mts +5 -1
- package/Types/NoBreakSpaces.d.ts +5 -1
- package/Types/NoBreakSpaces.js +107 -52
- package/Types/NoBreakSpaces.mjs +1 -0
- package/Types/NotificationRule/PagingLadder.d.mts +2 -0
- package/Types/NotificationRule/PagingLadder.d.ts +2 -0
- package/Types/NotificationRule/PagingLadder.js +47 -1
- package/Types/NotificationRule/PagingLadder.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +41 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.js +60 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.mts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.ts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.js +192 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.mjs +14 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +142 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +13 -0
- package/Types/Password.d.mts +18 -12
- package/Types/Password.d.ts +18 -12
- package/Types/Password.js +63 -58
- package/Types/Password.mjs +3 -3
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +48 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +50 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +11 -0
- package/Types/Product/ProjectProducts.d.mts +1 -15
- package/Types/Product/ProjectProducts.d.ts +1 -15
- package/Types/Product/ProjectProducts.js +38 -129
- package/Types/Product/ProjectProducts.mjs +1 -5
- package/Types/Product/ProjectProductsAnswer.js +5 -6
- package/Types/ProductFeedback/ProductFeedback.d.mts +29 -4
- package/Types/ProductFeedback/ProductFeedback.d.ts +29 -4
- package/Types/ProductFeedback/ProductFeedback.js +176 -28
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +20 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +5 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +18 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +33 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +33 -0
- package/Types/Retention/ResolvedRecordRetention.js +211 -1
- package/Types/Retention/ResolvedRecordRetention.mjs +13 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.mts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.ts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.js +134 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.mjs +5 -0
- package/Types/Rules/RuleEmptiedLimit.d.mts +20 -0
- package/Types/Rules/RuleEmptiedLimit.d.ts +20 -0
- package/Types/Rules/RuleEmptiedLimit.js +131 -0
- package/Types/Rules/RuleEmptiedLimit.mjs +9 -0
- package/Types/Runbook/RunbookStepTimeout.js +11 -10
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.mts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.ts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.js +97 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.mjs +8 -0
- package/Types/Runner/GlobalRunnerSandbox.d.mts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.d.ts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.js +178 -0
- package/Types/Runner/GlobalRunnerSandbox.mjs +9 -0
- package/Types/Runner/GlobalRunnerWork.js +9 -4
- package/Types/Runner/RunnerCodeFixCapability.d.mts +16 -0
- package/Types/Runner/RunnerCodeFixCapability.d.ts +16 -0
- package/Types/Runner/RunnerCodeFixCapability.js +121 -0
- package/Types/Runner/RunnerCodeFixCapability.mjs +8 -0
- package/Types/Runner/RunnerCodeFixes.d.mts +3 -0
- package/Types/Runner/RunnerCodeFixes.d.ts +3 -0
- package/Types/Runner/RunnerCodeFixes.js +27 -4
- package/Types/Runner/RunnerCodeFixes.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.d.mts +10 -0
- package/Types/SSO/SessionsWithoutSso.d.ts +10 -0
- package/Types/SSO/SessionsWithoutSso.js +39 -0
- package/Types/SSO/SessionsWithoutSso.mjs +5 -0
- package/Types/SerializableObjectDictionary.js +11 -8
- package/Types/ServerSending/ServerSendingStatus.d.mts +23 -2
- package/Types/ServerSending/ServerSendingStatus.d.ts +23 -2
- package/Types/ServerSending/ServerSendingStatus.js +208 -10
- package/Types/ServerSending/ServerSendingStatus.mjs +3 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +5 -0
- package/Types/SetupHealth/SetupHealth.d.mts +47 -2
- package/Types/SetupHealth/SetupHealth.d.ts +47 -2
- package/Types/SetupHealth/SetupHealth.js +228 -1
- package/Types/SetupHealth/SetupHealth.mjs +12 -0
- package/Types/StatusPage/StatusPageMagicLink.js +1 -1
- package/Types/StatusPage/StatusPageReport.d.mts +5 -2
- package/Types/StatusPage/StatusPageReport.d.ts +5 -2
- package/Types/StatusPage/StatusPageSignInMessages.d.mts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.d.ts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.js +16 -0
- package/Types/StatusPage/StatusPageSignInMessages.mjs +4 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.mts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.ts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.js +63 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.mjs +8 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.mts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.ts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.js +91 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.mjs +10 -0
- package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +2 -2
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +1 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +1 -0
- package/Types/Telemetry/LlmConventions.d.mts +1 -1
- package/Types/Telemetry/LlmConventions.d.ts +1 -1
- package/Types/Telemetry/LlmConventions.js +1 -1
- package/Types/Telemetry/ScrubRule.d.mts +1 -0
- package/Types/Telemetry/ScrubRule.d.ts +1 -0
- package/Types/Telemetry/ScrubRule.js +47 -0
- package/Types/Translator.d.mts +5 -2
- package/Types/Translator.d.ts +5 -2
- package/Types/Translator.js +43 -19
- package/Types/UsedBy/UsedBy.d.mts +107 -4
- package/Types/UsedBy/UsedBy.d.ts +107 -4
- package/Types/UsedBy/UsedBy.js +339 -6
- package/Types/UsedBy/UsedBy.mjs +12 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +5 -2
- package/Types/UsedBy/UsedByServerProducts.d.ts +5 -2
- package/Types/UsedBy/UsedByServerProducts.js +115 -6
- package/Types/UsedBy/UsedByServerProducts.mjs +1 -0
- package/Types/UserNotification/UserNotificationExecutionStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +8 -1
- package/Types/WelcomeChecklist/ProjectGoal.js +5 -5
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +63 -1
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +0 -3
- package/Types/Workflow/WatchedFields.d.mts +1 -0
- package/Types/Workflow/WatchedFields.d.ts +1 -0
- package/Types/Workflow/WatchedFields.js +10 -1
- package/Types/Workflow/WatchedFields.mjs +1 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.mts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.ts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.js +33 -0
- package/Types/Workflow/WorkflowPrivateRecords.mjs +3 -0
- package/Types/Workspace/ConnectCallback.d.mts +2 -1
- package/Types/Workspace/ConnectCallback.d.ts +2 -1
- package/Types/Workspace/ConnectCallback.js +8 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -0
- package/Types/Workspace/NotificationRules/EventType.js +4 -3
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +127 -8
- package/Types/Workspace/WorkspaceLiveMessageKey.d.mts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.d.ts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.js +12 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +6 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +6 -0
- package/Utils/API.d.mts +6 -7
- package/Utils/API.d.ts +6 -7
- package/Utils/API.js +57 -35
- package/Utils/AiRemediation/DeclaredCodeChange.d.mts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.d.ts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.js +6 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +89 -1
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +4 -0
- package/Utils/Billing/InvoiceAmount.d.mts +4 -0
- package/Utils/Billing/InvoiceAmount.d.ts +4 -0
- package/Utils/Billing/InvoiceAmount.js +35 -0
- package/Utils/Billing/InvoiceAmount.mjs +2 -0
- package/Utils/CertificateReissue.js +4 -3
- package/Utils/CronScheduleText.js +10 -3
- package/Utils/CronTab.js +6 -33
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.js +54 -18
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -2
- package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +22 -5
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.mts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.ts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.js +17 -0
- package/Utils/LookupTable.d.mts +1 -0
- package/Utils/LookupTable.d.ts +1 -0
- package/Utils/LookupTable.js +19 -0
- package/Utils/LookupTable.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +477 -152
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/SlowMarkdown.js +168 -33
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.js +233 -29
- package/Utils/Metrics/MetricResultUnitConverter.js +7 -1
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.mts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.ts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.js +27 -0
- package/Utils/Metrics/MetricZeroFill.d.mts +45 -0
- package/Utils/Metrics/MetricZeroFill.d.ts +45 -0
- package/Utils/Metrics/MetricZeroFill.js +145 -0
- package/Utils/Metrics/MetricZeroFill.mjs +2 -0
- package/Utils/ModelImportExport.js +4 -1
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +57 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.mts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.ts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.js +52 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.mjs +5 -0
- package/Utils/Monitor/MonitorFirstCheck.d.mts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.d.ts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.js +128 -0
- package/Utils/Monitor/MonitorFirstCheck.mjs +4 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.mts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.ts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +87 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.mjs +2 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.mts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.ts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.js +86 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.mjs +2 -0
- package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.js +19 -99
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +5 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +5 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +128 -10
- package/Utils/Monitor/MonitorRowStatus.d.mts +56 -0
- package/Utils/Monitor/MonitorRowStatus.d.ts +56 -0
- package/Utils/Monitor/MonitorRowStatus.js +189 -0
- package/Utils/Monitor/MonitorRowStatus.mjs +6 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +3 -2
- package/Utils/Monitor/MonitorTypeFamily.d.mts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.d.ts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.js +105 -0
- package/Utils/Monitor/MonitorTypeFamily.mjs +3 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -3
- package/Utils/Monitor/StoredCheckEvidence.d.mts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.d.ts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.js +53 -0
- package/Utils/Monitor/StoredCheckEvidence.mjs +5 -0
- package/Utils/NetworkDevice/TransceiverHealthUtil.js +2 -2
- package/Utils/NetworkDiscovery/SnmpScanConfigUtil.js +11 -4
- package/Utils/Profiles/ProfileFrames.js +11 -4
- package/Utils/Profiles/ProfileFunctionNames.d.mts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.d.ts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.js +104 -0
- package/Utils/Profiles/ProfileFunctionNames.mjs +3 -0
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/ProjectBilling.d.mts +1 -0
- package/Utils/Project/ProjectBilling.d.ts +1 -0
- package/Utils/Project/ProjectBilling.js +9 -1
- package/Utils/Project/ProjectBilling.mjs +1 -0
- package/Utils/Project/TwilioAccount.d.mts +3 -0
- package/Utils/Project/TwilioAccount.d.ts +3 -0
- package/Utils/Project/TwilioAccount.js +58 -18
- package/Utils/Project/TwilioAccount.mjs +2 -0
- package/Utils/ResponseTooLarge.d.mts +5 -0
- package/Utils/ResponseTooLarge.d.ts +5 -0
- package/Utils/ResponseTooLarge.js +69 -0
- package/Utils/ResponseTooLarge.mjs +2 -0
- package/Utils/RetryAfter.d.mts +17 -0
- package/Utils/RetryAfter.d.ts +17 -0
- package/Utils/RetryAfter.js +251 -0
- package/Utils/RetryAfter.mjs +5 -0
- package/Utils/ScheduledMaintenanceStart.js +2 -3
- package/Utils/Schema/BaseSchema.d.mts +12 -5
- package/Utils/Schema/BaseSchema.d.ts +12 -5
- package/Utils/Schema/BaseSchema.js +43 -4
- package/Utils/Schema/BaseSchema.mjs +1 -0
- package/Utils/Schema/ModelSchema.d.mts +10 -0
- package/Utils/Schema/ModelSchema.d.ts +10 -0
- package/Utils/Schema/ModelSchema.js +251 -22
- package/Utils/Slo/SloMonthlyReport.d.mts +187 -0
- package/Utils/Slo/SloMonthlyReport.d.ts +187 -0
- package/Utils/Slo/SloMonthlyReport.js +945 -0
- package/Utils/Slo/SloMonthlyReport.mjs +35 -0
- package/Utils/Slo/SloOverviewText.js +7 -2
- package/Utils/Slo/SloProjection.js +2 -1
- package/Utils/Slo/SloUtil.d.mts +5 -0
- package/Utils/Slo/SloUtil.d.ts +5 -0
- package/Utils/Slo/SloUtil.js +5 -0
- package/Utils/Slo/SloWidgetFormat.js +3 -1
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +147 -12
- package/Utils/StatusPage/FrozenMonitorResources.mjs +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +3 -2
- package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.js +15 -1
- package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
- package/Utils/StatusPage/HistoryWindow.d.mts +3 -0
- package/Utils/StatusPage/HistoryWindow.d.ts +3 -0
- package/Utils/StatusPage/HistoryWindow.js +24 -0
- package/Utils/StatusPage/HistoryWindow.mjs +4 -0
- package/Utils/StatusPage/Report.js +12 -4
- package/Utils/StatusPage/ReportText.d.mts +4 -0
- package/Utils/StatusPage/ReportText.d.ts +4 -0
- package/Utils/StatusPage/ReportText.js +22 -2
- package/Utils/StatusPage/ReportText.mjs +1 -0
- package/Utils/StatusPage/ResourceUptime.js +32 -25
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +17 -3
- package/Utils/Suggestions/CodeFixSuggestion.d.mts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.d.ts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.js +9 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +24 -3
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.js +16 -4
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.mts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.ts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.js +17 -5
- package/Utils/Suggestions/TelemetryAiFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +16 -7
- package/Utils/Syslog/SyslogMessageParser.d.mts +25 -0
- package/Utils/Syslog/SyslogMessageParser.d.ts +25 -0
- package/Utils/Syslog/SyslogMessageParser.js +428 -100
- package/Utils/Syslog/SyslogMessageParser.mjs +3 -0
- package/Utils/Syslog/SyslogRawCopies.d.mts +20 -0
- package/Utils/Syslog/SyslogRawCopies.d.ts +20 -0
- package/Utils/Syslog/SyslogRawCopies.js +283 -0
- package/Utils/Syslog/SyslogRawCopies.mjs +2 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.mts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.ts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.js +118 -0
- package/Utils/Telemetry/CorrelationIdAttributes.mjs +5 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.mts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.ts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.js +505 -0
- package/Utils/Telemetry/ScrubJsonKeys.mjs +2 -0
- package/Utils/Telemetry/ScrubJsonText.d.mts +25 -0
- package/Utils/Telemetry/ScrubJsonText.d.ts +25 -0
- package/Utils/Telemetry/ScrubJsonText.js +568 -0
- package/Utils/Telemetry/ScrubJsonText.mjs +4 -0
- package/Utils/Telemetry/ScrubMask.d.mts +1 -0
- package/Utils/Telemetry/ScrubMask.d.ts +1 -0
- package/Utils/Telemetry/ScrubMask.js +54 -0
- package/Utils/Telemetry/ScrubMask.mjs +2 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.d.ts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.js +56 -9
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +91 -3
- package/Utils/Uptime/DayUptimeGraphUtil.mjs +1 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.mts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.ts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.js +188 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.mjs +2 -0
- package/Utils/WebhookAddressMask.d.mts +9 -0
- package/Utils/WebhookAddressMask.d.ts +9 -0
- package/Utils/WebhookAddressMask.js +66 -0
- package/Utils/WebhookAddressMask.mjs +2 -0
- package/package.json +1 -1
- package/Models/DatabaseModels/GreenlockCertificate.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.js +0 -143
- package/Models/DatabaseModels/GreenlockCertificate.mjs +0 -2
- package/Models/DatabaseModels/GreenlockChallenge.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.js +0 -144
- package/Models/DatabaseModels/GreenlockChallenge.mjs +0 -2
- package/Types/SampleProject/SampleProject.d.mts +0 -54
- package/Types/SampleProject/SampleProject.d.ts +0 -54
- package/Types/SampleProject/SampleProject.js +0 -177
- package/Types/SampleProject/SampleProject.mjs +0 -22
- package/Types/SampleProject/SampleProjectContent.d.mts +0 -127
- package/Types/SampleProject/SampleProjectContent.d.ts +0 -127
- package/Types/SampleProject/SampleProjectContent.js +0 -397
- package/Types/SampleProject/SampleProjectContent.mjs +0 -18
|
@@ -41,6 +41,7 @@ exports.SCRUB_MAX_VALUE_DEPTH = 32;
|
|
|
41
41
|
* their JSON text.
|
|
42
42
|
*/
|
|
43
43
|
exports.SCRUB_MAX_NESTED_VALUES_PER_RECORD = 10000;
|
|
44
|
+
const JSON_WHITESPACE = " \t\n\r";
|
|
44
45
|
// A list, or a map as JSON writes one: what a rule reads inside.
|
|
45
46
|
function isNested(value) {
|
|
46
47
|
if (Array.isArray(value)) {
|
|
@@ -174,7 +175,10 @@ function scrubTextsAt(value, scrubText, depth) {
|
|
|
174
175
|
return scrubTextsAt(item, scrubText, depth + 1);
|
|
175
176
|
});
|
|
176
177
|
}
|
|
177
|
-
function scrubTextsUnderSensitiveKeysAt(value, isSensitiveKey, hideText, depth) {
|
|
178
|
+
function scrubTextsUnderSensitiveKeysAt(value, isSensitiveKey, hideText, depth, readJsonText) {
|
|
179
|
+
if (typeof value === "string") {
|
|
180
|
+
return readJsonText === undefined ? value : readJsonText(value);
|
|
181
|
+
}
|
|
178
182
|
if (!isNested(value)) {
|
|
179
183
|
return value;
|
|
180
184
|
}
|
|
@@ -191,7 +195,7 @@ function scrubTextsUnderSensitiveKeysAt(value, isSensitiveKey, hideText, depth)
|
|
|
191
195
|
((isSensitivePair && key === "value") || isSensitiveKey(key))) {
|
|
192
196
|
return scrubTextsAt(item, hideText, depth + 1);
|
|
193
197
|
}
|
|
194
|
-
return scrubTextsUnderSensitiveKeysAt(item, isSensitiveKey, hideText, depth + 1);
|
|
198
|
+
return scrubTextsUnderSensitiveKeysAt(item, isSensitiveKey, hideText, depth + 1, readJsonText);
|
|
195
199
|
});
|
|
196
200
|
}
|
|
197
201
|
class ScrubNestedValuesUtil {
|
|
@@ -199,6 +203,31 @@ class ScrubNestedValuesUtil {
|
|
|
199
203
|
static newRecordAllowance() {
|
|
200
204
|
return { remaining: exports.SCRUB_MAX_NESTED_VALUES_PER_RECORD };
|
|
201
205
|
}
|
|
206
|
+
/*
|
|
207
|
+
* The list or map a text is the JSON text of - a log body sent as a map
|
|
208
|
+
* or a list, which ingest stores as its JSON text, or one written as JSON
|
|
209
|
+
* - or null for any other text: plain words, a JSON text, number or
|
|
210
|
+
* true, text that is not JSON at all.
|
|
211
|
+
*/
|
|
212
|
+
static readJsonListOrMap(text) {
|
|
213
|
+
let start = 0;
|
|
214
|
+
// What JSON reads as space: a space, a tab, a line feed, a return.
|
|
215
|
+
while (start < text.length &&
|
|
216
|
+
JSON_WHITESPACE.includes(text.charAt(start))) {
|
|
217
|
+
start++;
|
|
218
|
+
}
|
|
219
|
+
const first = text.charAt(start);
|
|
220
|
+
if (first !== "{" && first !== "[") {
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
try {
|
|
224
|
+
const value = JSON.parse(text);
|
|
225
|
+
return isNested(value) ? value : null;
|
|
226
|
+
}
|
|
227
|
+
catch (_a) {
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
202
231
|
// Whether a value is a list or a map, which a rule reads inside.
|
|
203
232
|
static isNested(value) {
|
|
204
233
|
return isNested(value);
|
|
@@ -251,10 +280,11 @@ class ScrubNestedValuesUtil {
|
|
|
251
280
|
* so are numbers, true or false and empty values under one. Past
|
|
252
281
|
* SCRUB_MAX_VALUE_DEPTH - never, once holdOversizedValuesAsText has run -
|
|
253
282
|
* the rest of a value is read as its JSON text, and hidden whole when
|
|
254
|
-
* that text names a secret.
|
|
283
|
+
* that text names a secret. `readJsonText`: what becomes of a text under
|
|
284
|
+
* no such key - kept when left out (hideAttributeTextsUnderSensitiveKeys).
|
|
255
285
|
*/
|
|
256
|
-
static scrubTextsUnderSensitiveKeys(value, isSensitiveKey, hideText) {
|
|
257
|
-
return scrubTextsUnderSensitiveKeysAt(value, isSensitiveKey, hideText, 0);
|
|
286
|
+
static scrubTextsUnderSensitiveKeys(value, isSensitiveKey, hideText, readJsonText) {
|
|
287
|
+
return scrubTextsUnderSensitiveKeysAt(value, isSensitiveKey, hideText, 0, readJsonText);
|
|
258
288
|
}
|
|
259
289
|
/*
|
|
260
290
|
* A rule that reads text - a built-in pattern, a custom one - over an
|
|
@@ -277,10 +307,21 @@ class ScrubNestedValuesUtil {
|
|
|
277
307
|
* JSON text (`heldAsText`: the keys holdOversizedValuesAsText returned)
|
|
278
308
|
* cannot be read key by key, so it is hidden whole when its text names a
|
|
279
309
|
* secret anywhere - rather than let a key inside it go unread.
|
|
310
|
+
* `keptKeys`: the map's own keys whose values are kept although their key
|
|
311
|
+
* names a secret - a record's own session or conversation id, which its
|
|
312
|
+
* column keeps (Utils/Telemetry/CorrelationIdAttributes). Only the map's
|
|
313
|
+
* own: the same key inside a list or a map value is read as any other.
|
|
314
|
+
* `readJsonText`: what becomes of a text under no secret key that arrived
|
|
315
|
+
* as text - the value itself, or one inside a list or a map value: the
|
|
316
|
+
* services read the keys of a JSON text in it (Utils/Telemetry/
|
|
317
|
+
* ScrubJsonKeys.ts, #8993). Kept when left out.
|
|
280
318
|
*/
|
|
281
|
-
static hideAttributeTextsUnderSensitiveKeys(attributes, isSensitiveKey, hideText, heldAsText) {
|
|
319
|
+
static hideAttributeTextsUnderSensitiveKeys(attributes, isSensitiveKey, hideText, heldAsText, keptKeys, readJsonText) {
|
|
282
320
|
for (const key of Object.keys(attributes)) {
|
|
283
321
|
const value = attributes[key];
|
|
322
|
+
if (keptKeys !== undefined && keptKeys.has(key)) {
|
|
323
|
+
continue;
|
|
324
|
+
}
|
|
284
325
|
if (isSensitiveKey(key)) {
|
|
285
326
|
if (typeof value === "string" || isNested(value)) {
|
|
286
327
|
attributes[key] = scrubTextsAt(value, hideText, 0);
|
|
@@ -288,13 +329,19 @@ class ScrubNestedValuesUtil {
|
|
|
288
329
|
continue;
|
|
289
330
|
}
|
|
290
331
|
if (typeof value === "string") {
|
|
291
|
-
if (heldAsText.has(key)
|
|
292
|
-
|
|
332
|
+
if (heldAsText.has(key)) {
|
|
333
|
+
// Too large to read value by value: hidden whole, or kept.
|
|
334
|
+
if (isSensitiveKey(value)) {
|
|
335
|
+
attributes[key] = hideText(value);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
else if (readJsonText !== undefined) {
|
|
339
|
+
attributes[key] = readJsonText(value);
|
|
293
340
|
}
|
|
294
341
|
continue;
|
|
295
342
|
}
|
|
296
343
|
if (isNested(value)) {
|
|
297
|
-
attributes[key] = scrubTextsUnderSensitiveKeysAt(value, isSensitiveKey, hideText, 0);
|
|
344
|
+
attributes[key] = scrubTextsUnderSensitiveKeysAt(value, isSensitiveKey, hideText, 0, readJsonText);
|
|
298
345
|
}
|
|
299
346
|
}
|
|
300
347
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import UptimeHistoryLabels from "../../Types/Monitor/UptimeHistoryLabels.mjs";
|
|
2
|
+
export declare const MONITORING_OFF_MINIMUM_SECONDS: number;
|
|
3
|
+
export interface DaySpan {
|
|
4
|
+
startDate: Date;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
}
|
|
2
7
|
export interface UptimeGraphDay {
|
|
3
8
|
date: Date;
|
|
4
9
|
startOfDay: Date;
|
|
@@ -25,9 +30,21 @@ export default class DayUptimeGraphUtil {
|
|
|
25
30
|
hasEvents: boolean;
|
|
26
31
|
uptimePercent: number;
|
|
27
32
|
incidentCount: number;
|
|
33
|
+
monitoringOffSeconds?: number | undefined;
|
|
28
34
|
maintenanceCount?: number | undefined;
|
|
29
35
|
labels?: UptimeHistoryLabels | undefined;
|
|
30
36
|
}): string;
|
|
37
|
+
static isMonitoringOffDay(data: {
|
|
38
|
+
hasEvents: boolean;
|
|
39
|
+
monitoringOffSeconds?: number | undefined;
|
|
40
|
+
}): boolean;
|
|
41
|
+
static getMonitoringOffSecondsOfDay(data: {
|
|
42
|
+
monitoringOffSpans: Array<DaySpan>;
|
|
43
|
+
checkedSpans: Array<DaySpan>;
|
|
44
|
+
dayStart: Date;
|
|
45
|
+
dayEnd: Date;
|
|
46
|
+
}): number;
|
|
47
|
+
private static clipAndMerge;
|
|
31
48
|
static getMaintenanceCountLabel(data: {
|
|
32
49
|
count: number;
|
|
33
50
|
labels?: UptimeHistoryLabels | undefined;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import UptimeHistoryLabels from "../../Types/Monitor/UptimeHistoryLabels";
|
|
2
|
+
export declare const MONITORING_OFF_MINIMUM_SECONDS: number;
|
|
3
|
+
export interface DaySpan {
|
|
4
|
+
startDate: Date;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
}
|
|
2
7
|
export interface UptimeGraphDay {
|
|
3
8
|
date: Date;
|
|
4
9
|
startOfDay: Date;
|
|
@@ -25,9 +30,21 @@ export default class DayUptimeGraphUtil {
|
|
|
25
30
|
hasEvents: boolean;
|
|
26
31
|
uptimePercent: number;
|
|
27
32
|
incidentCount: number;
|
|
33
|
+
monitoringOffSeconds?: number | undefined;
|
|
28
34
|
maintenanceCount?: number | undefined;
|
|
29
35
|
labels?: UptimeHistoryLabels | undefined;
|
|
30
36
|
}): string;
|
|
37
|
+
static isMonitoringOffDay(data: {
|
|
38
|
+
hasEvents: boolean;
|
|
39
|
+
monitoringOffSeconds?: number | undefined;
|
|
40
|
+
}): boolean;
|
|
41
|
+
static getMonitoringOffSecondsOfDay(data: {
|
|
42
|
+
monitoringOffSpans: Array<DaySpan>;
|
|
43
|
+
checkedSpans: Array<DaySpan>;
|
|
44
|
+
dayStart: Date;
|
|
45
|
+
dayEnd: Date;
|
|
46
|
+
}): number;
|
|
47
|
+
private static clipAndMerge;
|
|
31
48
|
static getMaintenanceCountLabel(data: {
|
|
32
49
|
count: number;
|
|
33
50
|
labels?: UptimeHistoryLabels | undefined;
|
|
@@ -17,9 +17,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.MONITORING_OFF_MINIMUM_SECONDS = void 0;
|
|
20
21
|
const UptimeHistoryLabels_1 = require("../../Types/Monitor/UptimeHistoryLabels");
|
|
21
22
|
const Date_1 = __importDefault(require("../../Types/Date"));
|
|
22
23
|
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
24
|
+
/*
|
|
25
|
+
* Less than a second of monitoring off on a day is no time worth saying: a
|
|
26
|
+
* switch turned twice within the second, or two sums of doubles a few ulps
|
|
27
|
+
* apart.
|
|
28
|
+
*/
|
|
29
|
+
exports.MONITORING_OFF_MINIMUM_SECONDS = 1;
|
|
23
30
|
class DayUptimeGraphUtil {
|
|
24
31
|
/*
|
|
25
32
|
* Where focus goes for a key pressed on the bar at `currentIndex`, or null
|
|
@@ -113,10 +120,20 @@ class DayUptimeGraphUtil {
|
|
|
113
120
|
const labels = data.labels || UptimeHistoryLabels_1.DefaultUptimeHistoryLabels;
|
|
114
121
|
const incidentCount = Math.max(data.incidentCount, 0);
|
|
115
122
|
const hasIncidents = incidentCount > 0;
|
|
123
|
+
const isMonitoringOff = this.isMonitoringOffDay({
|
|
124
|
+
hasEvents: data.hasEvents,
|
|
125
|
+
monitoringOffSeconds: data.monitoringOffSeconds,
|
|
126
|
+
});
|
|
127
|
+
let noDataLabel = hasIncidents
|
|
128
|
+
? labels.dayLabelNoDataWithIncidents
|
|
129
|
+
: labels.dayLabelNoData;
|
|
130
|
+
if (isMonitoringOff) {
|
|
131
|
+
noDataLabel = hasIncidents
|
|
132
|
+
? labels.dayLabelMonitoringOffWithIncidents
|
|
133
|
+
: labels.dayLabelMonitoringOff;
|
|
134
|
+
}
|
|
116
135
|
const label = !data.hasEvents
|
|
117
|
-
? this.interpolate(
|
|
118
|
-
? labels.dayLabelNoDataWithIncidents
|
|
119
|
-
: labels.dayLabelNoData, {
|
|
136
|
+
? this.interpolate(noDataLabel, {
|
|
120
137
|
date: data.dateLabel,
|
|
121
138
|
total: String(incidentCount),
|
|
122
139
|
})
|
|
@@ -137,6 +154,77 @@ class DayUptimeGraphUtil {
|
|
|
137
154
|
}),
|
|
138
155
|
});
|
|
139
156
|
}
|
|
157
|
+
/*
|
|
158
|
+
* Whether a day is one monitoring was off for (issue #7112): nothing was
|
|
159
|
+
* checked, so it has no data, but the time that was there was with
|
|
160
|
+
* monitoring off. A day with data is measured over what was checked,
|
|
161
|
+
* whatever part of it monitoring was off for.
|
|
162
|
+
*/
|
|
163
|
+
static isMonitoringOffDay(data) {
|
|
164
|
+
return (!data.hasEvents &&
|
|
165
|
+
(data.monitoringOffSeconds || 0) >= exports.MONITORING_OFF_MINIMUM_SECONDS);
|
|
166
|
+
}
|
|
167
|
+
/*
|
|
168
|
+
* How long a day's monitoring was off, from timeline rows rather than a
|
|
169
|
+
* server reading: the part of the day the off spans cover that no checked
|
|
170
|
+
* span covers. For one monitor the two never overlap; for a group's
|
|
171
|
+
* merged timeline it is the time every monitor that was there was off, as
|
|
172
|
+
* the server's group buckets count it. In seconds; 0 when none.
|
|
173
|
+
*/
|
|
174
|
+
static getMonitoringOffSecondsOfDay(data) {
|
|
175
|
+
const dayStart = data.dayStart.getTime();
|
|
176
|
+
const dayEnd = data.dayEnd.getTime();
|
|
177
|
+
if (!(dayEnd > dayStart) || data.monitoringOffSpans.length === 0) {
|
|
178
|
+
return 0;
|
|
179
|
+
}
|
|
180
|
+
const off = this.clipAndMerge({
|
|
181
|
+
spans: data.monitoringOffSpans,
|
|
182
|
+
dayStart: dayStart,
|
|
183
|
+
dayEnd: dayEnd,
|
|
184
|
+
});
|
|
185
|
+
const checked = this.clipAndMerge({
|
|
186
|
+
spans: data.checkedSpans,
|
|
187
|
+
dayStart: dayStart,
|
|
188
|
+
dayEnd: dayEnd,
|
|
189
|
+
});
|
|
190
|
+
let offMilliseconds = 0;
|
|
191
|
+
for (const interval of off) {
|
|
192
|
+
let checkedMilliseconds = 0;
|
|
193
|
+
for (const span of checked) {
|
|
194
|
+
const from = Math.max(interval[0], span[0]);
|
|
195
|
+
const to = Math.min(interval[1], span[1]);
|
|
196
|
+
if (to > from) {
|
|
197
|
+
checkedMilliseconds += to - from;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
offMilliseconds += interval[1] - interval[0] - checkedMilliseconds;
|
|
201
|
+
}
|
|
202
|
+
return Math.max(offMilliseconds, 0) / 1000;
|
|
203
|
+
}
|
|
204
|
+
// The spans' parts inside the day, sorted, overlapping ones joined.
|
|
205
|
+
static clipAndMerge(data) {
|
|
206
|
+
const intervals = [];
|
|
207
|
+
for (const span of data.spans) {
|
|
208
|
+
const from = Math.max(Date_1.default.fromString(span.startDate).getTime(), data.dayStart);
|
|
209
|
+
const to = Math.min(Date_1.default.fromString(span.endDate).getTime(), data.dayEnd);
|
|
210
|
+
if (to > from) {
|
|
211
|
+
intervals.push([from, to]);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
intervals.sort((a, b) => {
|
|
215
|
+
return a[0] - b[0];
|
|
216
|
+
});
|
|
217
|
+
const merged = [];
|
|
218
|
+
for (const interval of intervals) {
|
|
219
|
+
const last = merged[merged.length - 1];
|
|
220
|
+
if (last && interval[0] <= last[1]) {
|
|
221
|
+
last[1] = Math.max(last[1], interval[1]);
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
merged.push([interval[0], interval[1]]);
|
|
225
|
+
}
|
|
226
|
+
return merged;
|
|
227
|
+
}
|
|
140
228
|
/*
|
|
141
229
|
* "1 maintenance event", "3 maintenance events": the count a day's
|
|
142
230
|
* accessible name and its dialog read out.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import MonitorStatusTimeline from "../../Models/DatabaseModels/MonitorStatusTimeline.mjs";
|
|
2
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
3
|
+
import { MeasuredFrom } from "../Monitor/MonitorFirstCheck.mjs";
|
|
4
|
+
export default class TimeBeforeFirstCheck {
|
|
5
|
+
static markNotMonitored(data: {
|
|
6
|
+
monitorId: ObjectID;
|
|
7
|
+
timelines: Array<MonitorStatusTimeline>;
|
|
8
|
+
measuredFrom: MeasuredFrom;
|
|
9
|
+
}): Array<MonitorStatusTimeline>;
|
|
10
|
+
private static copyRow;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import MonitorStatusTimeline from "../../Models/DatabaseModels/MonitorStatusTimeline";
|
|
2
|
+
import ObjectID from "../../Types/ObjectID";
|
|
3
|
+
import { MeasuredFrom } from "../Monitor/MonitorFirstCheck";
|
|
4
|
+
export default class TimeBeforeFirstCheck {
|
|
5
|
+
static markNotMonitored(data: {
|
|
6
|
+
monitorId: ObjectID;
|
|
7
|
+
timelines: Array<MonitorStatusTimeline>;
|
|
8
|
+
measuredFrom: MeasuredFrom;
|
|
9
|
+
}): Array<MonitorStatusTimeline>;
|
|
10
|
+
private static copyRow;
|
|
11
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const MonitorStatusTimeline_1 = __importDefault(require("../../Models/DatabaseModels/MonitorStatusTimeline"));
|
|
7
|
+
const Date_1 = __importDefault(require("../../Types/Date"));
|
|
8
|
+
const MonitorFirstCheck_1 = __importDefault(require("../Monitor/MonitorFirstCheck"));
|
|
9
|
+
const UptimeUtil_1 = __importDefault(require("./UptimeUtil"));
|
|
10
|
+
/*
|
|
11
|
+
* THE TIME BEFORE A MONITOR'S FIRST CHECK, IN ITS ROWS (issue #9031).
|
|
12
|
+
*
|
|
13
|
+
* Every monitor is created in its project's operational status, and nothing
|
|
14
|
+
* stands behind that status until something has measured the monitor
|
|
15
|
+
* (Monitor.firstMeasuredAt). Since #8960 the status pages and the Dashboard
|
|
16
|
+
* leave that time out of a monitor's bars and uptime, in SQL
|
|
17
|
+
* (MonitorStatusTimelineService.getTimelineSourceCtes). This is the same
|
|
18
|
+
* rule for code that measures a monitor's status timeline rows itself: a
|
|
19
|
+
* Monitor Uptime SLO (Server/Utils/Slo/SloMonitorTimelines), so it neither
|
|
20
|
+
* spends its error budget on that time nor counts it as good.
|
|
21
|
+
*
|
|
22
|
+
* The rule is the SQL's (getFirstCheckCutSql). A period of a status a
|
|
23
|
+
* monitor can start in (operational, and not offline as well:
|
|
24
|
+
* MonitorFirstCheck.isStartingStatus) that starts before the monitor's
|
|
25
|
+
* first check starts at the first check instead, and all of it is left out
|
|
26
|
+
* while nothing has checked the monitor. A status something else recorded
|
|
27
|
+
* before the first check (an incident, a person, the heartbeat check
|
|
28
|
+
* judging a heartbeat that never came) counts as it is, and so does time
|
|
29
|
+
* with monitoring off. A monitor measured from the start (MeasuredFrom
|
|
30
|
+
* undefined: a manual monitor, or any monitor until the upgrade has put the
|
|
31
|
+
* column right for history, see MonitorFirstCheck.getMeasuredFrom) is not
|
|
32
|
+
* cut at all.
|
|
33
|
+
*
|
|
34
|
+
* The time cut away is marked as monitoring off, not dropped. Every reader
|
|
35
|
+
* of these rows already leaves time with monitoring off out of both the
|
|
36
|
+
* good time and the total (UptimeUtil.getMonitorEventsForId and
|
|
37
|
+
* getNotMonitoredSeconds, issue #6480), and a row dropped would let the open
|
|
38
|
+
* row before it run on across the time it covered. Where each row ends is
|
|
39
|
+
* worked out first, as UptimeUtil works it out (an open row runs to the
|
|
40
|
+
* next row's start, the last one to now), and the cut is made after: the
|
|
41
|
+
* SQL cuts after its LEAD for the same reason. Once a monitor's rows are
|
|
42
|
+
* cut, every row but the last is closed where it ended, so a row the cut
|
|
43
|
+
* adds can never end another one somewhere else.
|
|
44
|
+
*
|
|
45
|
+
* A monitor whose rows hold no such time gets the very same array back, so
|
|
46
|
+
* whatever is measured from it reads exactly as it did before.
|
|
47
|
+
*/
|
|
48
|
+
class TimeBeforeFirstCheck {
|
|
49
|
+
static markNotMonitored(data) {
|
|
50
|
+
if (data.measuredFrom === undefined) {
|
|
51
|
+
return data.timelines;
|
|
52
|
+
}
|
|
53
|
+
// Never checked: no first check, so every such period is before it.
|
|
54
|
+
const firstCheckAt = data.measuredFrom === null
|
|
55
|
+
? Infinity
|
|
56
|
+
: Date_1.default.fromString(data.measuredFrom).getTime();
|
|
57
|
+
if (Number.isNaN(firstCheckAt)) {
|
|
58
|
+
return data.timelines;
|
|
59
|
+
}
|
|
60
|
+
const monitorId = data.monitorId.toString();
|
|
61
|
+
const now = Date_1.default.getCurrentDate();
|
|
62
|
+
// A row's start, as UptimeUtil reads it: a row with none starts now.
|
|
63
|
+
const getStart = (row) => {
|
|
64
|
+
return Date_1.default.fromString(row.startsAt || now).getTime();
|
|
65
|
+
};
|
|
66
|
+
const isOwn = (row) => {
|
|
67
|
+
var _a;
|
|
68
|
+
return Boolean(row) && ((_a = row.monitorId) === null || _a === void 0 ? void 0 : _a.toString()) === monitorId;
|
|
69
|
+
};
|
|
70
|
+
const isBeforeFirstCheck = (row) => {
|
|
71
|
+
return (isOwn(row) &&
|
|
72
|
+
!UptimeUtil_1.default.isMonitoringOff(row) &&
|
|
73
|
+
getStart(row) < firstCheckAt &&
|
|
74
|
+
MonitorFirstCheck_1.default.isStartingStatus(row.monitorStatus));
|
|
75
|
+
};
|
|
76
|
+
if (!data.timelines.some(isBeforeFirstCheck)) {
|
|
77
|
+
return data.timelines;
|
|
78
|
+
}
|
|
79
|
+
// In the order UptimeUtil ends them in (compareTimelinesChronologically).
|
|
80
|
+
const ownRows = data.timelines
|
|
81
|
+
.filter(isOwn)
|
|
82
|
+
.sort((a, b) => {
|
|
83
|
+
return UptimeUtil_1.default.compareTimelinesChronologically(a, b);
|
|
84
|
+
});
|
|
85
|
+
const rows = [];
|
|
86
|
+
const lastIndex = ownRows.length - 1;
|
|
87
|
+
let isLastRowSplit = false;
|
|
88
|
+
let isAnyRowSplit = false;
|
|
89
|
+
for (let index = 0; index <= lastIndex; index++) {
|
|
90
|
+
const row = ownRows[index];
|
|
91
|
+
const isLast = index === lastIndex;
|
|
92
|
+
/*
|
|
93
|
+
* Where the row ends: its own end, the next row's start while it is
|
|
94
|
+
* open, or now. The last row, while open, stays open and runs on to
|
|
95
|
+
* now; any other is closed there.
|
|
96
|
+
*/
|
|
97
|
+
const endsAt = row.endsAt ||
|
|
98
|
+
(isLast ? undefined : ownRows[index + 1].startsAt || now);
|
|
99
|
+
const end = Date_1.default.fromString(endsAt || now).getTime();
|
|
100
|
+
if (!isBeforeFirstCheck(row)) {
|
|
101
|
+
rows.push(endsAt === row.endsAt
|
|
102
|
+
? row
|
|
103
|
+
: TimeBeforeFirstCheck.copyRow(row, { endsAt: endsAt }));
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
// All of it before the first check.
|
|
107
|
+
if (end <= firstCheckAt) {
|
|
108
|
+
rows.push(TimeBeforeFirstCheck.copyRow(row, {
|
|
109
|
+
endsAt: endsAt,
|
|
110
|
+
isMonitoringOff: true,
|
|
111
|
+
}));
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
// Before the first check, and on after it: in two.
|
|
115
|
+
rows.push(TimeBeforeFirstCheck.copyRow(row, {
|
|
116
|
+
endsAt: new Date(firstCheckAt),
|
|
117
|
+
isMonitoringOff: true,
|
|
118
|
+
}));
|
|
119
|
+
rows.push(TimeBeforeFirstCheck.copyRow(row, {
|
|
120
|
+
startsAt: new Date(firstCheckAt),
|
|
121
|
+
endsAt: endsAt,
|
|
122
|
+
}));
|
|
123
|
+
isAnyRowSplit = true;
|
|
124
|
+
isLastRowSplit = isLast;
|
|
125
|
+
}
|
|
126
|
+
/*
|
|
127
|
+
* A row cut in two whose second half starts after the last row would
|
|
128
|
+
* sort after it, and end it at the first check: a closed row that runs
|
|
129
|
+
* past the last row's start, which only a corrupt timeline holds. The
|
|
130
|
+
* last row then ends now, where it ended before.
|
|
131
|
+
*/
|
|
132
|
+
const lastRow = ownRows[lastIndex];
|
|
133
|
+
if (lastRow &&
|
|
134
|
+
!lastRow.endsAt &&
|
|
135
|
+
isAnyRowSplit &&
|
|
136
|
+
!isLastRowSplit &&
|
|
137
|
+
firstCheckAt > getStart(lastRow)) {
|
|
138
|
+
rows[rows.length - 1] = TimeBeforeFirstCheck.copyRow(rows[rows.length - 1], { endsAt: now });
|
|
139
|
+
}
|
|
140
|
+
// Rows of other monitors, which no reader counts for this one, as they were.
|
|
141
|
+
return [
|
|
142
|
+
...rows,
|
|
143
|
+
...data.timelines.filter((row) => {
|
|
144
|
+
return !isOwn(row);
|
|
145
|
+
}),
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
/*
|
|
149
|
+
* A row as the uptime math reads it - its monitor, status, start, end and
|
|
150
|
+
* whether its monitoring was off - with the changes made, never the row
|
|
151
|
+
* itself: the caller's rows stay as they were read.
|
|
152
|
+
*/
|
|
153
|
+
static copyRow(row, changes) {
|
|
154
|
+
const copy = new MonitorStatusTimeline_1.default();
|
|
155
|
+
if (row._id) {
|
|
156
|
+
copy._id = row._id;
|
|
157
|
+
}
|
|
158
|
+
if (row.projectId) {
|
|
159
|
+
copy.projectId = row.projectId;
|
|
160
|
+
}
|
|
161
|
+
if (row.monitorId) {
|
|
162
|
+
copy.monitorId = row.monitorId;
|
|
163
|
+
}
|
|
164
|
+
if (row.monitorStatusId) {
|
|
165
|
+
copy.monitorStatusId = row.monitorStatusId;
|
|
166
|
+
}
|
|
167
|
+
if (row.monitorStatus) {
|
|
168
|
+
copy.monitorStatus = row.monitorStatus;
|
|
169
|
+
}
|
|
170
|
+
const startsAt = changes.startsAt || row.startsAt;
|
|
171
|
+
if (startsAt) {
|
|
172
|
+
copy.startsAt = startsAt;
|
|
173
|
+
}
|
|
174
|
+
// An end left out is an open row, as a row read with none is.
|
|
175
|
+
const endsAt = "endsAt" in changes ? changes.endsAt : row.endsAt;
|
|
176
|
+
if (endsAt) {
|
|
177
|
+
copy.endsAt = endsAt;
|
|
178
|
+
}
|
|
179
|
+
const isMonitoringOff = changes.isMonitoringOff === undefined
|
|
180
|
+
? row.isMonitoringOff
|
|
181
|
+
: changes.isMonitoringOff;
|
|
182
|
+
if (isMonitoringOff !== undefined) {
|
|
183
|
+
copy.isMonitoringOff = isMonitoringOff;
|
|
184
|
+
}
|
|
185
|
+
return copy;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.default = TimeBeforeFirstCheck;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default class WebhookAddressMask {
|
|
2
|
+
static readonly MASK: string;
|
|
3
|
+
static mask(address: {
|
|
4
|
+
toString(): string;
|
|
5
|
+
} | string | null | undefined): string;
|
|
6
|
+
static maskIn(text: string, address: {
|
|
7
|
+
toString(): string;
|
|
8
|
+
} | string | null | undefined): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default class WebhookAddressMask {
|
|
2
|
+
static readonly MASK: string;
|
|
3
|
+
static mask(address: {
|
|
4
|
+
toString(): string;
|
|
5
|
+
} | string | null | undefined): string;
|
|
6
|
+
static maskIn(text: string, address: {
|
|
7
|
+
toString(): string;
|
|
8
|
+
} | string | null | undefined): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* A WEBHOOK'S ADDRESS, AS A LOG KEEPS IT.
|
|
5
|
+
*
|
|
6
|
+
* A webhook's address is its credential: a Slack, Microsoft Teams or
|
|
7
|
+
* Discord incoming webhook carries its secret in its path, others carry a
|
|
8
|
+
* token in the query, or a user and password before the host. Whoever holds
|
|
9
|
+
* the address posts into the channel. The webhook itself keeps it encrypted
|
|
10
|
+
* at rest, and only its owner reads it back (#9013), but a log of what was
|
|
11
|
+
* sent is read by everyone who reads the project's notification logs, and
|
|
12
|
+
* kept for months. So the log keeps the address's scheme, host and port -
|
|
13
|
+
* what tells a person's webhooks apart - and none of the rest:
|
|
14
|
+
*
|
|
15
|
+
* https://hooks.slack.com/services/T0/B0/XXXX -> https://hooks.slack.com/•••
|
|
16
|
+
* https://user:pass@alerts.example.com:8443/in -> https://alerts.example.com:8443/•••
|
|
17
|
+
* https://alerts.example.com -> https://alerts.example.com
|
|
18
|
+
*
|
|
19
|
+
* "/•••" says something was left out, and is there only when something was.
|
|
20
|
+
* An address that cannot be read is nothing but the mask: no part of it can
|
|
21
|
+
* be told apart from its secret. Masking a masked address changes nothing,
|
|
22
|
+
* so a log written by either release, or masked twice, reads the same.
|
|
23
|
+
*/
|
|
24
|
+
// The schemes a webhook is posted over; anything else is masked whole.
|
|
25
|
+
const WEB_PROTOCOL = /^https?:$/;
|
|
26
|
+
class WebhookAddressMask {
|
|
27
|
+
static mask(address) {
|
|
28
|
+
const text = ((address === null || address === void 0 ? void 0 : address.toString()) || "").trim();
|
|
29
|
+
if (!text) {
|
|
30
|
+
return "";
|
|
31
|
+
}
|
|
32
|
+
let parsed;
|
|
33
|
+
try {
|
|
34
|
+
parsed = new globalThis.URL(text);
|
|
35
|
+
}
|
|
36
|
+
catch (_a) {
|
|
37
|
+
return WebhookAddressMask.MASK;
|
|
38
|
+
}
|
|
39
|
+
// `host` is the host and its port; never a user or a password.
|
|
40
|
+
if (!parsed.host || !WEB_PROTOCOL.test(parsed.protocol)) {
|
|
41
|
+
return WebhookAddressMask.MASK;
|
|
42
|
+
}
|
|
43
|
+
const origin = `${parsed.protocol}//${parsed.host}`;
|
|
44
|
+
const hasMore = parsed.username !== "" ||
|
|
45
|
+
parsed.password !== "" ||
|
|
46
|
+
(parsed.pathname !== "" && parsed.pathname !== "/") ||
|
|
47
|
+
parsed.search !== "" ||
|
|
48
|
+
parsed.hash !== "";
|
|
49
|
+
return hasMore ? `${origin}/${WebhookAddressMask.MASK}` : origin;
|
|
50
|
+
}
|
|
51
|
+
/*
|
|
52
|
+
* `text` with every place it quotes `address` masked: an error a send
|
|
53
|
+
* failed with can quote the address it was sent to, and the log keeps the
|
|
54
|
+
* error's words.
|
|
55
|
+
*/
|
|
56
|
+
static maskIn(text, address) {
|
|
57
|
+
const raw = ((address === null || address === void 0 ? void 0 : address.toString()) || "").trim();
|
|
58
|
+
if (!text || !raw) {
|
|
59
|
+
return text;
|
|
60
|
+
}
|
|
61
|
+
return text.split(raw).join(WebhookAddressMask.mask(raw));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// What stands for the part of an address a log does not keep.
|
|
65
|
+
WebhookAddressMask.MASK = "•••";
|
|
66
|
+
exports.default = WebhookAddressMask;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import User from "./User.mjs";
|
|
2
|
-
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
3
|
-
import ObjectID from "../../Types/ObjectID.mjs";
|
|
4
|
-
export default class GreenlockCertificate extends BaseModel {
|
|
5
|
-
key?: string;
|
|
6
|
-
blob?: string;
|
|
7
|
-
isKeyPair?: boolean;
|
|
8
|
-
deletedByUser?: User;
|
|
9
|
-
deletedByUserId?: ObjectID;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import User from "./User";
|
|
2
|
-
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
3
|
-
import ObjectID from "../../Types/ObjectID";
|
|
4
|
-
export default class GreenlockCertificate extends BaseModel {
|
|
5
|
-
key?: string;
|
|
6
|
-
blob?: string;
|
|
7
|
-
isKeyPair?: boolean;
|
|
8
|
-
deletedByUser?: User;
|
|
9
|
-
deletedByUserId?: ObjectID;
|
|
10
|
-
}
|