@oneuptime/common 15.0.0 → 17.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/AnalyticsModels/RumProductAnalyticsEvent.js +15 -6
- package/Models/AnalyticsModels/RumProductAnalyticsSession.js +27 -10
- package/Models/AnalyticsModels/RumProductAnalyticsUser.js +16 -4
- package/Models/AnalyticsModels/RumSession.js +12 -0
- package/Models/DatabaseModels/AIAgent.js +2 -0
- 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/AlertSeverity.js +12 -3
- package/Models/DatabaseModels/CustomNotificationChannel.js +17 -9
- package/Models/DatabaseModels/DataAsset.d.mts +1 -0
- package/Models/DatabaseModels/DataAsset.d.ts +1 -0
- package/Models/DatabaseModels/DataAsset.js +23 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +2 -1
- package/Models/DatabaseModels/DataBiConnection.d.ts +2 -1
- package/Models/DatabaseModels/DataBiConnection.js +15 -0
- package/Models/DatabaseModels/DataCheck.d.mts +3 -0
- package/Models/DatabaseModels/DataCheck.d.ts +3 -0
- package/Models/DatabaseModels/DataCheck.js +49 -0
- package/Models/DatabaseModels/DataDashboard.d.mts +1 -0
- package/Models/DatabaseModels/DataDashboard.d.ts +1 -0
- package/Models/DatabaseModels/DataDashboard.js +15 -0
- package/Models/DatabaseModels/DataPipeline.d.mts +1 -0
- package/Models/DatabaseModels/DataPipeline.d.ts +1 -0
- package/Models/DatabaseModels/DataPipeline.js +25 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.d.mts +19 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.d.ts +19 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.js +477 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.d.mts +18 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.d.ts +18 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.js +476 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/DataProduct.js +3 -2
- package/Models/DatabaseModels/DataStore.d.mts +1 -0
- package/Models/DatabaseModels/DataStore.d.ts +1 -0
- package/Models/DatabaseModels/DataStore.js +23 -0
- package/Models/DatabaseModels/DataStoreFinding.d.mts +2 -0
- package/Models/DatabaseModels/DataStoreFinding.d.ts +2 -0
- package/Models/DatabaseModels/DataStoreFinding.js +21 -0
- package/Models/DatabaseModels/EmailLog.d.mts +1 -0
- package/Models/DatabaseModels/EmailLog.d.ts +1 -0
- package/Models/DatabaseModels/EmailLog.js +35 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +129 -1
- package/Models/DatabaseModels/GlobalOidc.d.mts +1 -0
- package/Models/DatabaseModels/GlobalOidc.d.ts +1 -0
- package/Models/DatabaseModels/GlobalOidc.js +29 -0
- package/Models/DatabaseModels/IncidentSeverity.js +12 -3
- package/Models/DatabaseModels/Index.js +6 -0
- package/Models/DatabaseModels/IoTDeviceCredential.js +3 -1
- package/Models/DatabaseModels/Monitor.d.mts +4 -0
- package/Models/DatabaseModels/Monitor.d.ts +4 -0
- package/Models/DatabaseModels/Monitor.js +126 -5
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +92 -17
- package/Models/DatabaseModels/NetworkDeviceAutoImportRule.js +2 -2
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +38 -15
- package/Models/DatabaseModels/NetworkSnmpCredentialProfile.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +6 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +6 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +156 -1
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +1 -1
- package/Models/DatabaseModels/OpenStackProjectNotice.js +29 -10
- package/Models/DatabaseModels/Probe.d.mts +4 -0
- package/Models/DatabaseModels/Probe.d.ts +4 -0
- package/Models/DatabaseModels/Probe.js +102 -0
- package/Models/DatabaseModels/ProductFeedback.d.mts +2 -1
- package/Models/DatabaseModels/ProductFeedback.d.ts +2 -1
- package/Models/DatabaseModels/ProductFeedback.js +34 -2
- package/Models/DatabaseModels/Project.d.mts +4 -1
- package/Models/DatabaseModels/Project.d.ts +4 -1
- package/Models/DatabaseModels/Project.js +147 -7
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +8 -2
- package/Models/DatabaseModels/ProjectOidc.d.mts +1 -0
- package/Models/DatabaseModels/ProjectOidc.d.ts +1 -0
- package/Models/DatabaseModels/ProjectOidc.js +46 -0
- 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/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +12 -3
- package/Models/DatabaseModels/RumApplication.d.mts +1 -0
- package/Models/DatabaseModels/RumApplication.d.ts +1 -0
- package/Models/DatabaseModels/RumApplication.js +58 -0
- package/Models/DatabaseModels/RumSessionErasureRequest.d.mts +1 -0
- package/Models/DatabaseModels/RumSessionErasureRequest.d.ts +1 -0
- package/Models/DatabaseModels/RumSessionErasureRequest.js +40 -0
- package/Models/DatabaseModels/Runbook.js +3 -2
- package/Models/DatabaseModels/Runner.js +2 -0
- package/Models/DatabaseModels/SecurityCaseTask.d.mts +1 -0
- package/Models/DatabaseModels/SecurityCaseTask.d.ts +1 -0
- package/Models/DatabaseModels/SecurityCaseTask.js +27 -0
- package/Models/DatabaseModels/ServerEmailLog.d.mts +12 -0
- package/Models/DatabaseModels/ServerEmailLog.d.ts +12 -0
- package/Models/DatabaseModels/ServerEmailLog.js +206 -0
- package/Models/DatabaseModels/ServerEmailLog.mjs +2 -0
- package/Models/DatabaseModels/StatusPage.js +3 -2
- package/Models/DatabaseModels/StatusPageGroup.js +1 -1
- package/Models/DatabaseModels/StatusPageResource.js +1 -1
- 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 +35 -15
- package/Models/DatabaseModels/TelemetryException.js +15 -2
- package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +46 -1
- package/Models/DatabaseModels/User.d.mts +3 -0
- package/Models/DatabaseModels/User.d.ts +3 -0
- package/Models/DatabaseModels/User.js +66 -0
- package/Models/DatabaseModels/UserSession.d.mts +1 -0
- package/Models/DatabaseModels/UserSession.d.ts +1 -0
- package/Models/DatabaseModels/UserSession.js +32 -0
- package/Models/DatabaseModels/UserWebhook.js +25 -17
- package/Models/DatabaseModels/WebhookLog.js +12 -2
- 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/WorkspaceLiveMessage.js +21 -15
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +17 -9
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +8 -2
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Server/Services/DatabaseService.d.mts +27 -1
- package/Server/Services/DatabaseService.d.ts +27 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
- package/Types/AI/AIActionWords.js +2 -1
- package/Types/AI/AIChatPageContext.d.mts +1 -0
- package/Types/AI/AIChatPageContext.d.ts +1 -0
- package/Types/AI/AIChatPageContext.js +6 -0
- package/Types/AI/AIRunProducts.d.mts +14 -0
- package/Types/AI/AIRunProducts.d.ts +14 -0
- package/Types/AI/AIRunProducts.js +40 -0
- package/Types/AI/AIRunProducts.mjs +2 -0
- package/Types/AI/AskAiRatings.d.mts +31 -0
- package/Types/AI/AskAiRatings.d.ts +31 -0
- package/Types/AI/AskAiRatings.js +173 -0
- package/Types/AI/AskAiRatings.mjs +13 -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/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/SignUpInvitation.d.mts +12 -0
- package/Types/Accounts/SignUpInvitation.d.ts +12 -0
- package/Types/Accounts/SignUpInvitation.js +84 -0
- package/Types/Accounts/SignUpInvitation.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +2 -1
- package/Types/Analytics/ActivationMilestone.d.ts +2 -1
- package/Types/Analytics/ActivationMilestone.js +11 -0
- package/Types/Analytics/ProductEvent.d.mts +11 -0
- package/Types/Analytics/ProductEvent.d.ts +11 -0
- package/Types/Analytics/ProductEvent.js +166 -13
- package/Types/Analytics/ProductEvent.mjs +3 -0
- package/Types/Backup/BackupScriptRun.d.mts +17 -0
- package/Types/Backup/BackupScriptRun.d.ts +17 -0
- package/Types/Backup/BackupScriptRun.js +96 -0
- package/Types/Backup/BackupScriptRun.mjs +6 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +1 -1
- package/Types/BaseDatabase/ReadAudience.d.mts +9 -0
- package/Types/BaseDatabase/ReadAudience.d.ts +9 -0
- package/Types/BaseDatabase/ReadAudience.js +2 -0
- package/Types/BaseDatabase/ReadAudience.mjs +1 -0
- package/Types/Cloud/CloudKeyMetricGroup.d.mts +17 -0
- package/Types/Cloud/CloudKeyMetricGroup.d.ts +17 -0
- package/Types/Cloud/CloudKeyMetricGroup.js +84 -0
- package/Types/Cloud/CloudKeyMetricGroup.mjs +5 -0
- package/Types/Cloud/CloudKeyMetrics.d.mts +28 -1
- package/Types/Cloud/CloudKeyMetrics.d.ts +28 -1
- package/Types/Cloud/CloudKeyMetrics.js +1209 -206
- package/Types/Cloud/CloudKeyMetrics.mjs +6 -0
- package/Types/Cloud/CloudResourceCatalog.js +43 -12
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +1 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +1 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +49 -6
- package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +1 -0
- package/Types/CloudConnection/CloudStreamTemplate.js +6 -2
- 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/CreateFormAddress.d.mts +3 -0
- package/Types/CreateFormAddress.d.ts +3 -0
- package/Types/CreateFormAddress.js +17 -0
- package/Types/CreateFormAddress.mjs +4 -0
- package/Types/DataObservability/DataAssetFreshness.d.mts +5 -0
- package/Types/DataObservability/DataAssetFreshness.d.ts +5 -0
- package/Types/DataObservability/DataAssetFreshness.js +28 -5
- package/Types/DataObservability/DataAssetFreshness.mjs +1 -0
- package/Types/DataObservability/DataBiLineage.d.mts +69 -0
- package/Types/DataObservability/DataBiLineage.d.ts +69 -0
- package/Types/DataObservability/DataBiLineage.js +198 -0
- package/Types/DataObservability/DataBiLineage.mjs +13 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +2 -1
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +2 -1
- package/Types/DataObservability/DataLineageColumnTrail.js +41 -3
- package/Types/DataObservability/DataLineageColumnTrail.mjs +1 -0
- package/Types/DataObservability/DataLineageMap.d.mts +67 -1
- package/Types/DataObservability/DataLineageMap.d.ts +67 -1
- package/Types/DataObservability/DataLineageMap.js +335 -3
- package/Types/DataObservability/DataLineageMap.mjs +14 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +42 -2
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +42 -2
- package/Types/DataObservability/DataObservabilityApiTypes.js +21 -1
- package/Types/DataObservability/DataObservabilityApiTypes.mjs +4 -0
- package/Types/DataObservability/DataObservabilityAttention.d.mts +5 -0
- package/Types/DataObservability/DataObservabilityAttention.d.ts +5 -0
- package/Types/DataObservability/DataObservabilityAttention.js +48 -1
- package/Types/DataObservability/DataObservabilityAttention.mjs +5 -0
- package/Types/DataObservability/DataPipelineSchedule.d.mts +4 -0
- package/Types/DataObservability/DataPipelineSchedule.d.ts +4 -0
- package/Types/DataObservability/DataPipelineSchedule.js +26 -6
- package/Types/DataObservability/DataPipelineSchedule.mjs +1 -0
- package/Types/DataObservability/DataTableLineage.d.mts +6 -0
- package/Types/DataObservability/DataTableLineage.d.ts +6 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.mts +24 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.ts +24 -0
- package/Types/DataSecurity/DataSecurityApiTypes.js +21 -1
- package/Types/DataSecurity/DataSecurityApiTypes.mjs +2 -0
- package/Types/DataSecurity/FindingSampleRecord.d.mts +16 -0
- package/Types/DataSecurity/FindingSampleRecord.d.ts +16 -0
- package/Types/DataSecurity/FindingSampleRecord.js +112 -0
- package/Types/DataSecurity/FindingSampleRecord.mjs +6 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +6 -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/MoveInList.d.mts +41 -0
- package/Types/Database/MoveInList.d.ts +41 -0
- package/Types/Database/MoveInList.js +177 -0
- package/Types/Database/MoveInList.mjs +4 -0
- package/Types/Database/TableColumn.d.mts +3 -0
- package/Types/Database/TableColumn.d.ts +3 -0
- 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/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 +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +5 -0
- package/Types/Email/ServerEmailLog.d.mts +41 -0
- package/Types/Email/ServerEmailLog.d.ts +41 -0
- package/Types/Email/ServerEmailLog.js +136 -0
- package/Types/Email/ServerEmailLog.mjs +11 -0
- package/Types/Exception/ProductSwitchedOffException.d.mts +12 -0
- package/Types/Exception/ProductSwitchedOffException.d.ts +12 -0
- package/Types/Exception/ProductSwitchedOffException.js +38 -0
- package/Types/Exception/ProductSwitchedOffException.mjs +2 -0
- package/Types/Exception/UnexplainedError.d.mts +7 -0
- package/Types/Exception/UnexplainedError.d.ts +7 -0
- package/Types/Exception/UnexplainedError.js +36 -1
- package/Types/Exception/UnexplainedError.mjs +2 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +39 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +39 -0
- package/Types/InstallationHealth/InstallationHealth.js +163 -0
- package/Types/Kubernetes/KubernetesHealth.d.mts +16 -0
- package/Types/Kubernetes/KubernetesHealth.d.ts +16 -0
- package/Types/Kubernetes/KubernetesHealth.js +128 -6
- package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
- package/Types/Monitor/CloudAppAlertTemplates.d.mts +3 -13
- package/Types/Monitor/CloudAppAlertTemplates.d.ts +3 -13
- package/Types/Monitor/CloudAppAlertTemplates.js +13 -199
- package/Types/Monitor/CriteriaFilter.d.mts +2 -1
- package/Types/Monitor/CriteriaFilter.d.ts +2 -1
- package/Types/Monitor/CriteriaFilter.js +9 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/MessageQueueAlertTemplates.d.mts +6 -0
- package/Types/Monitor/MessageQueueAlertTemplates.d.ts +6 -0
- package/Types/Monitor/MessageQueueAlertTemplates.js +32 -0
- package/Types/Monitor/MessageQueueAlertTemplates.mjs +2 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.mts +2 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.ts +2 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +52 -0
- package/Types/Monitor/MonitorMetricType.d.mts +2 -1
- package/Types/Monitor/MonitorMetricType.d.ts +2 -1
- package/Types/Monitor/MonitorMetricType.js +1 -0
- package/Types/Monitor/MonitorStepLimit.d.mts +8 -0
- package/Types/Monitor/MonitorStepLimit.d.ts +8 -0
- package/Types/Monitor/MonitorStepLimit.js +62 -0
- package/Types/Monitor/MonitorStepLimit.mjs +3 -0
- package/Types/Monitor/MonitorSteps.js +5 -0
- package/Types/Monitor/MonitorType.js +2 -1
- package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.mts +5 -0
- package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.ts +5 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +111 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +7 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +7 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +15 -0
- package/Types/Monitor/RequestHealthAlertTemplates.d.mts +66 -0
- package/Types/Monitor/RequestHealthAlertTemplates.d.ts +66 -0
- package/Types/Monitor/RequestHealthAlertTemplates.js +227 -0
- package/Types/Monitor/RequestHealthAlertTemplates.mjs +4 -0
- package/Types/Monitor/ServerlessAlertTemplates.d.mts +23 -0
- package/Types/Monitor/ServerlessAlertTemplates.d.ts +23 -0
- package/Types/Monitor/ServerlessAlertTemplates.js +111 -0
- package/Types/Monitor/ServerlessAlertTemplates.mjs +7 -0
- package/Types/Monitor/ServiceAlertTemplates.d.mts +3 -0
- package/Types/Monitor/ServiceAlertTemplates.d.ts +3 -0
- package/Types/Monitor/ServiceAlertTemplates.js +61 -0
- package/Types/Monitor/ServiceAlertTemplates.mjs +2 -0
- package/Types/Monitor/TelemetryRulePreview.js +18 -6
- package/Types/Monitor/WhoIsTold.d.mts +71 -0
- package/Types/Monitor/WhoIsTold.d.ts +71 -0
- package/Types/Monitor/WhoIsTold.js +348 -121
- package/Types/Monitor/WhoIsTold.mjs +7 -0
- package/Types/NetworkAutomation/RuleRunResult.js +9 -5
- package/Types/NetworkDevice/DiscoveredDevice.d.mts +40 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.ts +40 -0
- package/Types/NetworkDevice/DiscoveredDevice.js +205 -1
- package/Types/NetworkDevice/DiscoveredDevice.mjs +9 -0
- package/Types/NetworkDevice/DiscoveryImport.js +8 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +26 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +26 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +75 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +2 -0
- package/Types/Notification/WhoWasTold.d.mts +190 -0
- package/Types/Notification/WhoWasTold.d.ts +190 -0
- package/Types/Notification/WhoWasTold.js +662 -0
- package/Types/Notification/WhoWasTold.mjs +16 -0
- package/Types/NotificationRule/PagingLadderDefault.d.mts +75 -0
- package/Types/NotificationRule/PagingLadderDefault.d.ts +75 -0
- package/Types/NotificationRule/PagingLadderDefault.js +529 -0
- package/Types/NotificationRule/PagingLadderDefault.mjs +24 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +7 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +7 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.js +53 -2
- package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +3 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.mts +6 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.ts +6 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.js +27 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.d.mts +83 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.d.ts +83 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.mjs +9 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.js +12 -4
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +69 -8
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +4 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +4 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +20 -7
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +2 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +2 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +2 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +14 -1
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +2 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +63 -1
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +4 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +21 -1
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +21 -1
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +46 -2
- package/Types/Permission.d.mts +8 -0
- package/Types/Permission.d.ts +8 -0
- package/Types/Permission.js +84 -0
- package/Types/Probe/ProbeBehind.d.mts +48 -0
- package/Types/Probe/ProbeBehind.d.ts +48 -0
- package/Types/Probe/ProbeBehind.js +196 -0
- package/Types/Probe/ProbeBehind.mjs +6 -0
- package/Types/Product/ProductRecordTables.d.mts +8 -0
- package/Types/Product/ProductRecordTables.d.ts +8 -0
- package/Types/Product/ProductRecordTables.js +847 -0
- package/Types/Product/ProductRecordTables.mjs +5 -0
- package/Types/Product/ProductUsage.d.mts +2 -0
- package/Types/Product/ProductUsage.d.ts +2 -0
- package/Types/Product/ProductUsage.js +41 -6
- package/Types/Product/ProductUsage.mjs +2 -0
- package/Types/Product/ServerProductOffReason.d.mts +4 -0
- package/Types/Product/ServerProductOffReason.d.ts +4 -0
- package/Types/Product/ServerProductOffReason.js +19 -0
- package/Types/Product/ServerProductOffReason.mjs +2 -0
- package/Types/Product/ServerProducts.d.mts +2 -4
- package/Types/Product/ServerProducts.d.ts +2 -4
- package/Types/Product/ServerProducts.js +19 -17
- package/Types/ProductFeedback/ProductFeedback.d.mts +45 -1
- package/Types/ProductFeedback/ProductFeedback.d.ts +45 -1
- package/Types/ProductFeedback/ProductFeedback.js +185 -5
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -0
- package/Types/PushNotification/PushNotificationCategory.d.mts +1 -0
- package/Types/PushNotification/PushNotificationCategory.d.ts +1 -0
- package/Types/PushNotification/PushNotificationCategory.js +17 -6
- package/Types/PushNotification/PushNotificationCategory.mjs +1 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.d.mts +18 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.d.ts +18 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.js +34 -1
- package/Types/Rules/RuleCriteriaFieldRegistry.mjs +4 -0
- package/Types/Rum/ProductAnalytics.d.mts +9 -0
- package/Types/Rum/ProductAnalytics.d.ts +9 -0
- package/Types/Rum/ProductAnalytics.js +56 -8
- package/Types/Rum/ProductAnalytics.mjs +6 -0
- package/Types/Rum/ProductAnalyticsEvents.js +2 -1
- package/Types/Rum/SessionReplay.d.mts +3 -0
- package/Types/Rum/SessionReplay.d.ts +3 -0
- package/Types/Rum/SessionReplay.js +35 -1
- package/Types/Rum/SessionReplay.mjs +2 -0
- package/Types/Runbook/RunbookTriggerType.d.mts +1 -0
- package/Types/Runbook/RunbookTriggerType.d.ts +1 -0
- package/Types/Runbook/RunbookTriggerType.js +19 -1
- package/Types/Runbook/RunbookTriggerType.mjs +1 -0
- package/Types/Runner/RunnerCodeFixCapability.d.mts +3 -1
- package/Types/Runner/RunnerCodeFixCapability.d.ts +3 -1
- package/Types/Runner/RunnerCodeFixCapability.js +19 -1
- package/Types/Runner/RunnerCodeFixCapability.mjs +1 -0
- package/Types/SSO/IdentityProviderSignOut.d.mts +24 -0
- package/Types/SSO/IdentityProviderSignOut.d.ts +24 -0
- package/Types/SSO/IdentityProviderSignOut.js +124 -0
- package/Types/SSO/IdentityProviderSignOut.mjs +10 -0
- package/Types/SSO/SessionsWithoutSso.js +2 -2
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +4 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +4 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +12 -0
- package/Types/SecurityCase/SecurityCaseMatches.d.mts +78 -0
- package/Types/SecurityCase/SecurityCaseMatches.d.ts +78 -0
- package/Types/SecurityCase/SecurityCaseMatches.js +252 -0
- package/Types/SecurityCase/SecurityCaseMatches.mjs +17 -0
- package/Types/ServerSending/ProjectCanSend.d.mts +10 -0
- package/Types/ServerSending/ProjectCanSend.d.ts +10 -0
- package/Types/ServerSending/ProjectCanSend.js +49 -0
- package/Types/ServerSending/ProjectCanSend.mjs +4 -0
- package/Types/ServerSending/ServerAlerts.d.mts +78 -0
- package/Types/ServerSending/ServerAlerts.d.ts +78 -0
- package/Types/ServerSending/ServerAlerts.js +393 -0
- package/Types/ServerSending/ServerAlerts.mjs +8 -0
- package/Types/ServerSending/ServerSendingStatus.d.mts +29 -2
- package/Types/ServerSending/ServerSendingStatus.d.ts +29 -2
- package/Types/ServerSending/ServerSendingStatus.js +231 -10
- package/Types/ServerSending/ServerSendingStatus.mjs +3 -0
- package/Types/ServerSending/ServerSetUpProblem.d.mts +46 -0
- package/Types/ServerSending/ServerSetUpProblem.d.ts +46 -0
- package/Types/ServerSending/ServerSetUpProblem.js +164 -0
- package/Types/ServerSending/ServerSetUpProblem.mjs +6 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +35 -1
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +35 -1
- package/Types/ServerSetup/ServerSetupChecklist.js +275 -33
- package/Types/ServerSetup/ServerSetupChecklist.mjs +5 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +11 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +11 -0
- package/Types/ServerSetup/ServerTestSend.js +60 -3
- package/Types/ServerSetup/ServerTestSend.mjs +2 -0
- package/Types/ServiceLevelObjective/SloStatus.d.mts +3 -0
- package/Types/ServiceLevelObjective/SloStatus.d.ts +3 -0
- package/Types/ServiceLevelObjective/SloStatus.js +38 -0
- package/Types/ServiceLevelObjective/SloStatus.mjs +2 -0
- package/Types/ServiceLevelObjective/SloStatusChange.d.mts +10 -0
- package/Types/ServiceLevelObjective/SloStatusChange.d.ts +10 -0
- package/Types/ServiceLevelObjective/SloStatusChange.js +71 -0
- package/Types/ServiceLevelObjective/SloStatusChange.mjs +5 -0
- package/Types/SetupHealth/SetupHealth.d.mts +31 -3
- package/Types/SetupHealth/SetupHealth.d.ts +31 -3
- package/Types/SetupHealth/SetupHealth.js +333 -4
- package/Types/SetupHealth/SetupHealth.mjs +5 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +8 -5
- package/Types/StatusPage/StatusPageMagicLink.js +1 -1
- package/Types/StatusPage/StatusPagePublicName.d.mts +6 -0
- package/Types/StatusPage/StatusPagePublicName.d.ts +6 -0
- package/Types/StatusPage/StatusPagePublicName.js +32 -0
- package/Types/StatusPage/StatusPagePublicName.mjs +3 -0
- 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/Team/InvitationEmailsNotSent.d.mts +28 -0
- package/Types/Team/InvitationEmailsNotSent.d.ts +28 -0
- package/Types/Team/InvitationEmailsNotSent.js +261 -0
- package/Types/Team/InvitationEmailsNotSent.mjs +13 -0
- package/Types/Team/ProjectMemberSearch.d.mts +15 -0
- package/Types/Team/ProjectMemberSearch.d.ts +15 -0
- package/Types/Team/ProjectMemberSearch.js +180 -0
- package/Types/Team/ProjectMemberSearch.mjs +10 -0
- package/Types/Team/ProjectRemovalReach.d.mts +15 -0
- package/Types/Team/ProjectRemovalReach.d.ts +15 -0
- package/Types/Team/ProjectRemovalReach.js +154 -0
- package/Types/Team/ProjectRemovalReach.mjs +8 -0
- package/Types/Team/ResendInvitation.d.mts +27 -0
- package/Types/Team/ResendInvitation.d.ts +27 -0
- package/Types/Team/ResendInvitation.js +123 -0
- package/Types/Team/ResendInvitation.mjs +12 -0
- package/Types/UsedBy/UsedBy.d.mts +1 -0
- package/Types/UsedBy/UsedBy.d.ts +1 -0
- package/Types/UsedBy/UsedBy.js +2 -0
- package/Types/UsedBy/UsedByServerProducts.js +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +27 -4
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +27 -4
- package/Types/WelcomeChecklist/WelcomeChecklist.js +166 -42
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +4 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +4 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +175 -33
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +30 -1
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +1 -0
- package/Types/Workflow/Component.d.mts +0 -1
- package/Types/Workflow/Component.d.ts +0 -1
- 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 -1
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +23 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +23 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +12 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +12 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +106 -4
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +2 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +2 -0
- package/Types/Workspace/WorkspaceMessagePayload.js +6 -1
- package/Types/Workspace/WorkspaceMessagePayload.mjs +1 -0
- package/UI/Components/Dropdown/Dropdown.d.mts +2 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +2 -0
- 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/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +6 -1
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +6 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +4 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +4 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.js +10 -5
- package/Utils/DataSecurity/CustomDataTypeDetector.js +3 -1
- package/Utils/DataSecurity/DetectorPrefilter.d.mts +9 -0
- package/Utils/DataSecurity/DetectorPrefilter.d.ts +9 -0
- package/Utils/DataSecurity/DetectorPrefilter.js +471 -0
- package/Utils/DataSecurity/DetectorPrefilter.mjs +6 -0
- package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
- package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
- package/Utils/DataSecurity/FieldClassifier.js +38 -8
- package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +22 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +22 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.js +270 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.mjs +5 -0
- package/Utils/DataSecurity/TextScanner.d.mts +4 -0
- package/Utils/DataSecurity/TextScanner.d.ts +4 -0
- 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/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/Monitor/DeviceMonitorDuplicates.d.mts +34 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.d.ts +34 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.js +134 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.mjs +7 -0
- package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +4 -0
- package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +4 -0
- package/Utils/Monitor/DeviceMonitorTemplateUtil.js +33 -6
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +5 -5
- package/Utils/Monitor/MonitorMetricType.js +11 -1
- 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 +1 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +27 -9
- package/Utils/Monitor/MonitorRowStatus.js +2 -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/ProbeFailureCauses.js +4 -1
- package/Utils/Monitor/ProbeStatusMonitorUtil.d.mts +5 -1
- package/Utils/Monitor/ProbeStatusMonitorUtil.d.ts +5 -1
- package/Utils/Monitor/ProbeStatusMonitorUtil.js +106 -0
- 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/NetworkDeviceAssetFacts.d.mts +3 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +3 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +33 -4
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.mts +33 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.ts +33 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.js +105 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.mjs +8 -0
- package/Utils/NetworkDevice/SnmpCredentialUtil.d.mts +5 -0
- package/Utils/NetworkDevice/SnmpCredentialUtil.d.ts +5 -0
- package/Utils/NetworkDevice/SnmpCredentialUtil.js +28 -3
- package/Utils/NetworkDevice/SnmpCredentialUtil.mjs +3 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +20 -1
- package/Utils/NetworkDiscovery/SnmpScanConfigUtil.js +11 -4
- 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/Rules/RuleCriteriaMatcher.d.mts +1 -0
- package/Utils/Rules/RuleCriteriaMatcher.d.ts +1 -0
- package/Utils/Rules/RuleCriteriaMatcher.js +6 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.d.mts +10 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.d.ts +10 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.js +83 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.mjs +4 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.d.mts +27 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.d.ts +27 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.js +377 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.mjs +9 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.d.mts +35 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.d.ts +35 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.js +168 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.mjs +6 -0
- package/Utils/Slo/SloBurnRateRuleState.js +3 -6
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +17 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +17 -0
- package/Utils/Slo/SloErrorBudgetPolicy.js +72 -1
- package/Utils/Slo/SloErrorBudgetPolicy.mjs +4 -0
- package/Utils/Slo/SloFeedMarkdown.d.mts +5 -2
- package/Utils/Slo/SloFeedMarkdown.d.ts +5 -2
- package/Utils/Slo/SloFeedMarkdown.js +19 -7
- package/Utils/Slo/SloFeedMarkdown.mjs +1 -0
- package/Utils/Slo/SloHealth.d.mts +5 -0
- package/Utils/Slo/SloHealth.d.ts +5 -0
- package/Utils/Slo/SloHealth.js +27 -0
- package/Utils/Slo/SloListWidgetFormat.js +5 -3
- package/Utils/Slo/SloMetricType.js +6 -5
- package/Utils/Slo/SloMonitorsFirstCheck.d.mts +13 -0
- package/Utils/Slo/SloMonitorsFirstCheck.d.ts +13 -0
- package/Utils/Slo/SloMonitorsFirstCheck.js +78 -0
- package/Utils/Slo/SloMonitorsFirstCheck.mjs +3 -0
- package/Utils/Slo/SloOverviewText.js +7 -0
- package/Utils/Slo/SloStatusColor.d.mts +3 -0
- package/Utils/Slo/SloStatusColor.d.ts +3 -0
- package/Utils/Slo/SloStatusColor.js +3 -0
- package/Utils/Slo/SloStatusPosts.d.mts +18 -0
- package/Utils/Slo/SloStatusPosts.d.ts +18 -0
- package/Utils/Slo/SloStatusPosts.js +95 -0
- package/Utils/Slo/SloStatusPosts.mjs +3 -0
- package/Utils/StatusPage/GridAxisValues.d.mts +2 -0
- package/Utils/StatusPage/GridAxisValues.d.ts +2 -0
- package/Utils/StatusPage/GridAxisValues.js +33 -0
- package/Utils/StatusPage/GridAxisValues.mjs +3 -0
- package/Utils/StatusPage/GroupHierarchyView.d.mts +2 -2
- package/Utils/StatusPage/GroupHierarchyView.d.ts +2 -2
- package/Utils/StatusPage/GroupHierarchyView.js +13 -12
- package/Utils/StatusPage/GroupNestingLayout.d.mts +1 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +1 -0
- package/Utils/StatusPage/GroupNestingLayout.js +25 -5
- 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/ResourceExplorer.d.mts +2 -2
- package/Utils/StatusPage/ResourceExplorer.d.ts +2 -2
- package/Utils/StatusPage/ResourceExplorer.js +15 -21
- package/Utils/StatusPage/StatusColorsOnDark.d.mts +5 -3
- package/Utils/StatusPage/StatusColorsOnDark.d.ts +5 -3
- package/Utils/StatusPage/StatusColorsOnDark.js +18 -6
- package/Utils/StatusPage/StatusColorsOnDark.mjs +1 -0
- 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/Telemetry/MobileAppFaults.d.mts +8 -0
- package/Utils/Telemetry/MobileAppFaults.d.ts +8 -0
- package/Utils/Telemetry/MobileAppFaults.js +69 -0
- package/Utils/Telemetry/MobileAppFaults.mjs +6 -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/Utils/Workspace/WorkspaceRefusal.d.mts +108 -0
- package/Utils/Workspace/WorkspaceRefusal.d.ts +108 -0
- package/Utils/Workspace/WorkspaceRefusal.js +769 -0
- package/Utils/Workspace/WorkspaceRefusal.mjs +50 -0
- package/package.json +4 -1
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.EXCERPT_CONTEXT_AFTER = exports.EXCERPT_CONTEXT_BEFORE = void 0;
|
|
37
|
+
exports.toReadableText = toReadableText;
|
|
38
|
+
exports.buildOccurrenceExcerpt = buildOccurrenceExcerpt;
|
|
39
|
+
const DataSecurityApiTypes_1 = require("../../Types/DataSecurity/DataSecurityApiTypes");
|
|
40
|
+
const Index_1 = __importStar(require("./Detectors/Index"));
|
|
41
|
+
const FieldNameHints_1 = require("./FieldNameHints");
|
|
42
|
+
const Masking_1 = require("./Masking");
|
|
43
|
+
const TextScanner_1 = require("./TextScanner");
|
|
44
|
+
/*
|
|
45
|
+
* A RECORD'S VALUE, AROUND THE DATA A FINDING IS ABOUT, MASKED.
|
|
46
|
+
*
|
|
47
|
+
* "Show maybe actual log lines where things are found and highlight
|
|
48
|
+
* sections" (issue #9549). The value a telemetry record holds at a
|
|
49
|
+
* finding's location - a log line, an exception's message, an attribute, a
|
|
50
|
+
* prompt - cut to the part around the finding's data, so a person sees
|
|
51
|
+
* what the line was doing with it: "Ping to 34.***.***.*** took 120 ms".
|
|
52
|
+
*
|
|
53
|
+
* - The finding's own data is found with its own detectors, as the scan
|
|
54
|
+
* found it (the project's hints, turned-off types and allowed values),
|
|
55
|
+
* and marked. A value found by its shape or its field's name alone - a
|
|
56
|
+
* cvv field's "123", a first name - is the whole value, masked.
|
|
57
|
+
* - Every other sensitive value any detector finds in it is masked too, so
|
|
58
|
+
* the excerpt never shows a raw value of any type, whatever the project
|
|
59
|
+
* turned off.
|
|
60
|
+
* - Masking is a finding's samples' (Masking.ts). The text in between is
|
|
61
|
+
* the record's own, shown only to someone who may read that telemetry,
|
|
62
|
+
* with control characters (a terminal's colour codes) taken out.
|
|
63
|
+
* - The cut never falls inside a sensitive value: a value the edge would
|
|
64
|
+
* cut is taken whole, so half of one is never shown unmasked.
|
|
65
|
+
*/
|
|
66
|
+
// How much of the value before the finding's data, and after it, is kept.
|
|
67
|
+
exports.EXCERPT_CONTEXT_BEFORE = 80;
|
|
68
|
+
exports.EXCERPT_CONTEXT_AFTER = 160;
|
|
69
|
+
// How far an edge may move to fall between words instead of inside one.
|
|
70
|
+
const WORD_EDGE_REACH = 16;
|
|
71
|
+
function isWhitespace(code) {
|
|
72
|
+
return code === 0x20 || code === 0x09 || code === 0x0a || code === 0x0d;
|
|
73
|
+
}
|
|
74
|
+
function isLowSurrogate(code) {
|
|
75
|
+
return code >= 0xdc00 && code <= 0xdfff;
|
|
76
|
+
}
|
|
77
|
+
// An edge moved back or on to the nearest space within reach, if there is one.
|
|
78
|
+
function toWordEdge(value, edge, direction, limit) {
|
|
79
|
+
for (let step = 0; step <= WORD_EDGE_REACH; step++) {
|
|
80
|
+
const position = edge + step * direction;
|
|
81
|
+
if (direction === 1 ? position >= limit : position <= limit) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
if (isWhitespace(value.charCodeAt(direction === 1 ? position - 1 : position))) {
|
|
85
|
+
return position;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return edge;
|
|
89
|
+
}
|
|
90
|
+
/*
|
|
91
|
+
* The record's own text between sensitive values, as a page can draw it:
|
|
92
|
+
* one kind of line break, no control characters, no terminal escapes.
|
|
93
|
+
*/
|
|
94
|
+
function toReadableText(text) {
|
|
95
|
+
let readable = "";
|
|
96
|
+
let index = 0;
|
|
97
|
+
while (index < text.length) {
|
|
98
|
+
const code = text.charCodeAt(index);
|
|
99
|
+
// A terminal's escape: ESC [ ... a letter.
|
|
100
|
+
if (code === 0x1b) {
|
|
101
|
+
let end = index + 1;
|
|
102
|
+
if (text[end] === "[") {
|
|
103
|
+
end++;
|
|
104
|
+
while (end < text.length && end - index < 32) {
|
|
105
|
+
const inner = text.charCodeAt(end);
|
|
106
|
+
end++;
|
|
107
|
+
if ((inner >= 0x40 && inner <= 0x7e) || inner < 0x20) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
index = end;
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if (code === 0x0d) {
|
|
116
|
+
readable += "\n";
|
|
117
|
+
index += text[index + 1] === "\n" ? 2 : 1;
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
if ((code < 0x20 && code !== 0x0a && code !== 0x09) || code === 0x7f) {
|
|
121
|
+
index++;
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
readable += text[index];
|
|
125
|
+
index++;
|
|
126
|
+
}
|
|
127
|
+
return readable;
|
|
128
|
+
}
|
|
129
|
+
function withoutOverlaps(kept, candidates) {
|
|
130
|
+
return candidates.filter((candidate) => {
|
|
131
|
+
return !kept.some((match) => {
|
|
132
|
+
return candidate.start < match.end && match.start < candidate.end;
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/*
|
|
137
|
+
* The excerpt of `value`, the value a record holds at `location`, around
|
|
138
|
+
* the first place it holds `dataTypeId`.
|
|
139
|
+
*/
|
|
140
|
+
function buildOccurrenceExcerpt(data) {
|
|
141
|
+
const value = data.value;
|
|
142
|
+
const options = data.options || {};
|
|
143
|
+
const customDetectors = options.customDetectors || [];
|
|
144
|
+
const hinted = (0, FieldNameHints_1.getHintedDataTypeIds)(data.location, options.extraHints);
|
|
145
|
+
const builtIn = (0, Index_1.getBuiltInDetectorsOf)(data.dataTypeId);
|
|
146
|
+
const ownDetectors = builtIn.length > 0
|
|
147
|
+
? builtIn
|
|
148
|
+
: customDetectors.filter((detector) => {
|
|
149
|
+
return detector.dataTypeId === data.dataTypeId;
|
|
150
|
+
});
|
|
151
|
+
const named = (parts) => {
|
|
152
|
+
const excerpt = {
|
|
153
|
+
parts,
|
|
154
|
+
isCutAtStart: false,
|
|
155
|
+
isCutAtEnd: false,
|
|
156
|
+
};
|
|
157
|
+
if (data.field) {
|
|
158
|
+
excerpt.field = data.field;
|
|
159
|
+
}
|
|
160
|
+
if (data.event) {
|
|
161
|
+
excerpt.event = data.event;
|
|
162
|
+
}
|
|
163
|
+
return excerpt;
|
|
164
|
+
};
|
|
165
|
+
// The finding's own data, found as the scan found it.
|
|
166
|
+
const own = ownDetectors.length > 0
|
|
167
|
+
? (0, TextScanner_1.findSensitiveValues)(value, {
|
|
168
|
+
detectors: ownDetectors,
|
|
169
|
+
hintedDataTypeIds: hinted,
|
|
170
|
+
disabledDataTypeIds: options.disabledDataTypeIds,
|
|
171
|
+
allowedValues: options.allowedValues,
|
|
172
|
+
})
|
|
173
|
+
.filter((match) => {
|
|
174
|
+
return match.dataTypeId === data.dataTypeId && !match.isTestValue;
|
|
175
|
+
})
|
|
176
|
+
.map((match) => {
|
|
177
|
+
return {
|
|
178
|
+
start: match.start,
|
|
179
|
+
end: match.end,
|
|
180
|
+
dataTypeId: match.dataTypeId,
|
|
181
|
+
kind: DataSecurityApiTypes_1.DataSecurityOccurrenceExcerptPartKind.Match,
|
|
182
|
+
};
|
|
183
|
+
})
|
|
184
|
+
: [];
|
|
185
|
+
if (own.length === 0) {
|
|
186
|
+
// Found by its shape or its field's name: the whole value is the data.
|
|
187
|
+
return named([
|
|
188
|
+
{
|
|
189
|
+
kind: DataSecurityApiTypes_1.DataSecurityOccurrenceExcerptPartKind.Match,
|
|
190
|
+
text: (0, Masking_1.maskValue)(data.dataTypeId, value.trim()),
|
|
191
|
+
},
|
|
192
|
+
]);
|
|
193
|
+
}
|
|
194
|
+
// Every other sensitive value, of any type, whatever the project turned off.
|
|
195
|
+
const others = withoutOverlaps(own, (0, TextScanner_1.findSensitiveValues)(value, {
|
|
196
|
+
detectors: customDetectors.length > 0
|
|
197
|
+
? [...Index_1.default, ...customDetectors]
|
|
198
|
+
: Index_1.default,
|
|
199
|
+
hintedDataTypeIds: hinted,
|
|
200
|
+
}).map((match) => {
|
|
201
|
+
return {
|
|
202
|
+
start: match.start,
|
|
203
|
+
end: match.end,
|
|
204
|
+
dataTypeId: match.dataTypeId,
|
|
205
|
+
kind: DataSecurityApiTypes_1.DataSecurityOccurrenceExcerptPartKind.Masked,
|
|
206
|
+
};
|
|
207
|
+
}));
|
|
208
|
+
const matches = [...own, ...others].sort((a, b) => {
|
|
209
|
+
return a.start - b.start;
|
|
210
|
+
});
|
|
211
|
+
const anchor = own[0];
|
|
212
|
+
let start = Math.max(0, anchor.start - exports.EXCERPT_CONTEXT_BEFORE);
|
|
213
|
+
let end = Math.min(value.length, anchor.end + exports.EXCERPT_CONTEXT_AFTER);
|
|
214
|
+
if (start > 0) {
|
|
215
|
+
start = toWordEdge(value, start, 1, anchor.start);
|
|
216
|
+
}
|
|
217
|
+
if (end < value.length) {
|
|
218
|
+
end = toWordEdge(value, end, -1, anchor.end);
|
|
219
|
+
}
|
|
220
|
+
// A sensitive value the edges would cut is taken whole.
|
|
221
|
+
for (const match of matches) {
|
|
222
|
+
if (match.start < start && match.end > start) {
|
|
223
|
+
start = match.start;
|
|
224
|
+
}
|
|
225
|
+
if (match.start < end && match.end > end) {
|
|
226
|
+
end = match.end;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
// Never half of a character beyond U+FFFF.
|
|
230
|
+
if (start > 0 && isLowSurrogate(value.charCodeAt(start))) {
|
|
231
|
+
start--;
|
|
232
|
+
}
|
|
233
|
+
if (end < value.length && isLowSurrogate(value.charCodeAt(end))) {
|
|
234
|
+
end++;
|
|
235
|
+
}
|
|
236
|
+
const parts = [];
|
|
237
|
+
let position = start;
|
|
238
|
+
const addText = (text) => {
|
|
239
|
+
const readable = toReadableText(text);
|
|
240
|
+
if (!readable) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const last = parts[parts.length - 1];
|
|
244
|
+
if ((last === null || last === void 0 ? void 0 : last.kind) === DataSecurityApiTypes_1.DataSecurityOccurrenceExcerptPartKind.Text) {
|
|
245
|
+
last.text += readable;
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
parts.push({
|
|
249
|
+
kind: DataSecurityApiTypes_1.DataSecurityOccurrenceExcerptPartKind.Text,
|
|
250
|
+
text: readable,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
for (const match of matches) {
|
|
255
|
+
if (match.end <= start || match.start >= end) {
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
addText(value.slice(position, match.start));
|
|
259
|
+
parts.push({
|
|
260
|
+
kind: match.kind,
|
|
261
|
+
text: (0, Masking_1.maskValue)(match.dataTypeId, value.slice(match.start, match.end)),
|
|
262
|
+
});
|
|
263
|
+
position = match.end;
|
|
264
|
+
}
|
|
265
|
+
addText(value.slice(position, end));
|
|
266
|
+
const excerpt = named(parts);
|
|
267
|
+
excerpt.isCutAtStart = start > 0;
|
|
268
|
+
excerpt.isCutAtEnd = end < value.length;
|
|
269
|
+
return excerpt;
|
|
270
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import commonJsModule from "./OccurrenceExcerpt.js";
|
|
2
|
+
export const EXCERPT_CONTEXT_AFTER = commonJsModule.EXCERPT_CONTEXT_AFTER;
|
|
3
|
+
export const EXCERPT_CONTEXT_BEFORE = commonJsModule.EXCERPT_CONTEXT_BEFORE;
|
|
4
|
+
export const buildOccurrenceExcerpt = commonJsModule.buildOccurrenceExcerpt;
|
|
5
|
+
export const toReadableText = commonJsModule.toReadableText;
|
|
@@ -10,6 +10,10 @@ export interface CandidateFinder {
|
|
|
10
10
|
end: number;
|
|
11
11
|
value: string;
|
|
12
12
|
}>;
|
|
13
|
+
patternSource?: {
|
|
14
|
+
source: string;
|
|
15
|
+
flags: string;
|
|
16
|
+
} | undefined;
|
|
13
17
|
}
|
|
14
18
|
export type ScanDetector = DataTypeDetector | (Omit<DataTypeDetector, "pattern"> & CandidateFinder);
|
|
15
19
|
export interface TextScanOptions {
|
|
@@ -10,6 +10,10 @@ export interface CandidateFinder {
|
|
|
10
10
|
end: number;
|
|
11
11
|
value: string;
|
|
12
12
|
}>;
|
|
13
|
+
patternSource?: {
|
|
14
|
+
source: string;
|
|
15
|
+
flags: string;
|
|
16
|
+
} | undefined;
|
|
13
17
|
}
|
|
14
18
|
export type ScanDetector = DataTypeDetector | (Omit<DataTypeDetector, "pattern"> & CandidateFinder);
|
|
15
19
|
export interface TextScanOptions {
|
|
@@ -13,8 +13,10 @@ export interface ActionItemCodeTaskRequestInput {
|
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
incidentNumber?: string | null | undefined;
|
|
15
15
|
incidentTitle?: string | null | undefined;
|
|
16
|
+
incidentIsPrivate?: boolean | undefined;
|
|
16
17
|
instructions?: string | null | undefined;
|
|
17
18
|
}
|
|
19
|
+
export declare const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION: string;
|
|
18
20
|
export declare function parseActionItemCodeTaskKind(value: unknown): ActionItemCodeTaskKind | null;
|
|
19
21
|
export declare function buildActionItemCodeTaskRequest(input: ActionItemCodeTaskRequestInput): string;
|
|
20
22
|
export declare function getPostmortemContextNote(postmortemNote: string | null | undefined): string | null;
|
|
@@ -13,8 +13,10 @@ export interface ActionItemCodeTaskRequestInput {
|
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
incidentNumber?: string | null | undefined;
|
|
15
15
|
incidentTitle?: string | null | undefined;
|
|
16
|
+
incidentIsPrivate?: boolean | undefined;
|
|
16
17
|
instructions?: string | null | undefined;
|
|
17
18
|
}
|
|
19
|
+
export declare const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION: string;
|
|
18
20
|
export declare function parseActionItemCodeTaskKind(value: unknown): ActionItemCodeTaskKind | null;
|
|
19
21
|
export declare function buildActionItemCodeTaskRequest(input: ActionItemCodeTaskRequestInput): string;
|
|
20
22
|
export declare function getPostmortemContextNote(postmortemNote: string | null | undefined): string | null;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* Pure: the server builds the request with it, and the tests pin it.
|
|
24
24
|
*/
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MAX_POSTMORTEM_IN_CONTEXT = exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = exports.MAX_ACTION_ITEM_REQUEST_LENGTH = exports.ALL_ACTION_ITEM_CODE_TASK_KINDS = exports.ActionItemCodeTaskKind = void 0;
|
|
26
|
+
exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = exports.MAX_POSTMORTEM_IN_CONTEXT = exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = exports.MAX_ACTION_ITEM_REQUEST_LENGTH = exports.ALL_ACTION_ITEM_CODE_TASK_KINDS = exports.ActionItemCodeTaskKind = void 0;
|
|
27
27
|
exports.parseActionItemCodeTaskKind = parseActionItemCodeTaskKind;
|
|
28
28
|
exports.buildActionItemCodeTaskRequest = buildActionItemCodeTaskRequest;
|
|
29
29
|
exports.getPostmortemContextNote = getPostmortemContextNote;
|
|
@@ -41,6 +41,11 @@ exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = 3000;
|
|
|
41
41
|
exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = 3000;
|
|
42
42
|
// The most of the postmortem's note the request's context carries (CODE_TASK_LIMITS.maxNoteLength).
|
|
43
43
|
exports.MAX_POSTMORTEM_IN_CONTEXT = 4000;
|
|
44
|
+
/*
|
|
45
|
+
* What the request asks of the pull request for a private incident: the
|
|
46
|
+
* repository's readers are not the incident's.
|
|
47
|
+
*/
|
|
48
|
+
exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = "The incident is private, and everyone with access to this repository reads the pull request: leave the incident and its postmortem out of the pull request, its commit messages and the code's comments, and name the incident only by its number.";
|
|
44
49
|
// Reads a kind off the wire: anything else is null.
|
|
45
50
|
function parseActionItemCodeTaskKind(value) {
|
|
46
51
|
if (typeof value === "string" &&
|
|
@@ -55,10 +60,15 @@ function cut(text, maxLength) {
|
|
|
55
60
|
? `${trimmed.slice(0, maxLength - 1).trimEnd()}…`
|
|
56
61
|
: trimmed;
|
|
57
62
|
}
|
|
58
|
-
|
|
63
|
+
/*
|
|
64
|
+
* "incident #42: Checkout returns 503s", or as much of it as is known - a
|
|
65
|
+
* private incident by its number alone.
|
|
66
|
+
*/
|
|
59
67
|
function describeIncident(input) {
|
|
60
68
|
const number = (input.incidentNumber || "").trim();
|
|
61
|
-
const title =
|
|
69
|
+
const title = input.incidentIsPrivate
|
|
70
|
+
? ""
|
|
71
|
+
: (input.incidentTitle || "").trim();
|
|
62
72
|
if (number && title) {
|
|
63
73
|
return `incident ${number}: ${title}`;
|
|
64
74
|
}
|
|
@@ -83,10 +93,17 @@ function buildActionItemCodeTaskRequest(input) {
|
|
|
83
93
|
}
|
|
84
94
|
lines.push("");
|
|
85
95
|
if (input.kind === ActionItemCodeTaskKind.Test) {
|
|
86
|
-
lines.push("Write an automated test that would have caught this incident before it reached production: it should fail on the code as it was when the incident happened, and pass once the problem is fixed. If the code is already fixed, the test should pass now and guard against the problem coming back.", "Use the repository's own test framework and conventions, put the test where the repository keeps its tests, and change no code besides the test unless the test cannot run without it.",
|
|
96
|
+
lines.push("Write an automated test that would have caught this incident before it reached production: it should fail on the code as it was when the incident happened, and pass once the problem is fixed. If the code is already fixed, the test should pass now and guard against the problem coming back.", "Use the repository's own test framework and conventions, put the test where the repository keeps its tests, and change no code besides the test unless the test cannot run without it.", input.incidentIsPrivate
|
|
97
|
+
? "Open a pull request with the test."
|
|
98
|
+
: "Open a pull request with the test, and say in it which incident it guards against.");
|
|
87
99
|
}
|
|
88
100
|
else {
|
|
89
|
-
lines.push("Make the change this action item asks for in this repository, and open a pull request with it for review.",
|
|
101
|
+
lines.push("Make the change this action item asks for in this repository, and open a pull request with it for review.", input.incidentIsPrivate
|
|
102
|
+
? "Keep the change to what the action item needs, and add or update tests that cover it."
|
|
103
|
+
: "Keep the change to what the action item needs, add or update tests that cover it, and say in the pull request which incident it is for.");
|
|
104
|
+
}
|
|
105
|
+
if (input.incidentIsPrivate) {
|
|
106
|
+
lines.push(exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION);
|
|
90
107
|
}
|
|
91
108
|
const instructions = cut(input.instructions || "", exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH);
|
|
92
109
|
if (instructions) {
|
|
@@ -5,6 +5,7 @@ export const MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = commonJsModule.MAX_ACTION_
|
|
|
5
5
|
export const MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = commonJsModule.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH;
|
|
6
6
|
export const MAX_ACTION_ITEM_REQUEST_LENGTH = commonJsModule.MAX_ACTION_ITEM_REQUEST_LENGTH;
|
|
7
7
|
export const MAX_POSTMORTEM_IN_CONTEXT = commonJsModule.MAX_POSTMORTEM_IN_CONTEXT;
|
|
8
|
+
export const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = commonJsModule.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION;
|
|
8
9
|
export const buildActionItemCodeTaskRequest = commonJsModule.buildActionItemCodeTaskRequest;
|
|
9
10
|
export const getPostmortemContextNote = commonJsModule.getPostmortemContextNote;
|
|
10
11
|
export const parseActionItemCodeTaskKind = commonJsModule.parseActionItemCodeTaskKind;
|
package/Utils/LookupTable.d.mts
CHANGED
|
@@ -2,5 +2,6 @@ export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): Re
|
|
|
2
2
|
export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
|
|
3
3
|
export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
|
|
4
4
|
export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
|
|
5
|
+
export declare function mergeOwnValues<T>(first?: Readonly<Record<string, T>> | null, second?: Readonly<Record<string, T>> | null, third?: Readonly<Record<string, T>> | null): Record<string, T>;
|
|
5
6
|
export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
|
|
6
7
|
export default lookupTable;
|
package/Utils/LookupTable.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): Re
|
|
|
2
2
|
export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
|
|
3
3
|
export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
|
|
4
4
|
export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
|
|
5
|
+
export declare function mergeOwnValues<T>(first?: Readonly<Record<string, T>> | null, second?: Readonly<Record<string, T>> | null, third?: Readonly<Record<string, T>> | null): Record<string, T>;
|
|
5
6
|
export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
|
|
6
7
|
export default lookupTable;
|
package/Utils/LookupTable.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.lookupTable = lookupTable;
|
|
|
4
4
|
exports.readOwnValue = readOwnValue;
|
|
5
5
|
exports.writeOwnValue = writeOwnValue;
|
|
6
6
|
exports.assignOwnValues = assignOwnValues;
|
|
7
|
+
exports.mergeOwnValues = mergeOwnValues;
|
|
7
8
|
exports.copyOwnValues = copyOwnValues;
|
|
8
9
|
/*
|
|
9
10
|
* A TABLE READ BY TEXT FROM OUTSIDE ONEUPTIME.
|
|
@@ -97,6 +98,24 @@ function assignOwnValues(target, ...sources) {
|
|
|
97
98
|
}
|
|
98
99
|
return target;
|
|
99
100
|
}
|
|
101
|
+
/*
|
|
102
|
+
* Up to three records merged into a new plain object: exactly what
|
|
103
|
+
* assignOwnValues({}, first, second, third) gives - every own key of each,
|
|
104
|
+
* "__proto__" included, a later record's value winning, keys in the same
|
|
105
|
+
* order - for the attribute map of every log, span and metric point ingest
|
|
106
|
+
* stores (its resource's, its own, its scope's).
|
|
107
|
+
*
|
|
108
|
+
* By object spread, which the servers' ES2018 target leaves to the
|
|
109
|
+
* language: CopyDataProperties defines each key, so "__proto__" stays a key
|
|
110
|
+
* (Tests/Dependencies/TypeScriptTargets pins the targets, and
|
|
111
|
+
* Tests/Utils/LookupTableOwnKeys this function). It is also how V8 copies
|
|
112
|
+
* a map fastest: Object.assign stores key by key, and on ingest's many map
|
|
113
|
+
* shapes each store missed V8's inline caches - 3.7 µs to merge one
|
|
114
|
+
* record's 13 keys, against 0.17 µs by spread (#6086).
|
|
115
|
+
*/
|
|
116
|
+
function mergeOwnValues(first, second, third) {
|
|
117
|
+
return { ...first, ...second, ...third };
|
|
118
|
+
}
|
|
100
119
|
/*
|
|
101
120
|
* A new plain object with every own key of `record`, "__proto__" included:
|
|
102
121
|
* what `{ ...record }` gives on an ES2018 or later target, at any target.
|
package/Utils/LookupTable.mjs
CHANGED
|
@@ -3,5 +3,6 @@ export default commonJsModule.default;
|
|
|
3
3
|
export const assignOwnValues = commonJsModule.assignOwnValues;
|
|
4
4
|
export const copyOwnValues = commonJsModule.copyOwnValues;
|
|
5
5
|
export const lookupTable = commonJsModule.lookupTable;
|
|
6
|
+
export const mergeOwnValues = commonJsModule.mergeOwnValues;
|
|
6
7
|
export const readOwnValue = commonJsModule.readOwnValue;
|
|
7
8
|
export const writeOwnValue = commonJsModule.writeOwnValue;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Monitor from "../../Models/DatabaseModels/Monitor.mjs";
|
|
2
|
+
import { JSONObject } from "../../Types/JSON.mjs";
|
|
3
|
+
import MonitorSteps from "../../Types/Monitor/MonitorSteps.mjs";
|
|
4
|
+
import MonitorType from "../../Types/Monitor/MonitorType.mjs";
|
|
5
|
+
export interface DeviceMonitorFacts {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
monitorType: string;
|
|
9
|
+
monitorTemplateId?: string | undefined;
|
|
10
|
+
checkKeys: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
export interface DeviceMonitorCandidate {
|
|
13
|
+
monitorType: string;
|
|
14
|
+
monitorTemplateId?: string | undefined;
|
|
15
|
+
checkKeys: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
export declare const NTP_DEFAULT_PORT: number;
|
|
18
|
+
export declare const DEVICE_ADDRESS_CHECK_KEY: string;
|
|
19
|
+
export declare function getDeviceMonitorCheckKeys(data: {
|
|
20
|
+
monitorType: MonitorType | string | null | undefined;
|
|
21
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
22
|
+
}): Array<string>;
|
|
23
|
+
export declare function toDeviceMonitorFacts(monitor: Monitor): DeviceMonitorFacts;
|
|
24
|
+
export declare function toDeviceMonitorCandidate(data: {
|
|
25
|
+
monitorType: MonitorType | string | null | undefined;
|
|
26
|
+
monitorTemplateId: {
|
|
27
|
+
toString(): string;
|
|
28
|
+
} | string | null | undefined;
|
|
29
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
30
|
+
}): DeviceMonitorCandidate;
|
|
31
|
+
export declare function findDuplicateDeviceMonitor(data: {
|
|
32
|
+
candidate: DeviceMonitorCandidate;
|
|
33
|
+
monitors: ReadonlyArray<DeviceMonitorFacts>;
|
|
34
|
+
}): DeviceMonitorFacts | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Monitor from "../../Models/DatabaseModels/Monitor";
|
|
2
|
+
import { JSONObject } from "../../Types/JSON";
|
|
3
|
+
import MonitorSteps from "../../Types/Monitor/MonitorSteps";
|
|
4
|
+
import MonitorType from "../../Types/Monitor/MonitorType";
|
|
5
|
+
export interface DeviceMonitorFacts {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
monitorType: string;
|
|
9
|
+
monitorTemplateId?: string | undefined;
|
|
10
|
+
checkKeys: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
export interface DeviceMonitorCandidate {
|
|
13
|
+
monitorType: string;
|
|
14
|
+
monitorTemplateId?: string | undefined;
|
|
15
|
+
checkKeys: Array<string>;
|
|
16
|
+
}
|
|
17
|
+
export declare const NTP_DEFAULT_PORT: number;
|
|
18
|
+
export declare const DEVICE_ADDRESS_CHECK_KEY: string;
|
|
19
|
+
export declare function getDeviceMonitorCheckKeys(data: {
|
|
20
|
+
monitorType: MonitorType | string | null | undefined;
|
|
21
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
22
|
+
}): Array<string>;
|
|
23
|
+
export declare function toDeviceMonitorFacts(monitor: Monitor): DeviceMonitorFacts;
|
|
24
|
+
export declare function toDeviceMonitorCandidate(data: {
|
|
25
|
+
monitorType: MonitorType | string | null | undefined;
|
|
26
|
+
monitorTemplateId: {
|
|
27
|
+
toString(): string;
|
|
28
|
+
} | string | null | undefined;
|
|
29
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
30
|
+
}): DeviceMonitorCandidate;
|
|
31
|
+
export declare function findDuplicateDeviceMonitor(data: {
|
|
32
|
+
candidate: DeviceMonitorCandidate;
|
|
33
|
+
monitors: ReadonlyArray<DeviceMonitorFacts>;
|
|
34
|
+
}): DeviceMonitorFacts | null;
|
|
@@ -0,0 +1,134 @@
|
|
|
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
|
+
exports.DEVICE_ADDRESS_CHECK_KEY = exports.NTP_DEFAULT_PORT = void 0;
|
|
7
|
+
exports.getDeviceMonitorCheckKeys = getDeviceMonitorCheckKeys;
|
|
8
|
+
exports.toDeviceMonitorFacts = toDeviceMonitorFacts;
|
|
9
|
+
exports.toDeviceMonitorCandidate = toDeviceMonitorCandidate;
|
|
10
|
+
exports.findDuplicateDeviceMonitor = findDuplicateDeviceMonitor;
|
|
11
|
+
const MonitorSteps_1 = __importDefault(require("../../Types/Monitor/MonitorSteps"));
|
|
12
|
+
const MonitorType_1 = __importDefault(require("../../Types/Monitor/MonitorType"));
|
|
13
|
+
const DeviceMonitorTemplateUtil_1 = require("./DeviceMonitorTemplateUtil");
|
|
14
|
+
// The port an NTP step asks on when it names none.
|
|
15
|
+
exports.NTP_DEFAULT_PORT = 123;
|
|
16
|
+
/*
|
|
17
|
+
* The one thing a Ping or IP monitor of a device checks: the device itself.
|
|
18
|
+
* Its address is the device's, so two of them check the same thing.
|
|
19
|
+
*/
|
|
20
|
+
exports.DEVICE_ADDRESS_CHECK_KEY = "address";
|
|
21
|
+
function readSteps(monitorSteps) {
|
|
22
|
+
var _a;
|
|
23
|
+
if (!monitorSteps) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
const steps = monitorSteps instanceof MonitorSteps_1.default
|
|
28
|
+
? monitorSteps
|
|
29
|
+
: MonitorSteps_1.default.fromJSON(monitorSteps);
|
|
30
|
+
return ((_a = steps.data) === null || _a === void 0 ? void 0 : _a.monitorStepsInstanceArray) || [];
|
|
31
|
+
}
|
|
32
|
+
catch (_b) {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function readStepPort(step) {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
const port = Number((_c = (_b = (_a = step.data) === null || _a === void 0 ? void 0 : _a.monitorDestinationPort) === null || _b === void 0 ? void 0 : _b.toNumber) === null || _c === void 0 ? void 0 : _c.call(_b));
|
|
39
|
+
return Number.isInteger(port) && port > 0 ? port : null;
|
|
40
|
+
}
|
|
41
|
+
/*
|
|
42
|
+
* What a monitor of this kind, with these steps, checks on a device, as keys
|
|
43
|
+
* two monitors share when they check the same thing:
|
|
44
|
+
*
|
|
45
|
+
* - Ping, IP: one key. A device has one address, so any two check it.
|
|
46
|
+
* - Port: each port its steps ask on.
|
|
47
|
+
* - NTP: each port its steps ask on, 123 for a step that names none.
|
|
48
|
+
* - Any other kind: none. Only its template decides (findDuplicate...).
|
|
49
|
+
*/
|
|
50
|
+
function getDeviceMonitorCheckKeys(data) {
|
|
51
|
+
var _a;
|
|
52
|
+
const monitorType = String(data.monitorType || "");
|
|
53
|
+
if (monitorType === MonitorType_1.default.Ping || monitorType === MonitorType_1.default.IP) {
|
|
54
|
+
return [exports.DEVICE_ADDRESS_CHECK_KEY];
|
|
55
|
+
}
|
|
56
|
+
if (monitorType !== MonitorType_1.default.Port && monitorType !== MonitorType_1.default.NTP) {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
const keys = [];
|
|
60
|
+
for (const step of readSteps(data.monitorSteps)) {
|
|
61
|
+
const port = (_a = readStepPort(step)) !== null && _a !== void 0 ? _a : (monitorType === MonitorType_1.default.NTP ? exports.NTP_DEFAULT_PORT : null);
|
|
62
|
+
if (port !== null && !keys.includes(String(port))) {
|
|
63
|
+
keys.push(String(port));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return keys;
|
|
67
|
+
}
|
|
68
|
+
/*
|
|
69
|
+
* A monitor as the rule reads it. Its template id and type are whatever was
|
|
70
|
+
* selected; a monitor read without its steps has no check keys, so it can
|
|
71
|
+
* still be a duplicate by its template, never by what it checks.
|
|
72
|
+
*/
|
|
73
|
+
function toDeviceMonitorFacts(monitor) {
|
|
74
|
+
var _a, _b, _c;
|
|
75
|
+
return {
|
|
76
|
+
id: ((_a = monitor.id) === null || _a === void 0 ? void 0 : _a.toString()) || ((_b = monitor._id) === null || _b === void 0 ? void 0 : _b.toString()) || "",
|
|
77
|
+
name: monitor.name || "",
|
|
78
|
+
monitorType: String(monitor.monitorType || ""),
|
|
79
|
+
monitorTemplateId: ((_c = monitor.monitorTemplateId) === null || _c === void 0 ? void 0 : _c.toString()) || undefined,
|
|
80
|
+
checkKeys: getDeviceMonitorCheckKeys({
|
|
81
|
+
monitorType: monitor.monitorType,
|
|
82
|
+
monitorSteps: monitor.monitorSteps,
|
|
83
|
+
}),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/*
|
|
87
|
+
* The monitor a template's monitor for this device would make, in the
|
|
88
|
+
* rule's terms: its type and template, and what its steps check.
|
|
89
|
+
*/
|
|
90
|
+
function toDeviceMonitorCandidate(data) {
|
|
91
|
+
return {
|
|
92
|
+
monitorType: String(data.monitorType || ""),
|
|
93
|
+
monitorTemplateId: data.monitorTemplateId
|
|
94
|
+
? data.monitorTemplateId.toString()
|
|
95
|
+
: undefined,
|
|
96
|
+
checkKeys: getDeviceMonitorCheckKeys({
|
|
97
|
+
monitorType: data.monitorType,
|
|
98
|
+
monitorSteps: data.monitorSteps,
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function isSameTemplate(candidate, monitor) {
|
|
103
|
+
return Boolean(candidate.monitorTemplateId &&
|
|
104
|
+
monitor.monitorTemplateId &&
|
|
105
|
+
candidate.monitorTemplateId.toLowerCase() ===
|
|
106
|
+
monitor.monitorTemplateId.toLowerCase());
|
|
107
|
+
}
|
|
108
|
+
function checksTheSameThing(candidate, monitor) {
|
|
109
|
+
if (!(0, DeviceMonitorTemplateUtil_1.isDeviceAddressMonitorType)(candidate.monitorType) ||
|
|
110
|
+
monitor.monitorType !== candidate.monitorType) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
return candidate.checkKeys.some((key) => {
|
|
114
|
+
return monitor.checkKeys.includes(key);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/*
|
|
118
|
+
* The monitor of the device's that the candidate would duplicate, or null
|
|
119
|
+
* when it would duplicate none (see the rules at the top). One made from the
|
|
120
|
+
* same template is preferred to one that only checks the same thing; among
|
|
121
|
+
* equals, the first in the order handed in - the server hands them oldest
|
|
122
|
+
* first.
|
|
123
|
+
*/
|
|
124
|
+
function findDuplicateDeviceMonitor(data) {
|
|
125
|
+
const sameTemplate = data.monitors.find((monitor) => {
|
|
126
|
+
return isSameTemplate(data.candidate, monitor);
|
|
127
|
+
});
|
|
128
|
+
if (sameTemplate) {
|
|
129
|
+
return sameTemplate;
|
|
130
|
+
}
|
|
131
|
+
return (data.monitors.find((monitor) => {
|
|
132
|
+
return checksTheSameThing(data.candidate, monitor);
|
|
133
|
+
}) || null);
|
|
134
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import commonJsModule from "./DeviceMonitorDuplicates.js";
|
|
2
|
+
export const DEVICE_ADDRESS_CHECK_KEY = commonJsModule.DEVICE_ADDRESS_CHECK_KEY;
|
|
3
|
+
export const NTP_DEFAULT_PORT = commonJsModule.NTP_DEFAULT_PORT;
|
|
4
|
+
export const findDuplicateDeviceMonitor = commonJsModule.findDuplicateDeviceMonitor;
|
|
5
|
+
export const getDeviceMonitorCheckKeys = commonJsModule.getDeviceMonitorCheckKeys;
|
|
6
|
+
export const toDeviceMonitorCandidate = commonJsModule.toDeviceMonitorCandidate;
|
|
7
|
+
export const toDeviceMonitorFacts = commonJsModule.toDeviceMonitorFacts;
|