@oneuptime/common 14.0.107 → 14.0.109
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/AnalyticsModels/AuditLog.js +1 -1
- package/Models/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +4 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
- package/Models/DatabaseModels/DataBiConnection.js +59 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +111 -0
- package/Models/DatabaseModels/Index.js +9 -0
- package/Models/DatabaseModels/Monitor.js +14 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
- package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
- package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
- package/Models/DatabaseModels/ProductFeedback.js +203 -0
- package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +6 -0
- package/Models/DatabaseModels/Project.d.ts +6 -0
- package/Models/DatabaseModels/Project.js +237 -0
- package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.js +207 -0
- package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
- package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +52 -0
- package/Models/DatabaseModels/UserOnCallLog.js +32 -4
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
- package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -0
- package/Types/AI/AIActionWords.d.mts +167 -7
- package/Types/AI/AIActionWords.d.ts +167 -7
- package/Types/AI/AIActionWords.js +474 -17
- package/Types/AI/AIActionWords.mjs +22 -0
- package/Types/AI/AIChatMessageStatus.js +3 -2
- package/Types/AI/AIChatRecordSeen.d.mts +6 -2
- package/Types/AI/AIChatRecordSeen.d.ts +6 -2
- package/Types/AI/AIChatRecordSeen.js +48 -9
- package/Types/AI/AIChatRecordSeen.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +20 -1
- package/Types/AI/AIChatTypes.d.ts +20 -1
- package/Types/AI/AIChatTypes.js +46 -1
- package/Types/AI/AIChatTypes.mjs +3 -0
- package/Types/AI/AIRunAttempt.d.mts +8 -0
- package/Types/AI/AIRunAttempt.d.ts +8 -0
- package/Types/AI/AIRunAttempt.js +60 -6
- package/Types/AI/AIRunAttempt.mjs +3 -0
- package/Types/AI/AISetupActions.d.mts +9 -0
- package/Types/AI/AISetupActions.d.ts +9 -0
- package/Types/AI/AISetupActions.js +56 -0
- package/Types/AI/AISetupActions.mjs +10 -0
- package/Types/AI/CodeTask.d.mts +14 -0
- package/Types/AI/CodeTask.d.ts +14 -0
- package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
- package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
- package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
- package/Types/AI/RecordAiTokenLimit.js +153 -0
- package/Types/AI/RecordAiTokenLimit.mjs +8 -0
- package/Types/Accounts/SignInMessages.d.mts +8 -0
- package/Types/Accounts/SignInMessages.d.ts +8 -0
- package/Types/Accounts/SignInMessages.js +28 -0
- package/Types/Accounts/SignInMessages.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +48 -0
- package/Types/Analytics/ActivationMilestone.d.ts +48 -0
- package/Types/Analytics/ActivationMilestone.js +247 -0
- package/Types/Analytics/ActivationMilestone.mjs +16 -0
- package/Types/Analytics/ChecklistProgress.d.mts +11 -0
- package/Types/Analytics/ChecklistProgress.d.ts +11 -0
- package/Types/Analytics/ChecklistProgress.js +32 -0
- package/Types/Analytics/ChecklistProgress.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +61 -0
- package/Types/Analytics/ProductEvent.d.ts +61 -0
- package/Types/Analytics/ProductEvent.js +430 -0
- package/Types/Analytics/ProductEvent.mjs +14 -0
- package/Types/AuditLog/AuditLogAction.d.mts +5 -1
- package/Types/AuditLog/AuditLogAction.d.ts +5 -1
- package/Types/AuditLog/AuditLogAction.js +11 -0
- package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.js +30 -0
- package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
- package/Types/AuditLog/AuditLogCoverage.js +8 -1
- package/Types/AuditLog/AuditLogRetention.js +7 -4
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
- package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
- package/Types/AutoRemediation/RemediationRound.js +19 -2
- package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.js +5 -0
- package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
- package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
- package/Types/Cloud/CloudPlatform.js +7 -1
- package/Types/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -0
- package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
- package/Types/CodeRepository/CodeFileSeen.js +142 -27
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
- package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.js +175 -0
- package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
- package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
- package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
- package/Types/DataObservability/DataCheckType.d.mts +4 -0
- package/Types/DataObservability/DataCheckType.d.ts +4 -0
- package/Types/DataObservability/DataCheckType.js +17 -0
- package/Types/DataObservability/DataCheckType.mjs +1 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
- package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
- package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
- package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
- package/Types/DataObservability/DataLineageExpansion.js +166 -0
- package/Types/DataObservability/DataLineageExpansion.mjs +4 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
- package/Types/DataObservability/DataTableLineage.d.mts +29 -1
- package/Types/DataObservability/DataTableLineage.d.ts +29 -1
- package/Types/DataObservability/DataTableLineage.js +27 -7
- package/Types/DataObservability/DataTableLineage.mjs +3 -0
- package/Types/Date.d.mts +22 -0
- package/Types/Date.d.ts +22 -0
- package/Types/Date.js +72 -3
- package/Types/DateLanguage.d.mts +7 -0
- package/Types/DateLanguage.d.ts +7 -0
- package/Types/DateLanguage.js +44 -1
- package/Types/DateLanguage.mjs +1 -0
- package/Types/Docs/DocsLanguage.d.mts +2 -0
- package/Types/Docs/DocsLanguage.d.ts +2 -0
- package/Types/Docs/DocsLanguage.js +23 -1
- package/Types/Docs/DocsLanguage.mjs +2 -0
- package/Types/Docs/GlossaryTerm.d.mts +82 -0
- package/Types/Docs/GlossaryTerm.d.ts +82 -0
- package/Types/Docs/GlossaryTerm.js +126 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.js +40 -0
- package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- 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/Exception/BadDataExceptionWithDetails.d.mts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
- package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
- package/Types/Exception/ErrorMessageRule.d.mts +4 -0
- package/Types/Exception/ErrorMessageRule.d.ts +4 -0
- package/Types/Exception/ErrorMessageRule.js +143 -0
- package/Types/Exception/ErrorMessageRule.mjs +5 -0
- package/Types/Exception/UnexplainedError.d.mts +45 -0
- package/Types/Exception/UnexplainedError.d.ts +45 -0
- package/Types/Exception/UnexplainedError.js +179 -0
- package/Types/Exception/UnexplainedError.mjs +11 -0
- package/Types/HashedString.js +9 -2
- package/Types/Icon/IconProp.d.mts +4 -1
- package/Types/Icon/IconProp.d.ts +4 -1
- package/Types/Icon/IconProp.js +6 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
- package/Types/InstallationHealth/InstallationHealth.js +513 -0
- package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
- package/Types/LLM/LLMProviderExchange.d.mts +17 -0
- package/Types/LLM/LLMProviderExchange.d.ts +17 -0
- package/Types/LLM/LLMProviderExchange.js +70 -0
- package/Types/LLM/LLMProviderExchange.mjs +5 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +3 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +18 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
- package/Types/Monitor/CriteriaFilterValues.js +346 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
- package/Types/Monitor/EvaluationSentence.d.mts +1 -0
- package/Types/Monitor/EvaluationSentence.d.ts +1 -0
- package/Types/Monitor/EvaluationSentence.js +34 -3
- package/Types/Monitor/EvaluationSentence.mjs +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
- package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- package/Types/Monitor/WhoIsTold.d.mts +165 -0
- package/Types/Monitor/WhoIsTold.d.ts +165 -0
- package/Types/Monitor/WhoIsTold.js +582 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
- package/Types/PhoneNumberDirection.d.mts +6 -0
- package/Types/PhoneNumberDirection.d.ts +6 -0
- package/Types/PhoneNumberDirection.js +123 -0
- package/Types/PhoneNumberDirection.mjs +6 -0
- package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
- package/Types/Product/ProductKey.d.mts +58 -0
- package/Types/Product/ProductKey.d.ts +58 -0
- package/Types/Product/ProductKey.js +175 -0
- package/Types/Product/ProductKey.mjs +8 -0
- package/Types/Product/ProductPins.d.mts +10 -0
- package/Types/Product/ProductPins.d.ts +10 -0
- package/Types/Product/ProductPins.js +65 -0
- package/Types/Product/ProductPins.mjs +6 -0
- package/Types/Product/ProductUsage.d.mts +21 -0
- package/Types/Product/ProductUsage.d.ts +21 -0
- package/Types/Product/ProductUsage.js +175 -0
- package/Types/Product/ProductUsage.mjs +10 -0
- package/Types/Product/ProjectProducts.d.mts +60 -0
- package/Types/Product/ProjectProducts.d.ts +60 -0
- package/Types/Product/ProjectProducts.js +336 -0
- package/Types/Product/ProjectProducts.mjs +19 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
- package/Types/Product/ProjectProductsAnswer.js +139 -0
- package/Types/Product/ProjectProductsAnswer.mjs +7 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
- package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
- package/Types/ProductFeedback/ProductFeedback.js +517 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +303 -26
- package/Types/ReadingDirection.mjs +4 -0
- package/Types/Recommendation/RecommendationType.d.mts +2 -1
- package/Types/Recommendation/RecommendationType.d.ts +2 -1
- package/Types/Recommendation/RecommendationType.js +6 -0
- package/Types/Reminder/ReminderInterval.d.mts +7 -0
- package/Types/Reminder/ReminderInterval.d.ts +7 -0
- package/Types/Reminder/ReminderInterval.js +110 -0
- package/Types/Reminder/ReminderInterval.mjs +8 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
- package/Types/Retention/ResolvedRecordRetention.js +124 -0
- package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +8 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
- package/Types/RollingTime/RollingTimeUtil.js +249 -71
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
- package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
- package/Types/ServerSending/ServerSendingStatus.js +281 -0
- package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
- package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
- package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
- package/Types/ServerSending/ServerSendingWords.js +95 -0
- package/Types/ServerSending/ServerSendingWords.mjs +7 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
- package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
- package/Types/ServerSetup/ServerTestSend.js +160 -0
- package/Types/ServerSetup/ServerTestSend.mjs +10 -0
- package/Types/SetupHealth/SetupHealth.d.mts +283 -0
- package/Types/SetupHealth/SetupHealth.d.ts +283 -0
- package/Types/SetupHealth/SetupHealth.js +1047 -0
- package/Types/SetupHealth/SetupHealth.mjs +46 -0
- package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
- package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
- package/Types/StatusPage/StatusPageSummary.js +3 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
- package/Types/Telemetry/LlmCallKind.js +1 -1
- package/Types/Telemetry/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
- package/Types/ToolImport/ToolImportCatalog.js +54 -1
- package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
- package/Types/Translator.js +64 -31
- package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
- package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
- package/Types/UserNotification/UserNotificationEventType.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +17 -0
- package/Types/UserSession/SessionEndCause.d.ts +17 -0
- package/Types/UserSession/SessionEndCause.js +79 -0
- package/Types/UserSession/SessionEndCause.mjs +6 -0
- package/Types/UserSession/SessionSignIn.d.mts +44 -0
- package/Types/UserSession/SessionSignIn.d.ts +44 -0
- package/Types/UserSession/SessionSignIn.js +174 -0
- package/Types/UserSession/SessionSignIn.mjs +17 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
- package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
- package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
- package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
- package/Utils/API.js +10 -0
- package/Utils/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
- package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
- package/Utils/Markdown/InlineImageDataUri.js +17 -1
- package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
- package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
- package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
- package/Utils/Monitor/MonitorRootCauseWording.js +28 -24
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
- package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
- package/Utils/Monitor/MonitoringOff.d.mts +20 -0
- package/Utils/Monitor/MonitoringOff.d.ts +20 -0
- package/Utils/Monitor/MonitoringOff.js +81 -0
- package/Utils/Monitor/MonitoringOff.mjs +4 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
- package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
- package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
- package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
- package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
- package/Utils/Slo/SloListWidgetFormat.js +20 -26
- package/Utils/Slo/SloOverviewText.d.mts +6 -1
- package/Utils/Slo/SloOverviewText.d.ts +6 -1
- package/Utils/Slo/SloOverviewText.js +3 -3
- package/Utils/Slo/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- package/Utils/Slo/SloUtil.d.mts +18 -9
- package/Utils/Slo/SloUtil.d.ts +18 -9
- package/Utils/Slo/SloUtil.js +47 -10
- package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
- package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
- package/Utils/Slo/SloWidgetFormat.js +198 -50
- package/Utils/Slo/SloWidgetFormat.mjs +7 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
- package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
- package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +12 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +1 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
- package/Utils/StatusPage/ResourceExplorer.js +11 -29
- package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
- package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
- package/Utils/StatusPage/ResourceUptime.js +31 -6
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
- package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
- package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
- package/Utils/Uptime/UptimeUtil.d.mts +38 -1
- package/Utils/Uptime/UptimeUtil.d.ts +38 -1
- package/Utils/Uptime/UptimeUtil.js +270 -75
- package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.js +190 -0
- package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
- package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
- package/package.json +1 -1
- package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
- package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_DATA_BI_FAILED_REFRESHES = exports.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS = exports.DATA_BI_METRICS = exports.DataBiAttribute = exports.DataBiMetricName = void 0;
|
|
4
|
+
exports.isDataBiRefreshFailure = isDataBiRefreshFailure;
|
|
5
|
+
exports.isDataBiRefreshFinished = isDataBiRefreshFinished;
|
|
6
|
+
exports.getLatestFinishedRefresh = getLatestFinishedRefresh;
|
|
7
|
+
exports.getNextFailedRefreshes = getNextFailedRefreshes;
|
|
8
|
+
exports.getDataBiRefreshFailedValue = getDataBiRefreshFailedValue;
|
|
9
|
+
exports.readDataBiFailedRefreshes = readDataBiFailedRefreshes;
|
|
10
|
+
const DataDashboardActivity_1 = require("./DataDashboardActivity");
|
|
11
|
+
/*
|
|
12
|
+
* A POWER BI DATASET WHOSE REFRESH FAILED, UNTIL A LATER ONE COMPLETES.
|
|
13
|
+
*
|
|
14
|
+
* A refresh is not a pipeline run. A dataset whose refresh failed goes on
|
|
15
|
+
* showing the data of its last completed refresh until a later refresh
|
|
16
|
+
* completes, however long that takes: a failed refresh is a state, not an
|
|
17
|
+
* event. So it opens one alert, which stays open until a later refresh
|
|
18
|
+
* completes - not for an hour, as a failed run's does.
|
|
19
|
+
*
|
|
20
|
+
* - Each hourly read (DataBiSync) keeps on the BI tool the datasets whose
|
|
21
|
+
* latest finished refresh failed or was cancelled. A refresh still
|
|
22
|
+
* running, or a dataset whose refreshes were not read this time, changes
|
|
23
|
+
* nothing: the dataset stays as it was until a refresh finishes. One that
|
|
24
|
+
* completes is kept an hour more, as recovered. One gone from the tool,
|
|
25
|
+
* or with no refresh at all, is not kept.
|
|
26
|
+
* - Every five minutes (DataBiRefreshCheck), each dataset kept writes
|
|
27
|
+
* oneuptime.data.bi.refresh_failed - 1 while it is failing, 0 the hour
|
|
28
|
+
* after it recovered - which the tool's monitor reads
|
|
29
|
+
* (DataBiRefreshMonitorStep): one alert per dataset, resolved once a
|
|
30
|
+
* later refresh completes.
|
|
31
|
+
*/
|
|
32
|
+
var DataBiMetricName;
|
|
33
|
+
(function (DataBiMetricName) {
|
|
34
|
+
// 1 while a dataset's latest finished refresh failed or was cancelled, 0 the hour after a later one completed.
|
|
35
|
+
DataBiMetricName["RefreshFailed"] = "oneuptime.data.bi.refresh_failed";
|
|
36
|
+
})(DataBiMetricName || (exports.DataBiMetricName = DataBiMetricName = {}));
|
|
37
|
+
exports.DataBiAttribute = {
|
|
38
|
+
ConnectionId: "oneuptime.data.bi.connection.id",
|
|
39
|
+
ConnectionName: "oneuptime.data.bi.connection.name",
|
|
40
|
+
DatasetId: "oneuptime.data.bi.dataset.id",
|
|
41
|
+
DatasetName: "oneuptime.data.bi.dataset.name",
|
|
42
|
+
Workspace: "oneuptime.data.bi.workspace.name",
|
|
43
|
+
};
|
|
44
|
+
exports.DATA_BI_METRICS = [
|
|
45
|
+
{
|
|
46
|
+
name: DataBiMetricName.RefreshFailed,
|
|
47
|
+
description: "1 while a Power BI dataset's last refresh failed or was cancelled, 0 for the hour after a later refresh completed.",
|
|
48
|
+
unit: "",
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
// How long a dataset that recovered goes on writing 0, so its monitor sees it recover.
|
|
52
|
+
exports.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS = 60 * 60 * 1000;
|
|
53
|
+
// The most datasets kept on one BI tool.
|
|
54
|
+
exports.MAX_DATA_BI_FAILED_REFRESHES = 2000;
|
|
55
|
+
const MAX_TEXT_LENGTH = 500;
|
|
56
|
+
const MAX_ID_LENGTH = 100;
|
|
57
|
+
function readObject(value) {
|
|
58
|
+
return value && typeof value === "object" && !Array.isArray(value)
|
|
59
|
+
? value
|
|
60
|
+
: null;
|
|
61
|
+
}
|
|
62
|
+
function readText(value, maxLength = MAX_TEXT_LENGTH) {
|
|
63
|
+
return typeof value === "string" && value.trim()
|
|
64
|
+
? value.trim().slice(0, maxLength)
|
|
65
|
+
: null;
|
|
66
|
+
}
|
|
67
|
+
function readTime(value) {
|
|
68
|
+
const text = readText(value);
|
|
69
|
+
return text && !Number.isNaN(Date.parse(text)) ? text : null;
|
|
70
|
+
}
|
|
71
|
+
// A refresh that ended without completing: it failed, or was cancelled.
|
|
72
|
+
function isDataBiRefreshFailure(status) {
|
|
73
|
+
return (status === DataDashboardActivity_1.DataBiRefreshStatus.Failed ||
|
|
74
|
+
status === DataDashboardActivity_1.DataBiRefreshStatus.Cancelled);
|
|
75
|
+
}
|
|
76
|
+
// A refresh that ended one way or the other: completed, failed or cancelled.
|
|
77
|
+
function isDataBiRefreshFinished(status) {
|
|
78
|
+
return (status === DataDashboardActivity_1.DataBiRefreshStatus.Completed || isDataBiRefreshFailure(status));
|
|
79
|
+
}
|
|
80
|
+
function refreshTime(refresh) {
|
|
81
|
+
const at = Date.parse((0, DataDashboardActivity_1.getDataDashboardRefreshTime)(refresh) || "");
|
|
82
|
+
return Number.isFinite(at) ? at : 0;
|
|
83
|
+
}
|
|
84
|
+
/*
|
|
85
|
+
* The dataset's latest refresh that finished - the one its data is as fresh
|
|
86
|
+
* as, or failed to be - or null when none did: one still running, or
|
|
87
|
+
* Disabled or Unknown, says nothing of how the last one went.
|
|
88
|
+
*/
|
|
89
|
+
function getLatestFinishedRefresh(history) {
|
|
90
|
+
if (!history) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
const finished = [
|
|
94
|
+
...(history.last ? [history.last] : []),
|
|
95
|
+
...history.refreshes,
|
|
96
|
+
].filter((refresh) => {
|
|
97
|
+
return isDataBiRefreshFinished(refresh.status);
|
|
98
|
+
});
|
|
99
|
+
return (finished.sort((a, b) => {
|
|
100
|
+
return refreshTime(b) - refreshTime(a);
|
|
101
|
+
})[0] || null);
|
|
102
|
+
}
|
|
103
|
+
/*
|
|
104
|
+
* The datasets kept after a read: each read with a finished refresh as that
|
|
105
|
+
* refresh says - failing, or recovered when one that was failing completed -
|
|
106
|
+
* and each not read, or with no refresh finished since, as it was. A dataset
|
|
107
|
+
* that recovered over an hour ago, one with no refresh, and one no longer
|
|
108
|
+
* behind the tool's dashboards are not kept.
|
|
109
|
+
*/
|
|
110
|
+
function getNextFailedRefreshes(data) {
|
|
111
|
+
const previous = new Map(data.previous.map((refresh) => {
|
|
112
|
+
return [refresh.datasetId, refresh];
|
|
113
|
+
}));
|
|
114
|
+
const next = [];
|
|
115
|
+
const seen = new Set();
|
|
116
|
+
for (const dataset of data.datasets) {
|
|
117
|
+
const datasetId = dataset.datasetId.toLowerCase();
|
|
118
|
+
if (!datasetId || seen.has(datasetId)) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
seen.add(datasetId);
|
|
122
|
+
const kept = previous.get(datasetId);
|
|
123
|
+
// As it was, by the name and workspace it has now.
|
|
124
|
+
const asItWas = kept
|
|
125
|
+
? Object.assign(Object.assign({}, kept), { datasetName: dataset.name || kept.datasetName, workspace: dataset.workspace || kept.workspace }) : null;
|
|
126
|
+
if (dataset.refresh === null) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const finished = dataset.refresh === undefined
|
|
130
|
+
? null
|
|
131
|
+
: getLatestFinishedRefresh(dataset.refresh);
|
|
132
|
+
if (!finished) {
|
|
133
|
+
if (asItWas) {
|
|
134
|
+
next.push(asItWas);
|
|
135
|
+
}
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (isDataBiRefreshFailure(finished.status)) {
|
|
139
|
+
next.push({
|
|
140
|
+
datasetId,
|
|
141
|
+
datasetName: dataset.name || datasetId,
|
|
142
|
+
workspace: dataset.workspace,
|
|
143
|
+
status: finished.status,
|
|
144
|
+
failedAt: (0, DataDashboardActivity_1.getDataDashboardRefreshTime)(finished),
|
|
145
|
+
error: finished.error,
|
|
146
|
+
recoveredAt: null,
|
|
147
|
+
});
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
// Completed: one that was failing has recovered, and is kept an hour more.
|
|
151
|
+
if (asItWas) {
|
|
152
|
+
next.push(Object.assign(Object.assign({}, asItWas), { recoveredAt: asItWas.recoveredAt || data.now.toISOString() }));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return next
|
|
156
|
+
.filter((refresh) => {
|
|
157
|
+
return getDataBiRefreshFailedValue(refresh, data.now) !== null;
|
|
158
|
+
})
|
|
159
|
+
.slice(0, exports.MAX_DATA_BI_FAILED_REFRESHES);
|
|
160
|
+
}
|
|
161
|
+
/*
|
|
162
|
+
* What a dataset kept writes now: 1 while it is failing, 0 for the hour after
|
|
163
|
+
* it recovered, and nothing after that.
|
|
164
|
+
*/
|
|
165
|
+
function getDataBiRefreshFailedValue(refresh, now) {
|
|
166
|
+
if (!refresh.recoveredAt) {
|
|
167
|
+
return 1;
|
|
168
|
+
}
|
|
169
|
+
const sinceRecovery = now.getTime() - Date.parse(refresh.recoveredAt);
|
|
170
|
+
return Number.isFinite(sinceRecovery) &&
|
|
171
|
+
sinceRecovery < exports.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS
|
|
172
|
+
? 0
|
|
173
|
+
: null;
|
|
174
|
+
}
|
|
175
|
+
// The datasets kept on a BI tool, read strictly: anything that does not fit is left out.
|
|
176
|
+
function readDataBiFailedRefreshes(value) {
|
|
177
|
+
var _a;
|
|
178
|
+
if (!Array.isArray(value)) {
|
|
179
|
+
return [];
|
|
180
|
+
}
|
|
181
|
+
const refreshes = [];
|
|
182
|
+
const seen = new Set();
|
|
183
|
+
for (const item of value) {
|
|
184
|
+
const refresh = readObject(item);
|
|
185
|
+
const datasetId = (_a = readText(refresh === null || refresh === void 0 ? void 0 : refresh["datasetId"], MAX_ID_LENGTH)) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
186
|
+
const status = (0, DataDashboardActivity_1.readDataBiRefreshStatus)(refresh === null || refresh === void 0 ? void 0 : refresh["status"]);
|
|
187
|
+
if (!refresh ||
|
|
188
|
+
!datasetId ||
|
|
189
|
+
seen.has(datasetId) ||
|
|
190
|
+
!status ||
|
|
191
|
+
!isDataBiRefreshFailure(status)) {
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
seen.add(datasetId);
|
|
195
|
+
refreshes.push({
|
|
196
|
+
datasetId,
|
|
197
|
+
datasetName: readText(refresh["datasetName"]) || datasetId,
|
|
198
|
+
workspace: readText(refresh["workspace"]),
|
|
199
|
+
status,
|
|
200
|
+
failedAt: readTime(refresh["failedAt"]),
|
|
201
|
+
error: readText(refresh["error"]),
|
|
202
|
+
recoveredAt: readTime(refresh["recoveredAt"]),
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
return refreshes.slice(0, exports.MAX_DATA_BI_FAILED_REFRESHES);
|
|
206
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import commonJsModule from "./DataBiRefreshAlert.js";
|
|
2
|
+
export const DATA_BI_METRICS = commonJsModule.DATA_BI_METRICS;
|
|
3
|
+
export const DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS = commonJsModule.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS;
|
|
4
|
+
export const DataBiAttribute = commonJsModule.DataBiAttribute;
|
|
5
|
+
export const DataBiMetricName = commonJsModule.DataBiMetricName;
|
|
6
|
+
export const MAX_DATA_BI_FAILED_REFRESHES = commonJsModule.MAX_DATA_BI_FAILED_REFRESHES;
|
|
7
|
+
export const getDataBiRefreshFailedValue = commonJsModule.getDataBiRefreshFailedValue;
|
|
8
|
+
export const getLatestFinishedRefresh = commonJsModule.getLatestFinishedRefresh;
|
|
9
|
+
export const getNextFailedRefreshes = commonJsModule.getNextFailedRefreshes;
|
|
10
|
+
export const isDataBiRefreshFailure = commonJsModule.isDataBiRefreshFailure;
|
|
11
|
+
export const isDataBiRefreshFinished = commonJsModule.isDataBiRefreshFinished;
|
|
12
|
+
export const readDataBiFailedRefreshes = commonJsModule.readDataBiFailedRefreshes;
|
|
@@ -17,6 +17,10 @@ export declare enum DataCheckType {
|
|
|
17
17
|
export declare const DATA_CHECK_TYPES: ReadonlyArray<DataCheckType>;
|
|
18
18
|
export declare const COLUMN_CHECK_TYPES: ReadonlyArray<DataCheckType>;
|
|
19
19
|
export declare function isColumnCheckType(type: DataCheckType): boolean;
|
|
20
|
+
export declare function getDataCheckColumn(check: {
|
|
21
|
+
checkType?: DataCheckType | string | null | undefined;
|
|
22
|
+
columnName?: string | null | undefined;
|
|
23
|
+
}): string | null;
|
|
20
24
|
export declare function isQueryCheckType(type: DataCheckType): boolean;
|
|
21
25
|
export declare const SAMPLEABLE_CHECK_TYPES: ReadonlyArray<DataCheckType>;
|
|
22
26
|
export declare function isSampleableCheckType(type: DataCheckType): boolean;
|
|
@@ -17,6 +17,10 @@ export declare enum DataCheckType {
|
|
|
17
17
|
export declare const DATA_CHECK_TYPES: ReadonlyArray<DataCheckType>;
|
|
18
18
|
export declare const COLUMN_CHECK_TYPES: ReadonlyArray<DataCheckType>;
|
|
19
19
|
export declare function isColumnCheckType(type: DataCheckType): boolean;
|
|
20
|
+
export declare function getDataCheckColumn(check: {
|
|
21
|
+
checkType?: DataCheckType | string | null | undefined;
|
|
22
|
+
columnName?: string | null | undefined;
|
|
23
|
+
}): string | null;
|
|
20
24
|
export declare function isQueryCheckType(type: DataCheckType): boolean;
|
|
21
25
|
export declare const SAMPLEABLE_CHECK_TYPES: ReadonlyArray<DataCheckType>;
|
|
22
26
|
export declare function isSampleableCheckType(type: DataCheckType): boolean;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DATA_CHECK_ALERT_CONDITIONS = exports.DataCheckAlertCondition = exports.DEFAULT_DATA_CHECK_INTERVAL_IN_MINUTES = exports.DATA_CHECK_INTERVALS_IN_MINUTES = exports.DataCheckRunStatus = exports.MAX_SEGMENTS_PER_CHECK = exports.MAX_ACCEPTED_VALUES = exports.MAX_FAILING_ROW_COLUMNS = exports.MAX_FAILING_ROW_VALUE_LENGTH = exports.MAX_FAILING_ROWS = exports.FAILING_ROW_CHECK_TYPES = exports.SAMPLEABLE_CHECK_TYPES = exports.COLUMN_CHECK_TYPES = exports.DATA_CHECK_TYPES = exports.DataCheckType = void 0;
|
|
4
4
|
exports.isColumnCheckType = isColumnCheckType;
|
|
5
|
+
exports.getDataCheckColumn = getDataCheckColumn;
|
|
5
6
|
exports.isQueryCheckType = isQueryCheckType;
|
|
6
7
|
exports.isSampleableCheckType = isSampleableCheckType;
|
|
7
8
|
exports.doesAlertConditionNeedThreshold = doesAlertConditionNeedThreshold;
|
|
@@ -65,6 +66,22 @@ exports.COLUMN_CHECK_TYPES = [
|
|
|
65
66
|
function isColumnCheckType(type) {
|
|
66
67
|
return exports.COLUMN_CHECK_TYPES.includes(type);
|
|
67
68
|
}
|
|
69
|
+
/*
|
|
70
|
+
* The column a check reads, when it reads one: a check on one column, or
|
|
71
|
+
* a dbt test of one (dbt names it). Null for a check on the whole table -
|
|
72
|
+
* its rows, a query - even one that kept the column of a type it was
|
|
73
|
+
* before: that name is no longer what it reads.
|
|
74
|
+
*/
|
|
75
|
+
function getDataCheckColumn(check) {
|
|
76
|
+
const column = (check.columnName || "").trim();
|
|
77
|
+
if (!column) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
const type = check.checkType;
|
|
81
|
+
return isColumnCheckType(type) || type === DataCheckType.DbtTest
|
|
82
|
+
? column
|
|
83
|
+
: null;
|
|
84
|
+
}
|
|
68
85
|
// The checks a person writes the query of.
|
|
69
86
|
function isQueryCheckType(type) {
|
|
70
87
|
return type === DataCheckType.CustomSql || type === DataCheckType.FailingRows;
|
|
@@ -15,6 +15,7 @@ export const MAX_FAILING_ROW_VALUE_LENGTH = commonJsModule.MAX_FAILING_ROW_VALUE
|
|
|
15
15
|
export const MAX_SEGMENTS_PER_CHECK = commonJsModule.MAX_SEGMENTS_PER_CHECK;
|
|
16
16
|
export const SAMPLEABLE_CHECK_TYPES = commonJsModule.SAMPLEABLE_CHECK_TYPES;
|
|
17
17
|
export const doesAlertConditionNeedThreshold = commonJsModule.doesAlertConditionNeedThreshold;
|
|
18
|
+
export const getDataCheckColumn = commonJsModule.getDataCheckColumn;
|
|
18
19
|
export const isColumnCheckType = commonJsModule.isColumnCheckType;
|
|
19
20
|
export const isQueryCheckType = commonJsModule.isQueryCheckType;
|
|
20
21
|
export const isSampleableCheckType = commonJsModule.isSampleableCheckType;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataTableLineage } from "./DataTableLineage.mjs";
|
|
2
|
+
export interface LineageColumnTrail {
|
|
3
|
+
column: string;
|
|
4
|
+
columns: Map<string, Array<string>>;
|
|
5
|
+
edgeIds: Set<string>;
|
|
6
|
+
mayGoFurther: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function getLineageColumnKey(name: string): string;
|
|
9
|
+
export declare function getLineageColumnChoices(lineage: DataTableLineage, columnOrder?: ReadonlyArray<string>): Array<string>;
|
|
10
|
+
export declare function followLineageColumn(lineage: DataTableLineage, column: string): LineageColumnTrail;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataTableLineage } from "./DataTableLineage";
|
|
2
|
+
export interface LineageColumnTrail {
|
|
3
|
+
column: string;
|
|
4
|
+
columns: Map<string, Array<string>>;
|
|
5
|
+
edgeIds: Set<string>;
|
|
6
|
+
mayGoFurther: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function getLineageColumnKey(name: string): string;
|
|
9
|
+
export declare function getLineageColumnChoices(lineage: DataTableLineage, columnOrder?: ReadonlyArray<string>): Array<string>;
|
|
10
|
+
export declare function followLineageColumn(lineage: DataTableLineage, column: string): LineageColumnTrail;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLineageColumnKey = getLineageColumnKey;
|
|
4
|
+
exports.getLineageColumnChoices = getLineageColumnChoices;
|
|
5
|
+
exports.followLineageColumn = followLineageColumn;
|
|
6
|
+
const DataTableLineage_1 = require("./DataTableLineage");
|
|
7
|
+
/*
|
|
8
|
+
* Columns are matched whatever their case: two sources may write one
|
|
9
|
+
* column's name differently (Snowflake keeps unquoted names in capitals;
|
|
10
|
+
* a Spark or dbt job may name them as its code does).
|
|
11
|
+
*/
|
|
12
|
+
function getLineageColumnKey(name) {
|
|
13
|
+
return name.trim().toLowerCase();
|
|
14
|
+
}
|
|
15
|
+
/*
|
|
16
|
+
* The columns of the drawing's own table that can be followed: those an
|
|
17
|
+
* arrow into or out of it names, in the table's own order (`columnOrder`,
|
|
18
|
+
* as its last collection read them) and then by name, each named as the
|
|
19
|
+
* table names it. Empty when no arrow next to it names a column: nothing
|
|
20
|
+
* to pick.
|
|
21
|
+
*/
|
|
22
|
+
function getLineageColumnChoices(lineage, columnOrder = []) {
|
|
23
|
+
const focus = lineage.focusNodeId;
|
|
24
|
+
const named = new Map();
|
|
25
|
+
const name = (column) => {
|
|
26
|
+
const key = getLineageColumnKey(column);
|
|
27
|
+
if (key && !named.has(key)) {
|
|
28
|
+
named.set(key, column.trim());
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
for (const edge of lineage.edges) {
|
|
32
|
+
if (edge.kind !== DataTableLineage_1.DataLineageEdgeKind.Feeds || !edge.columnMappings) {
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
for (const mapping of edge.columnMappings) {
|
|
36
|
+
if (edge.target === focus) {
|
|
37
|
+
name(mapping.downstreamColumn);
|
|
38
|
+
}
|
|
39
|
+
if (edge.source === focus) {
|
|
40
|
+
name(mapping.upstreamColumn);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const order = new Map();
|
|
45
|
+
columnOrder.forEach((column, index) => {
|
|
46
|
+
const key = getLineageColumnKey(column);
|
|
47
|
+
if (!order.has(key)) {
|
|
48
|
+
order.set(key, index);
|
|
49
|
+
// As the table names it.
|
|
50
|
+
if (named.has(key)) {
|
|
51
|
+
named.set(key, column);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const placeOf = (key) => {
|
|
56
|
+
var _a;
|
|
57
|
+
return (_a = order.get(key)) !== null && _a !== void 0 ? _a : Number.MAX_SAFE_INTEGER;
|
|
58
|
+
};
|
|
59
|
+
return Array.from(named.keys())
|
|
60
|
+
.sort((a, b) => {
|
|
61
|
+
return placeOf(a) - placeOf(b) || compareText(a, b);
|
|
62
|
+
})
|
|
63
|
+
.map((key) => {
|
|
64
|
+
return named.get(key);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/*
|
|
68
|
+
* Where one column of the drawing's own table comes from and where it
|
|
69
|
+
* goes. Up: along each arrow into a card on its way whose columns name
|
|
70
|
+
* the column there, to the columns of the table before it that feed it -
|
|
71
|
+
* another name when it was renamed on the way, several when it is built
|
|
72
|
+
* from several. Down: along each arrow out, to the columns it feeds. Each
|
|
73
|
+
* way is followed on its own - a column that feeds the table is not
|
|
74
|
+
* followed down into the other tables it feeds - and each table's column
|
|
75
|
+
* once, so a cycle ends.
|
|
76
|
+
*/
|
|
77
|
+
function followLineageColumn(lineage, column) {
|
|
78
|
+
const focus = lineage.focusNodeId;
|
|
79
|
+
const into = new Map();
|
|
80
|
+
const out = new Map();
|
|
81
|
+
for (const edge of lineage.edges) {
|
|
82
|
+
if (edge.kind !== DataTableLineage_1.DataLineageEdgeKind.Feeds) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
into.set(edge.target, [...(into.get(edge.target) || []), edge]);
|
|
86
|
+
out.set(edge.source, [...(out.get(edge.source) || []), edge]);
|
|
87
|
+
}
|
|
88
|
+
const trail = {
|
|
89
|
+
column,
|
|
90
|
+
columns: new Map(),
|
|
91
|
+
edgeIds: new Set(),
|
|
92
|
+
mayGoFurther: false,
|
|
93
|
+
};
|
|
94
|
+
const addColumn = (nodeId, name) => {
|
|
95
|
+
const names = trail.columns.get(nodeId) || [];
|
|
96
|
+
if (!names.some((known) => {
|
|
97
|
+
return getLineageColumnKey(known) === getLineageColumnKey(name);
|
|
98
|
+
})) {
|
|
99
|
+
names.push(name);
|
|
100
|
+
}
|
|
101
|
+
trail.columns.set(nodeId, names);
|
|
102
|
+
};
|
|
103
|
+
if (!getLineageColumnKey(column)) {
|
|
104
|
+
return trail;
|
|
105
|
+
}
|
|
106
|
+
addColumn(focus, column);
|
|
107
|
+
for (const isUpstream of [true, false]) {
|
|
108
|
+
const visited = new Set([
|
|
109
|
+
`${focus}\u0000${getLineageColumnKey(column)}`,
|
|
110
|
+
]);
|
|
111
|
+
const queue = [
|
|
112
|
+
{ nodeId: focus, name: column },
|
|
113
|
+
];
|
|
114
|
+
for (let index = 0; index < queue.length; index++) {
|
|
115
|
+
const here = queue[index];
|
|
116
|
+
const arrows = (isUpstream ? into : out).get(here.nodeId) || [];
|
|
117
|
+
for (const edge of arrows) {
|
|
118
|
+
const mappings = edge.columnMappings || [];
|
|
119
|
+
// Its sources named no columns: it may carry this one.
|
|
120
|
+
if (mappings.length === 0) {
|
|
121
|
+
trail.mayGoFurther = true;
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
for (const mapping of mappings) {
|
|
125
|
+
const own = isUpstream
|
|
126
|
+
? mapping.downstreamColumn
|
|
127
|
+
: mapping.upstreamColumn;
|
|
128
|
+
if (getLineageColumnKey(own) !== getLineageColumnKey(here.name)) {
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
const next = {
|
|
132
|
+
nodeId: isUpstream ? edge.source : edge.target,
|
|
133
|
+
name: isUpstream
|
|
134
|
+
? mapping.upstreamColumn
|
|
135
|
+
: mapping.downstreamColumn,
|
|
136
|
+
};
|
|
137
|
+
const key = `${next.nodeId}\u0000${getLineageColumnKey(next.name)}`;
|
|
138
|
+
trail.edgeIds.add(edge.id);
|
|
139
|
+
addColumn(next.nodeId, next.name);
|
|
140
|
+
if (!visited.has(key)) {
|
|
141
|
+
visited.add(key);
|
|
142
|
+
queue.push(next);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return trail;
|
|
149
|
+
}
|
|
150
|
+
function compareText(a, b) {
|
|
151
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
152
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import commonJsModule from "./DataLineageColumnTrail.js";
|
|
2
|
+
export const followLineageColumn = commonJsModule.followLineageColumn;
|
|
3
|
+
export const getLineageColumnChoices = commonJsModule.getLineageColumnChoices;
|
|
4
|
+
export const getLineageColumnKey = commonJsModule.getLineageColumnKey;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DataLineageSide, DataTableLineageEdge, DataTableLineageNode } from "./DataTableLineage.mjs";
|
|
2
|
+
export declare const MAX_DATA_LINEAGE_DRAWN_TABLES: number;
|
|
3
|
+
export interface DataLineageDrawnTable {
|
|
4
|
+
dataAssetId: string;
|
|
5
|
+
side: DataLineageSide;
|
|
6
|
+
depth: number;
|
|
7
|
+
}
|
|
8
|
+
export interface DataLineageExpandRequest {
|
|
9
|
+
focusNodeId: string;
|
|
10
|
+
nodeId: string;
|
|
11
|
+
side: DataLineageSide;
|
|
12
|
+
tables: Array<DataLineageDrawnTable>;
|
|
13
|
+
dataDashboardIds: Array<string>;
|
|
14
|
+
withColumns?: boolean | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface DataLineageExpansion {
|
|
17
|
+
nodeId: string;
|
|
18
|
+
side: DataLineageSide;
|
|
19
|
+
hiddenCount: number;
|
|
20
|
+
nodes: Array<DataTableLineageNode>;
|
|
21
|
+
edges: Array<DataTableLineageEdge>;
|
|
22
|
+
hiddenDashboardCount: number | null;
|
|
23
|
+
isTruncated: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function readLineageCardId(value: unknown): {
|
|
26
|
+
kind: "table" | "pipeline";
|
|
27
|
+
id: string;
|
|
28
|
+
} | null;
|
|
29
|
+
export declare function readDataLineageExpandRequest(body: unknown): DataLineageExpandRequest | string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DataLineageSide, DataTableLineageEdge, DataTableLineageNode } from "./DataTableLineage";
|
|
2
|
+
export declare const MAX_DATA_LINEAGE_DRAWN_TABLES: number;
|
|
3
|
+
export interface DataLineageDrawnTable {
|
|
4
|
+
dataAssetId: string;
|
|
5
|
+
side: DataLineageSide;
|
|
6
|
+
depth: number;
|
|
7
|
+
}
|
|
8
|
+
export interface DataLineageExpandRequest {
|
|
9
|
+
focusNodeId: string;
|
|
10
|
+
nodeId: string;
|
|
11
|
+
side: DataLineageSide;
|
|
12
|
+
tables: Array<DataLineageDrawnTable>;
|
|
13
|
+
dataDashboardIds: Array<string>;
|
|
14
|
+
withColumns?: boolean | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface DataLineageExpansion {
|
|
17
|
+
nodeId: string;
|
|
18
|
+
side: DataLineageSide;
|
|
19
|
+
hiddenCount: number;
|
|
20
|
+
nodes: Array<DataTableLineageNode>;
|
|
21
|
+
edges: Array<DataTableLineageEdge>;
|
|
22
|
+
hiddenDashboardCount: number | null;
|
|
23
|
+
isTruncated: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function readLineageCardId(value: unknown): {
|
|
26
|
+
kind: "table" | "pipeline";
|
|
27
|
+
id: string;
|
|
28
|
+
} | null;
|
|
29
|
+
export declare function readDataLineageExpandRequest(body: unknown): DataLineageExpandRequest | string;
|