@oneuptime/common 14.0.101 → 14.0.103
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/ChangeEvent.js +1 -1
- package/Models/AnalyticsModels/ExceptionInstance.js +1 -1
- package/Models/AnalyticsModels/KubernetesCostAllocation.js +1 -1
- package/Models/AnalyticsModels/Log.js +1 -1
- package/Models/AnalyticsModels/Metric.js +1 -1
- package/Models/AnalyticsModels/MonitorLog.js +1 -1
- package/Models/AnalyticsModels/Profile.js +1 -1
- package/Models/AnalyticsModels/ProfileSample.js +1 -1
- package/Models/AnalyticsModels/SecurityEvent.js +1 -1
- package/Models/AnalyticsModels/Span.js +1 -1
- package/Models/DatabaseModels/AIAgent.js +14 -3
- package/Models/DatabaseModels/AIAgentOwnerTeam.js +2 -2
- package/Models/DatabaseModels/AIAgentOwnerUser.js +2 -2
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +5 -0
- package/Models/DatabaseModels/AIConversationMessage.js +3 -0
- package/Models/DatabaseModels/AIInsight.js +4 -0
- package/Models/DatabaseModels/AIRun.js +6 -0
- package/Models/DatabaseModels/AIRunEvent.js +1 -0
- package/Models/DatabaseModels/AcmeCertificate.js +4 -1
- package/Models/DatabaseModels/Alert.js +1 -1
- package/Models/DatabaseModels/AlertCustomField.js +2 -1
- package/Models/DatabaseModels/AlertEpisode.js +1 -1
- package/Models/DatabaseModels/AlertEpisodeFeed.js +1 -0
- package/Models/DatabaseModels/AlertEpisodeMember.js +1 -0
- package/Models/DatabaseModels/AlertEpisodeOwnerTeam.js +2 -2
- package/Models/DatabaseModels/AlertEpisodeOwnerUser.js +2 -2
- package/Models/DatabaseModels/AlertFeed.js +1 -0
- package/Models/DatabaseModels/AlertMeasurement.js +7 -0
- package/Models/DatabaseModels/AlertMeasurementValue.js +1 -0
- package/Models/DatabaseModels/AlertOwnerTeam.js +2 -2
- package/Models/DatabaseModels/AlertOwnerUser.js +2 -2
- package/Models/DatabaseModels/AlertReminderRule.js +1 -0
- package/Models/DatabaseModels/AlertVideoCall.js +1 -0
- package/Models/DatabaseModels/ApiKey.js +1 -0
- package/Models/DatabaseModels/ApiKeyPermission.js +2 -1
- package/Models/DatabaseModels/AuditLogExport.js +1 -0
- package/Models/DatabaseModels/AutoRemediationDecision.js +1 -0
- package/Models/DatabaseModels/AutoRemediationRule.js +3 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +5 -0
- package/Models/DatabaseModels/BackupRun.js +4 -0
- package/Models/DatabaseModels/BackupSetting.js +3 -0
- package/Models/DatabaseModels/BillingInvoice.js +1 -0
- package/Models/DatabaseModels/CallLog.js +2 -1
- package/Models/DatabaseModels/CephCluster.js +2 -1
- package/Models/DatabaseModels/CephClusterFeed.js +1 -0
- package/Models/DatabaseModels/CephClusterOwnerTeam.js +2 -2
- package/Models/DatabaseModels/CephClusterOwnerUser.js +2 -2
- package/Models/DatabaseModels/CloudAccount.js +3 -1
- package/Models/DatabaseModels/CloudAccountFeed.js +1 -0
- package/Models/DatabaseModels/CloudConnection.js +1 -0
- package/Models/DatabaseModels/CloudResource.js +2 -1
- package/Models/DatabaseModels/CloudResourceFeed.js +1 -0
- package/Models/DatabaseModels/CloudResourceLabelRule.js +1 -0
- package/Models/DatabaseModels/CloudResourceOwnerRule.js +1 -0
- package/Models/DatabaseModels/CloudResourceOwnerTeam.js +2 -2
- package/Models/DatabaseModels/CloudResourceOwnerUser.js +2 -2
- package/Models/DatabaseModels/CodeRepository.js +4 -1
- package/Models/DatabaseModels/CodeRepositoryConnection.js +1 -0
- package/Models/DatabaseModels/CustomNotificationChannel.js +1 -0
- package/Models/DatabaseModels/CustomRolePermission.js +1 -0
- package/Models/DatabaseModels/Dashboard.js +2 -1
- package/Models/DatabaseModels/DashboardDomain.js +13 -3
- package/Models/DatabaseModels/DashboardOwnerTeam.js +2 -2
- package/Models/DatabaseModels/DashboardOwnerUser.js +2 -2
- package/Models/DatabaseModels/DataSecurityCheckSetting.js +1 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.js +2 -0
- package/Models/DatabaseModels/DataSecurityFlow.js +1 -0
- package/Models/DatabaseModels/DataSecurityIdentity.js +1 -0
- package/Models/DatabaseModels/DataSecurityIssue.js +2 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.js +1 -0
- package/Models/DatabaseModels/DataSource.js +1 -0
- package/Models/DatabaseModels/DataStore.js +7 -1
- package/Models/DatabaseModels/DataStoreFeed.js +1 -0
- package/Models/DatabaseModels/DataStoreFinding.js +3 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.js +2 -2
- package/Models/DatabaseModels/DataStoreOwnerUser.js +2 -2
- package/Models/DatabaseModels/DatabaseBaseModel/FileModel.js +5 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +1 -0
- package/Models/DatabaseModels/DatabaseServer.js +2 -1
- package/Models/DatabaseModels/DatabaseServerFeed.js +1 -0
- package/Models/DatabaseModels/DatabaseServerOwnerTeam.js +2 -2
- package/Models/DatabaseModels/DatabaseServerOwnerUser.js +2 -2
- package/Models/DatabaseModels/DeletedProject.js +2 -0
- package/Models/DatabaseModels/DetectionRuleException.js +2 -0
- package/Models/DatabaseModels/DockerHost.js +2 -1
- package/Models/DatabaseModels/DockerHostFeed.js +1 -0
- package/Models/DatabaseModels/DockerHostOwnerTeam.js +2 -2
- package/Models/DatabaseModels/DockerHostOwnerUser.js +2 -2
- package/Models/DatabaseModels/DockerSwarmCluster.js +2 -1
- package/Models/DatabaseModels/DockerSwarmClusterFeed.js +1 -0
- package/Models/DatabaseModels/DockerSwarmClusterOwnerTeam.js +3 -3
- package/Models/DatabaseModels/DockerSwarmClusterOwnerUser.js +3 -3
- package/Models/DatabaseModels/EmailLog.js +2 -1
- package/Models/DatabaseModels/EmailVerificationToken.js +1 -0
- package/Models/DatabaseModels/EnterpriseLicense.js +2 -0
- package/Models/DatabaseModels/ExternalMcpServer.js +2 -0
- package/Models/DatabaseModels/Form.js +1 -0
- package/Models/DatabaseModels/FormDomain.js +1 -0
- package/Models/DatabaseModels/FormSubmission.js +1 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +124 -0
- package/Models/DatabaseModels/GlobalSso.js +2 -0
- package/Models/DatabaseModels/Host.d.mts +12 -0
- package/Models/DatabaseModels/Host.d.ts +12 -0
- package/Models/DatabaseModels/Host.js +473 -1
- package/Models/DatabaseModels/HostCollectorConfig.js +1 -0
- package/Models/DatabaseModels/HostFeed.js +1 -0
- package/Models/DatabaseModels/HostOwnerTeam.js +2 -2
- package/Models/DatabaseModels/HostOwnerUser.js +2 -2
- package/Models/DatabaseModels/Incident.js +3 -1
- package/Models/DatabaseModels/IncidentCustomField.js +2 -1
- package/Models/DatabaseModels/IncidentEpisode.js +2 -1
- package/Models/DatabaseModels/IncidentEpisodeFeed.js +1 -0
- package/Models/DatabaseModels/IncidentEpisodeMember.js +1 -0
- package/Models/DatabaseModels/IncidentEpisodeOwnerTeam.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodeOwnerUser.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +2 -0
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +1 -0
- package/Models/DatabaseModels/IncidentFeed.js +1 -0
- package/Models/DatabaseModels/IncidentMeasurement.js +7 -0
- package/Models/DatabaseModels/IncidentMeasurementValue.js +1 -0
- package/Models/DatabaseModels/IncidentOwnerTeam.js +2 -2
- package/Models/DatabaseModels/IncidentOwnerUser.js +2 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +2 -0
- package/Models/DatabaseModels/IncidentReminderRule.js +1 -0
- package/Models/DatabaseModels/IncidentSla.js +1 -0
- package/Models/DatabaseModels/IncidentStateTimeline.js +2 -1
- package/Models/DatabaseModels/IncidentTemplate.js +1 -1
- package/Models/DatabaseModels/IncidentTemplateOwnerTeam.js +3 -3
- package/Models/DatabaseModels/IncidentTemplateOwnerUser.js +2 -2
- package/Models/DatabaseModels/IncidentVideoCall.js +6 -0
- package/Models/DatabaseModels/IncomingCallLog.js +1 -0
- package/Models/DatabaseModels/IncomingCallLogItem.js +1 -0
- package/Models/DatabaseModels/IncomingCallPolicy.js +1 -1
- package/Models/DatabaseModels/IncomingCallPolicyOwnerTeam.js +2 -2
- package/Models/DatabaseModels/IncomingCallPolicyOwnerUser.js +2 -2
- package/Models/DatabaseModels/Index.js +6 -0
- package/Models/DatabaseModels/InstanceHealthLog.js +2 -0
- package/Models/DatabaseModels/InstanceTokenSigningKey.js +1 -0
- package/Models/DatabaseModels/InventoryItem.js +3 -0
- package/Models/DatabaseModels/InventoryItemCustomField.js +2 -1
- package/Models/DatabaseModels/InventoryItemRelationship.js +2 -0
- package/Models/DatabaseModels/IoTDeviceCredential.js +1 -0
- package/Models/DatabaseModels/IoTFleet.js +1 -1
- package/Models/DatabaseModels/IoTFleetOwnerTeam.js +2 -2
- package/Models/DatabaseModels/IoTFleetOwnerUser.js +2 -2
- package/Models/DatabaseModels/KubernetesCluster.js +2 -1
- package/Models/DatabaseModels/KubernetesClusterFeed.js +1 -0
- package/Models/DatabaseModels/KubernetesClusterOwnerTeam.js +2 -2
- package/Models/DatabaseModels/KubernetesClusterOwnerUser.js +2 -2
- package/Models/DatabaseModels/LlmCostBudget.js +1 -0
- package/Models/DatabaseModels/LlmLog.js +2 -0
- package/Models/DatabaseModels/LlmObservabilityConnection.js +2 -0
- package/Models/DatabaseModels/LlmProvider.js +1 -0
- package/Models/DatabaseModels/LogDropFilter.js +2 -0
- package/Models/DatabaseModels/LogPipelineProcessor.js +2 -0
- package/Models/DatabaseModels/LogSavedView.d.mts +1 -0
- package/Models/DatabaseModels/LogSavedView.d.ts +1 -0
- package/Models/DatabaseModels/LogSavedView.js +44 -1
- package/Models/DatabaseModels/LogScrubRule.js +4 -0
- package/Models/DatabaseModels/MarketplaceCharge.js +2 -0
- package/Models/DatabaseModels/MarketplaceSubscription.js +2 -0
- package/Models/DatabaseModels/MarketplaceUsageReport.js +2 -0
- package/Models/DatabaseModels/McpOAuthClient.js +1 -0
- package/Models/DatabaseModels/McpOAuthGrant.js +1 -0
- package/Models/DatabaseModels/McpOAuthToken.js +1 -0
- package/Models/DatabaseModels/MessageQueue.js +10 -4
- package/Models/DatabaseModels/MessageQueueOwnerTeam.js +2 -2
- package/Models/DatabaseModels/MessageQueueOwnerUser.js +2 -2
- package/Models/DatabaseModels/MetricPipelineRule.js +2 -0
- package/Models/DatabaseModels/MetricSavedView.js +1 -0
- package/Models/DatabaseModels/MetricType.js +1 -0
- package/Models/DatabaseModels/Monitor.js +4 -1
- package/Models/DatabaseModels/MonitorCustomField.js +2 -1
- package/Models/DatabaseModels/MonitorFeed.js +1 -0
- package/Models/DatabaseModels/MonitorGroup.js +1 -1
- package/Models/DatabaseModels/MonitorGroupOwnerTeam.js +2 -2
- package/Models/DatabaseModels/MonitorGroupOwnerUser.js +3 -3
- package/Models/DatabaseModels/MonitorOwnerTeam.js +2 -2
- package/Models/DatabaseModels/MonitorOwnerUser.js +2 -2
- package/Models/DatabaseModels/MonitorProbe.js +3 -0
- package/Models/DatabaseModels/MonitorSecret.js +1 -0
- package/Models/DatabaseModels/NetworkControllerConnection.d.mts +1 -0
- package/Models/DatabaseModels/NetworkControllerConnection.d.ts +1 -0
- package/Models/DatabaseModels/NetworkControllerConnection.js +22 -0
- package/Models/DatabaseModels/NetworkDevice.js +5 -1
- package/Models/DatabaseModels/NetworkDeviceDiscoveryImport.js +1 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +4 -0
- package/Models/DatabaseModels/NetworkDeviceOwnerTeam.js +2 -2
- package/Models/DatabaseModels/NetworkDeviceOwnerUser.js +2 -2
- package/Models/DatabaseModels/NetworkSite.js +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyCustomField.js +2 -1
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -4
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +4 -1
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleOwnerTeam.js +2 -2
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleOwnerUser.js +2 -2
- package/Models/DatabaseModels/PacketCapture.js +1 -0
- package/Models/DatabaseModels/PodmanHost.js +2 -1
- package/Models/DatabaseModels/PodmanHostFeed.js +1 -0
- package/Models/DatabaseModels/PodmanHostOwnerTeam.js +2 -2
- package/Models/DatabaseModels/PodmanHostOwnerUser.js +2 -2
- package/Models/DatabaseModels/Probe.js +14 -3
- package/Models/DatabaseModels/ProbeOwnerTeam.js +2 -2
- package/Models/DatabaseModels/ProbeOwnerUser.js +2 -2
- package/Models/DatabaseModels/Project.d.mts +5 -0
- package/Models/DatabaseModels/Project.d.ts +5 -0
- package/Models/DatabaseModels/Project.js +193 -6
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +1 -0
- package/Models/DatabaseModels/ProjectSCIM.js +1 -0
- package/Models/DatabaseModels/ProjectSCIMLog.js +1 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.js +4 -0
- package/Models/DatabaseModels/ProjectSso.js +4 -2
- package/Models/DatabaseModels/PromoCode.js +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +2 -1
- package/Models/DatabaseModels/ProxmoxClusterFeed.js +1 -0
- package/Models/DatabaseModels/ProxmoxClusterOwnerTeam.js +2 -2
- package/Models/DatabaseModels/ProxmoxClusterOwnerUser.js +2 -2
- package/Models/DatabaseModels/PushNotificationLog.js +2 -1
- package/Models/DatabaseModels/Reseller.js +1 -0
- package/Models/DatabaseModels/ResellerPlan.js +1 -0
- package/Models/DatabaseModels/ResourceAiAgent.js +1 -0
- package/Models/DatabaseModels/RumApplication.js +4 -1
- package/Models/DatabaseModels/RumApplicationOwnerTeam.js +2 -2
- package/Models/DatabaseModels/RumApplicationOwnerUser.js +2 -2
- package/Models/DatabaseModels/RumSessionErasureRequest.js +2 -0
- package/Models/DatabaseModels/Runbook.js +4 -1
- package/Models/DatabaseModels/RunbookExecution.js +2 -0
- package/Models/DatabaseModels/RunbookOwnerTeam.js +2 -2
- package/Models/DatabaseModels/RunbookOwnerUser.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +1 -0
- package/Models/DatabaseModels/Runner.d.mts +1 -0
- package/Models/DatabaseModels/Runner.d.ts +1 -0
- package/Models/DatabaseModels/Runner.js +45 -3
- package/Models/DatabaseModels/RunnerJob.js +4 -0
- package/Models/DatabaseModels/RunnerOwnerTeam.js +2 -2
- package/Models/DatabaseModels/RunnerOwnerUser.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenance.js +2 -1
- package/Models/DatabaseModels/ScheduledMaintenanceCustomField.js +2 -1
- package/Models/DatabaseModels/ScheduledMaintenanceFeed.js +1 -0
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -0
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -0
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +3 -1
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +1 -0
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -3
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceTemplateOwnerTeam.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenanceTemplateOwnerUser.js +2 -2
- package/Models/DatabaseModels/SecurityCase.d.mts +2 -1
- package/Models/DatabaseModels/SecurityCase.d.ts +2 -1
- package/Models/DatabaseModels/SecurityCase.js +30 -0
- package/Models/DatabaseModels/SecurityCaseCustomField.d.mts +20 -0
- package/Models/DatabaseModels/SecurityCaseCustomField.d.ts +20 -0
- package/Models/DatabaseModels/SecurityCaseCustomField.js +387 -0
- package/Models/DatabaseModels/SecurityCaseCustomField.mjs +2 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.js +1 -0
- package/Models/DatabaseModels/SecurityCaseFeed.js +1 -0
- package/Models/DatabaseModels/SecurityCaseNoteTemplate.d.mts +15 -0
- package/Models/DatabaseModels/SecurityCaseNoteTemplate.d.ts +15 -0
- package/Models/DatabaseModels/SecurityCaseNoteTemplate.js +309 -0
- package/Models/DatabaseModels/SecurityCaseNoteTemplate.mjs +2 -0
- package/Models/DatabaseModels/SecurityDetection.js +2 -0
- package/Models/DatabaseModels/SecurityEntityCriticality.js +2 -0
- package/Models/DatabaseModels/SecurityEntityRisk.js +2 -0
- package/Models/DatabaseModels/SecurityEventConnection.js +1 -0
- package/Models/DatabaseModels/SecurityEventDestination.js +2 -0
- package/Models/DatabaseModels/SecurityHunt.js +2 -0
- package/Models/DatabaseModels/SecurityPlaybook.js +2 -0
- package/Models/DatabaseModels/SecurityPlaybookRun.js +2 -0
- package/Models/DatabaseModels/SecurityProtectedEntity.js +1 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.js +1 -0
- package/Models/DatabaseModels/SecurityWatchlist.js +2 -0
- package/Models/DatabaseModels/ServerlessFunction.js +1 -1
- package/Models/DatabaseModels/ServerlessFunctionOwnerTeam.js +2 -2
- package/Models/DatabaseModels/ServerlessFunctionOwnerUser.js +2 -2
- package/Models/DatabaseModels/Service.js +2 -1
- package/Models/DatabaseModels/ServiceFeed.js +1 -0
- package/Models/DatabaseModels/ServiceLevelObjective.js +5 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveFeed.js +1 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveOwnerTeam.js +2 -2
- package/Models/DatabaseModels/ServiceLevelObjectiveOwnerUser.js +2 -2
- package/Models/DatabaseModels/ServiceOwnerTeam.js +2 -2
- package/Models/DatabaseModels/ServiceOwnerUser.js +2 -2
- package/Models/DatabaseModels/SmsLog.js +2 -0
- package/Models/DatabaseModels/StatusPage.js +5 -1
- package/Models/DatabaseModels/StatusPageAnnouncement.js +3 -0
- package/Models/DatabaseModels/StatusPageCustomField.js +2 -1
- package/Models/DatabaseModels/StatusPageDomain.js +13 -3
- package/Models/DatabaseModels/StatusPageGroup.js +2 -0
- package/Models/DatabaseModels/StatusPageMonitorRule.js +1 -0
- package/Models/DatabaseModels/StatusPageOidc.js +3 -0
- package/Models/DatabaseModels/StatusPageOwnerTeam.js +2 -2
- package/Models/DatabaseModels/StatusPageOwnerUser.js +2 -2
- package/Models/DatabaseModels/StatusPagePrivateUser.js +4 -1
- package/Models/DatabaseModels/StatusPageResource.js +1 -0
- package/Models/DatabaseModels/StatusPageSCIM.js +1 -0
- package/Models/DatabaseModels/StatusPageSCIMLog.js +1 -0
- package/Models/DatabaseModels/StatusPageSso.js +10 -0
- package/Models/DatabaseModels/StatusPageSubscriber.js +5 -0
- package/Models/DatabaseModels/StatusPageSubscriberNotificationTemplate.js +2 -0
- package/Models/DatabaseModels/StorageArray.js +1 -1
- package/Models/DatabaseModels/StorageArrayFeed.js +1 -0
- package/Models/DatabaseModels/StorageArrayOwnerTeam.js +2 -2
- package/Models/DatabaseModels/StorageArrayOwnerUser.js +2 -2
- package/Models/DatabaseModels/TeamComplianceSetting.js +2 -0
- package/Models/DatabaseModels/TeamCustomField.js +2 -1
- package/Models/DatabaseModels/TeamMember.js +6 -5
- package/Models/DatabaseModels/TeamMemberCustomField.js +2 -1
- package/Models/DatabaseModels/TeamPermission.js +3 -1
- package/Models/DatabaseModels/TelegramLog.js +1 -0
- package/Models/DatabaseModels/TelemetryException.js +1 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.js +1 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +2 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.js +2 -0
- package/Models/DatabaseModels/ThreatIntelFeed.js +1 -0
- package/Models/DatabaseModels/ToolImportRecord.js +2 -0
- package/Models/DatabaseModels/ToolImportRun.js +2 -0
- package/Models/DatabaseModels/TraceDropFilter.js +2 -0
- package/Models/DatabaseModels/TracePipelineProcessor.js +2 -0
- package/Models/DatabaseModels/TraceScrubRule.js +4 -0
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +54 -3
- package/Models/DatabaseModels/UserNotificationEmailRollupBatch.js +1 -0
- package/Models/DatabaseModels/UserNotificationEmailRollupItem.js +2 -0
- package/Models/DatabaseModels/UserNotificationRule.js +3 -1
- package/Models/DatabaseModels/UserNotificationSetting.js +2 -1
- package/Models/DatabaseModels/UserOnCallLog.js +4 -1
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +4 -0
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +1 -0
- package/Models/DatabaseModels/UserPush.js +3 -0
- package/Models/DatabaseModels/UserTotpAuth.js +1 -0
- package/Models/DatabaseModels/UserWebhook.js +1 -0
- package/Models/DatabaseModels/VMwareResource.d.mts +6 -0
- package/Models/DatabaseModels/VMwareResource.d.ts +6 -0
- package/Models/DatabaseModels/VMwareResource.js +125 -1
- package/Models/DatabaseModels/VMwareVCenter.js +5 -1
- package/Models/DatabaseModels/VMwareVCenterConnectionTest.js +2 -0
- package/Models/DatabaseModels/VMwareVCenterFeed.js +1 -0
- package/Models/DatabaseModels/VMwareVCenterOwnerTeam.js +2 -2
- package/Models/DatabaseModels/VMwareVCenterOwnerUser.js +2 -2
- package/Models/DatabaseModels/VercelMarketplaceInstallation.js +1 -0
- package/Models/DatabaseModels/VideoCallConnection.js +2 -0
- package/Models/DatabaseModels/WebhookLog.js +1 -0
- package/Models/DatabaseModels/WhatsAppLog.js +1 -0
- package/Models/DatabaseModels/Workflow.js +3 -1
- package/Models/DatabaseModels/WorkflowOwnerTeam.js +2 -2
- package/Models/DatabaseModels/WorkflowOwnerUser.js +2 -2
- package/Models/DatabaseModels/WorkflowVariable.js +3 -0
- package/Models/DatabaseModels/WorkspaceHomeChoice.d.mts +11 -0
- package/Models/DatabaseModels/WorkspaceHomeChoice.d.ts +11 -0
- package/Models/DatabaseModels/WorkspaceHomeChoice.js +186 -0
- package/Models/DatabaseModels/WorkspaceHomeChoice.mjs +2 -0
- package/Models/DatabaseModels/WorkspaceLiveMessage.js +2 -0
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +3 -0
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +2 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +3 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +2 -0
- package/Models/DatabaseModels/WorkspaceSetting.js +1 -0
- package/Models/DatabaseModels/WorkspaceUserAuthToken.js +2 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -0
- package/Types/AI/AIFixReadiness.d.mts +2 -0
- package/Types/AI/AIFixReadiness.d.ts +2 -0
- package/Types/AI/AIFixReadiness.js +0 -6
- package/Types/AI/CodeTask.d.mts +3 -1
- package/Types/AI/CodeTask.d.ts +3 -1
- package/Types/AI/CodeTask.js +12 -0
- package/Types/Cloud/CloudResourceCatalog.js +22 -15
- package/Types/CustomField/CustomFieldRecordKinds.js +5 -0
- package/Types/CustomField/CustomFieldSavedViews.js +2 -0
- package/Types/Database/TableColumn.d.mts +2 -0
- package/Types/Database/TableColumn.d.ts +2 -0
- package/Types/DatabaseServer/DatabaseServerDiscoverySource.js +12 -6
- package/Types/DateLanguage.js +3 -2
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.d.mts +1 -0
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.d.ts +1 -0
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.js +84 -6
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.mjs +1 -0
- package/Types/Exception/SessionEndedException.d.mts +8 -0
- package/Types/Exception/SessionEndedException.d.ts +8 -0
- package/Types/Exception/SessionEndedException.js +38 -0
- package/Types/Exception/SessionEndedException.mjs +3 -0
- package/Types/HeldPermissions.js +4 -2
- package/Types/Host/HostHealth.d.mts +88 -0
- package/Types/Host/HostHealth.d.ts +88 -0
- package/Types/Host/HostHealth.js +542 -0
- package/Types/Host/HostHealth.mjs +27 -0
- package/Types/InstallScripts/InstallScripts.d.mts +1 -0
- package/Types/InstallScripts/InstallScripts.d.ts +1 -0
- package/Types/InstallScripts/InstallScripts.js +14 -0
- package/Types/JsonWebTokenData.d.mts +2 -0
- package/Types/JsonWebTokenData.d.ts +2 -0
- package/Types/Marketing/Attribution.d.mts +6 -0
- package/Types/Marketing/Attribution.d.ts +6 -0
- package/Types/Marketing/Attribution.js +43 -7
- package/Types/Marketing/Attribution.mjs +6 -0
- package/Types/Marketing/MarketingEvent.d.mts +4 -0
- package/Types/Marketing/MarketingEvent.d.ts +4 -0
- package/Types/Marketing/MarketingEvent.js +16 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +15 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +15 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.js +168 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.d.mts +1 -1
- package/Types/Monitor/DockerSwarmMetricCatalog.d.ts +1 -1
- package/Types/Monitor/DockerSwarmMetricCatalog.js +43 -11
- package/Types/Monitor/HostAlertTemplates.d.mts +1 -0
- package/Types/Monitor/HostAlertTemplates.d.ts +1 -0
- package/Types/Monitor/HostAlertTemplates.js +234 -0
- package/Types/Monitor/HostAlertTemplates.mjs +1 -0
- package/Types/Monitor/SeriesContext/SeriesDebugHints.js +33 -0
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +3 -0
- package/Types/Monitor/VMwareAlertTemplates.d.mts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.ts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.js +38 -1
- package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
- package/Types/NetworkController/NetworkControllerDeviceAdd.d.mts +70 -0
- package/Types/NetworkController/NetworkControllerDeviceAdd.d.ts +70 -0
- package/Types/NetworkController/NetworkControllerDeviceAdd.js +389 -0
- package/Types/NetworkController/NetworkControllerDeviceAdd.mjs +26 -0
- package/Types/NetworkController/NetworkControllerReadSummary.d.mts +2 -0
- package/Types/NetworkController/NetworkControllerReadSummary.d.ts +2 -0
- package/Types/NetworkController/NetworkControllerReadSummary.js +6 -1
- package/Types/NetworkDevice/NetworkTopologyLayout.d.mts +8 -0
- package/Types/NetworkDevice/NetworkTopologyLayout.d.ts +8 -0
- package/Types/NetworkDevice/NetworkTopologyLayout.js +49 -0
- package/Types/NetworkDevice/NetworkTopologyLayout.mjs +3 -0
- package/Types/Permission.d.mts +8 -0
- package/Types/Permission.d.ts +8 -0
- package/Types/Permission.js +87 -3
- package/Types/Phone.js +19 -4
- package/Types/ProviderLogo/AllProviderLogoMarks.d.mts +4 -0
- package/Types/ProviderLogo/AllProviderLogoMarks.d.ts +4 -0
- package/Types/ProviderLogo/AllProviderLogoMarks.js +200 -0
- package/Types/ProviderLogo/AllProviderLogoMarks.mjs +2 -0
- package/Types/ProviderLogo/Marks/actix-web.d.mts +3 -0
- package/Types/ProviderLogo/Marks/actix-web.d.ts +3 -0
- package/Types/ProviderLogo/Marks/actix-web.js +12 -0
- package/Types/ProviderLogo/Marks/actix-web.mjs +2 -0
- package/Types/ProviderLogo/Marks/angular.d.mts +3 -0
- package/Types/ProviderLogo/Marks/angular.d.ts +3 -0
- package/Types/ProviderLogo/Marks/angular.js +12 -0
- package/Types/ProviderLogo/Marks/angular.mjs +2 -0
- package/Types/ProviderLogo/Marks/anthropic.d.mts +3 -0
- package/Types/ProviderLogo/Marks/anthropic.d.ts +3 -0
- package/Types/ProviderLogo/Marks/anthropic.js +12 -0
- package/Types/ProviderLogo/Marks/anthropic.mjs +2 -0
- package/Types/ProviderLogo/Marks/atlassian-statuspage.d.mts +3 -0
- package/Types/ProviderLogo/Marks/atlassian-statuspage.d.ts +3 -0
- package/Types/ProviderLogo/Marks/atlassian-statuspage.js +12 -0
- package/Types/ProviderLogo/Marks/atlassian-statuspage.mjs +2 -0
- package/Types/ProviderLogo/Marks/azure.d.mts +3 -0
- package/Types/ProviderLogo/Marks/azure.d.ts +3 -0
- package/Types/ProviderLogo/Marks/azure.js +13 -0
- package/Types/ProviderLogo/Marks/azure.mjs +2 -0
- package/Types/ProviderLogo/Marks/backblaze.d.mts +3 -0
- package/Types/ProviderLogo/Marks/backblaze.d.ts +3 -0
- package/Types/ProviderLogo/Marks/backblaze.js +12 -0
- package/Types/ProviderLogo/Marks/backblaze.mjs +2 -0
- package/Types/ProviderLogo/Marks/better-stack.d.mts +3 -0
- package/Types/ProviderLogo/Marks/better-stack.d.ts +3 -0
- package/Types/ProviderLogo/Marks/better-stack.js +12 -0
- package/Types/ProviderLogo/Marks/better-stack.mjs +2 -0
- package/Types/ProviderLogo/Marks/bun.d.mts +3 -0
- package/Types/ProviderLogo/Marks/bun.d.ts +3 -0
- package/Types/ProviderLogo/Marks/bun.js +12 -0
- package/Types/ProviderLogo/Marks/bun.mjs +2 -0
- package/Types/ProviderLogo/Marks/celery.d.mts +3 -0
- package/Types/ProviderLogo/Marks/celery.d.ts +3 -0
- package/Types/ProviderLogo/Marks/celery.js +12 -0
- package/Types/ProviderLogo/Marks/celery.mjs +2 -0
- package/Types/ProviderLogo/Marks/ceph.d.mts +3 -0
- package/Types/ProviderLogo/Marks/ceph.d.ts +3 -0
- package/Types/ProviderLogo/Marks/ceph.js +12 -0
- package/Types/ProviderLogo/Marks/ceph.mjs +2 -0
- package/Types/ProviderLogo/Marks/cisco.d.mts +3 -0
- package/Types/ProviderLogo/Marks/cisco.d.ts +3 -0
- package/Types/ProviderLogo/Marks/cisco.js +12 -0
- package/Types/ProviderLogo/Marks/cisco.mjs +2 -0
- package/Types/ProviderLogo/Marks/claude.d.mts +3 -0
- package/Types/ProviderLogo/Marks/claude.d.ts +3 -0
- package/Types/ProviderLogo/Marks/claude.js +12 -0
- package/Types/ProviderLogo/Marks/claude.mjs +2 -0
- package/Types/ProviderLogo/Marks/cloudflare.d.mts +3 -0
- package/Types/ProviderLogo/Marks/cloudflare.d.ts +3 -0
- package/Types/ProviderLogo/Marks/cloudflare.js +12 -0
- package/Types/ProviderLogo/Marks/cloudflare.mjs +2 -0
- package/Types/ProviderLogo/Marks/cplusplus.d.mts +3 -0
- package/Types/ProviderLogo/Marks/cplusplus.d.ts +3 -0
- package/Types/ProviderLogo/Marks/cplusplus.js +12 -0
- package/Types/ProviderLogo/Marks/cplusplus.mjs +2 -0
- package/Types/ProviderLogo/Marks/datadog.d.mts +3 -0
- package/Types/ProviderLogo/Marks/datadog.d.ts +3 -0
- package/Types/ProviderLogo/Marks/datadog.js +12 -0
- package/Types/ProviderLogo/Marks/datadog.mjs +2 -0
- package/Types/ProviderLogo/Marks/deno.d.mts +3 -0
- package/Types/ProviderLogo/Marks/deno.d.ts +3 -0
- package/Types/ProviderLogo/Marks/deno.js +12 -0
- package/Types/ProviderLogo/Marks/deno.mjs +2 -0
- package/Types/ProviderLogo/Marks/discord.d.mts +3 -0
- package/Types/ProviderLogo/Marks/discord.d.ts +3 -0
- package/Types/ProviderLogo/Marks/discord.js +12 -0
- package/Types/ProviderLogo/Marks/discord.mjs +2 -0
- package/Types/ProviderLogo/Marks/django.d.mts +3 -0
- package/Types/ProviderLogo/Marks/django.d.ts +3 -0
- package/Types/ProviderLogo/Marks/django.js +12 -0
- package/Types/ProviderLogo/Marks/django.mjs +2 -0
- package/Types/ProviderLogo/Marks/docker.d.mts +3 -0
- package/Types/ProviderLogo/Marks/docker.d.ts +3 -0
- package/Types/ProviderLogo/Marks/docker.js +12 -0
- package/Types/ProviderLogo/Marks/docker.mjs +2 -0
- package/Types/ProviderLogo/Marks/dotnet.d.mts +3 -0
- package/Types/ProviderLogo/Marks/dotnet.d.ts +3 -0
- package/Types/ProviderLogo/Marks/dotnet.js +12 -0
- package/Types/ProviderLogo/Marks/dotnet.mjs +2 -0
- package/Types/ProviderLogo/Marks/dynatrace.d.mts +3 -0
- package/Types/ProviderLogo/Marks/dynatrace.d.ts +3 -0
- package/Types/ProviderLogo/Marks/dynatrace.js +12 -0
- package/Types/ProviderLogo/Marks/dynatrace.mjs +2 -0
- package/Types/ProviderLogo/Marks/elastic.d.mts +3 -0
- package/Types/ProviderLogo/Marks/elastic.d.ts +3 -0
- package/Types/ProviderLogo/Marks/elastic.js +12 -0
- package/Types/ProviderLogo/Marks/elastic.mjs +2 -0
- package/Types/ProviderLogo/Marks/elixir.d.mts +3 -0
- package/Types/ProviderLogo/Marks/elixir.d.ts +3 -0
- package/Types/ProviderLogo/Marks/elixir.js +12 -0
- package/Types/ProviderLogo/Marks/elixir.mjs +2 -0
- package/Types/ProviderLogo/Marks/express.d.mts +3 -0
- package/Types/ProviderLogo/Marks/express.d.ts +3 -0
- package/Types/ProviderLogo/Marks/express.js +12 -0
- package/Types/ProviderLogo/Marks/express.mjs +2 -0
- package/Types/ProviderLogo/Marks/fastapi.d.mts +3 -0
- package/Types/ProviderLogo/Marks/fastapi.d.ts +3 -0
- package/Types/ProviderLogo/Marks/fastapi.js +12 -0
- package/Types/ProviderLogo/Marks/fastapi.mjs +2 -0
- package/Types/ProviderLogo/Marks/fastify.d.mts +3 -0
- package/Types/ProviderLogo/Marks/fastify.d.ts +3 -0
- package/Types/ProviderLogo/Marks/fastify.js +12 -0
- package/Types/ProviderLogo/Marks/fastify.mjs +2 -0
- package/Types/ProviderLogo/Marks/flask.d.mts +3 -0
- package/Types/ProviderLogo/Marks/flask.d.ts +3 -0
- package/Types/ProviderLogo/Marks/flask.js +12 -0
- package/Types/ProviderLogo/Marks/flask.mjs +2 -0
- package/Types/ProviderLogo/Marks/fluent-bit.d.mts +3 -0
- package/Types/ProviderLogo/Marks/fluent-bit.d.ts +3 -0
- package/Types/ProviderLogo/Marks/fluent-bit.js +12 -0
- package/Types/ProviderLogo/Marks/fluent-bit.mjs +2 -0
- package/Types/ProviderLogo/Marks/fluentd.d.mts +3 -0
- package/Types/ProviderLogo/Marks/fluentd.d.ts +3 -0
- package/Types/ProviderLogo/Marks/fluentd.js +12 -0
- package/Types/ProviderLogo/Marks/fluentd.mjs +2 -0
- package/Types/ProviderLogo/Marks/forgejo.d.mts +3 -0
- package/Types/ProviderLogo/Marks/forgejo.d.ts +3 -0
- package/Types/ProviderLogo/Marks/forgejo.js +12 -0
- package/Types/ProviderLogo/Marks/forgejo.mjs +2 -0
- package/Types/ProviderLogo/Marks/gin.d.mts +3 -0
- package/Types/ProviderLogo/Marks/gin.d.ts +3 -0
- package/Types/ProviderLogo/Marks/gin.js +12 -0
- package/Types/ProviderLogo/Marks/gin.mjs +2 -0
- package/Types/ProviderLogo/Marks/git.d.mts +3 -0
- package/Types/ProviderLogo/Marks/git.d.ts +3 -0
- package/Types/ProviderLogo/Marks/git.js +12 -0
- package/Types/ProviderLogo/Marks/git.mjs +2 -0
- package/Types/ProviderLogo/Marks/gitea.d.mts +3 -0
- package/Types/ProviderLogo/Marks/gitea.d.ts +3 -0
- package/Types/ProviderLogo/Marks/gitea.js +12 -0
- package/Types/ProviderLogo/Marks/gitea.mjs +2 -0
- package/Types/ProviderLogo/Marks/github.d.mts +3 -0
- package/Types/ProviderLogo/Marks/github.d.ts +3 -0
- package/Types/ProviderLogo/Marks/github.js +12 -0
- package/Types/ProviderLogo/Marks/github.mjs +2 -0
- package/Types/ProviderLogo/Marks/gitlab.d.mts +3 -0
- package/Types/ProviderLogo/Marks/gitlab.d.ts +3 -0
- package/Types/ProviderLogo/Marks/gitlab.js +12 -0
- package/Types/ProviderLogo/Marks/gitlab.mjs +2 -0
- package/Types/ProviderLogo/Marks/go.d.mts +3 -0
- package/Types/ProviderLogo/Marks/go.d.ts +3 -0
- package/Types/ProviderLogo/Marks/go.js +12 -0
- package/Types/ProviderLogo/Marks/go.mjs +2 -0
- package/Types/ProviderLogo/Marks/google-calendar.d.mts +3 -0
- package/Types/ProviderLogo/Marks/google-calendar.d.ts +3 -0
- package/Types/ProviderLogo/Marks/google-calendar.js +12 -0
- package/Types/ProviderLogo/Marks/google-calendar.mjs +2 -0
- package/Types/ProviderLogo/Marks/google-cloud.d.mts +3 -0
- package/Types/ProviderLogo/Marks/google-cloud.d.ts +3 -0
- package/Types/ProviderLogo/Marks/google-cloud.js +12 -0
- package/Types/ProviderLogo/Marks/google-cloud.mjs +2 -0
- package/Types/ProviderLogo/Marks/google-meet.d.mts +3 -0
- package/Types/ProviderLogo/Marks/google-meet.d.ts +3 -0
- package/Types/ProviderLogo/Marks/google-meet.js +12 -0
- package/Types/ProviderLogo/Marks/google-meet.mjs +2 -0
- package/Types/ProviderLogo/Marks/google-workspace.d.mts +3 -0
- package/Types/ProviderLogo/Marks/google-workspace.d.ts +3 -0
- package/Types/ProviderLogo/Marks/google-workspace.js +12 -0
- package/Types/ProviderLogo/Marks/google-workspace.mjs +2 -0
- package/Types/ProviderLogo/Marks/grafana.d.mts +3 -0
- package/Types/ProviderLogo/Marks/grafana.d.ts +3 -0
- package/Types/ProviderLogo/Marks/grafana.js +12 -0
- package/Types/ProviderLogo/Marks/grafana.mjs +2 -0
- package/Types/ProviderLogo/Marks/hapi.d.mts +3 -0
- package/Types/ProviderLogo/Marks/hapi.d.ts +3 -0
- package/Types/ProviderLogo/Marks/hapi.js +21 -0
- package/Types/ProviderLogo/Marks/hapi.mjs +2 -0
- package/Types/ProviderLogo/Marks/incident-io.d.mts +3 -0
- package/Types/ProviderLogo/Marks/incident-io.d.ts +3 -0
- package/Types/ProviderLogo/Marks/incident-io.js +12 -0
- package/Types/ProviderLogo/Marks/incident-io.mjs +2 -0
- package/Types/ProviderLogo/Marks/instatus.d.mts +3 -0
- package/Types/ProviderLogo/Marks/instatus.d.ts +3 -0
- package/Types/ProviderLogo/Marks/instatus.js +12 -0
- package/Types/ProviderLogo/Marks/instatus.mjs +2 -0
- package/Types/ProviderLogo/Marks/java.d.mts +3 -0
- package/Types/ProviderLogo/Marks/java.d.ts +3 -0
- package/Types/ProviderLogo/Marks/java.js +12 -0
- package/Types/ProviderLogo/Marks/java.mjs +2 -0
- package/Types/ProviderLogo/Marks/koa.d.mts +3 -0
- package/Types/ProviderLogo/Marks/koa.d.ts +3 -0
- package/Types/ProviderLogo/Marks/koa.js +12 -0
- package/Types/ProviderLogo/Marks/koa.mjs +2 -0
- package/Types/ProviderLogo/Marks/kotlin.d.mts +3 -0
- package/Types/ProviderLogo/Marks/kotlin.d.ts +3 -0
- package/Types/ProviderLogo/Marks/kotlin.js +12 -0
- package/Types/ProviderLogo/Marks/kotlin.mjs +2 -0
- package/Types/ProviderLogo/Marks/ktor.d.mts +3 -0
- package/Types/ProviderLogo/Marks/ktor.d.ts +3 -0
- package/Types/ProviderLogo/Marks/ktor.js +12 -0
- package/Types/ProviderLogo/Marks/ktor.mjs +2 -0
- package/Types/ProviderLogo/Marks/kubernetes.d.mts +3 -0
- package/Types/ProviderLogo/Marks/kubernetes.d.ts +3 -0
- package/Types/ProviderLogo/Marks/kubernetes.js +12 -0
- package/Types/ProviderLogo/Marks/kubernetes.mjs +2 -0
- package/Types/ProviderLogo/Marks/mattermost.d.mts +3 -0
- package/Types/ProviderLogo/Marks/mattermost.d.ts +3 -0
- package/Types/ProviderLogo/Marks/mattermost.js +12 -0
- package/Types/ProviderLogo/Marks/mattermost.mjs +2 -0
- package/Types/ProviderLogo/Marks/microsoft-defender.d.mts +3 -0
- package/Types/ProviderLogo/Marks/microsoft-defender.d.ts +3 -0
- package/Types/ProviderLogo/Marks/microsoft-defender.js +13 -0
- package/Types/ProviderLogo/Marks/microsoft-defender.mjs +2 -0
- package/Types/ProviderLogo/Marks/microsoft-entra-id.d.mts +3 -0
- package/Types/ProviderLogo/Marks/microsoft-entra-id.d.ts +3 -0
- package/Types/ProviderLogo/Marks/microsoft-entra-id.js +13 -0
- package/Types/ProviderLogo/Marks/microsoft-entra-id.mjs +2 -0
- package/Types/ProviderLogo/Marks/microsoft-teams.d.mts +3 -0
- package/Types/ProviderLogo/Marks/microsoft-teams.d.ts +3 -0
- package/Types/ProviderLogo/Marks/microsoft-teams.js +13 -0
- package/Types/ProviderLogo/Marks/microsoft-teams.mjs +2 -0
- package/Types/ProviderLogo/Marks/minio.d.mts +3 -0
- package/Types/ProviderLogo/Marks/minio.d.ts +3 -0
- package/Types/ProviderLogo/Marks/minio.js +12 -0
- package/Types/ProviderLogo/Marks/minio.mjs +2 -0
- package/Types/ProviderLogo/Marks/mistral-ai.d.mts +3 -0
- package/Types/ProviderLogo/Marks/mistral-ai.d.ts +3 -0
- package/Types/ProviderLogo/Marks/mistral-ai.js +12 -0
- package/Types/ProviderLogo/Marks/mistral-ai.mjs +2 -0
- package/Types/ProviderLogo/Marks/nestjs.d.mts +3 -0
- package/Types/ProviderLogo/Marks/nestjs.d.ts +3 -0
- package/Types/ProviderLogo/Marks/nestjs.js +12 -0
- package/Types/ProviderLogo/Marks/nestjs.mjs +2 -0
- package/Types/ProviderLogo/Marks/new-relic.d.mts +3 -0
- package/Types/ProviderLogo/Marks/new-relic.d.ts +3 -0
- package/Types/ProviderLogo/Marks/new-relic.js +12 -0
- package/Types/ProviderLogo/Marks/new-relic.mjs +2 -0
- package/Types/ProviderLogo/Marks/nextjs.d.mts +3 -0
- package/Types/ProviderLogo/Marks/nextjs.d.ts +3 -0
- package/Types/ProviderLogo/Marks/nextjs.js +12 -0
- package/Types/ProviderLogo/Marks/nextjs.mjs +2 -0
- package/Types/ProviderLogo/Marks/nodejs.d.mts +3 -0
- package/Types/ProviderLogo/Marks/nodejs.d.ts +3 -0
- package/Types/ProviderLogo/Marks/nodejs.js +12 -0
- package/Types/ProviderLogo/Marks/nodejs.mjs +2 -0
- package/Types/ProviderLogo/Marks/okta.d.mts +3 -0
- package/Types/ProviderLogo/Marks/okta.d.ts +3 -0
- package/Types/ProviderLogo/Marks/okta.js +14 -0
- package/Types/ProviderLogo/Marks/okta.mjs +2 -0
- package/Types/ProviderLogo/Marks/ollama.d.mts +3 -0
- package/Types/ProviderLogo/Marks/ollama.d.ts +3 -0
- package/Types/ProviderLogo/Marks/ollama.js +12 -0
- package/Types/ProviderLogo/Marks/ollama.mjs +2 -0
- package/Types/ProviderLogo/Marks/openai.d.mts +3 -0
- package/Types/ProviderLogo/Marks/openai.d.ts +3 -0
- package/Types/ProviderLogo/Marks/openai.js +12 -0
- package/Types/ProviderLogo/Marks/openai.mjs +2 -0
- package/Types/ProviderLogo/Marks/opentelemetry.d.mts +3 -0
- package/Types/ProviderLogo/Marks/opentelemetry.d.ts +3 -0
- package/Types/ProviderLogo/Marks/opentelemetry.js +12 -0
- package/Types/ProviderLogo/Marks/opentelemetry.mjs +2 -0
- package/Types/ProviderLogo/Marks/opsgenie.d.mts +3 -0
- package/Types/ProviderLogo/Marks/opsgenie.d.ts +3 -0
- package/Types/ProviderLogo/Marks/opsgenie.js +12 -0
- package/Types/ProviderLogo/Marks/opsgenie.mjs +2 -0
- package/Types/ProviderLogo/Marks/pagerduty.d.mts +3 -0
- package/Types/ProviderLogo/Marks/pagerduty.d.ts +3 -0
- package/Types/ProviderLogo/Marks/pagerduty.js +12 -0
- package/Types/ProviderLogo/Marks/pagerduty.mjs +2 -0
- package/Types/ProviderLogo/Marks/phoenix.d.mts +3 -0
- package/Types/ProviderLogo/Marks/phoenix.d.ts +3 -0
- package/Types/ProviderLogo/Marks/phoenix.js +12 -0
- package/Types/ProviderLogo/Marks/phoenix.mjs +2 -0
- package/Types/ProviderLogo/Marks/php.d.mts +3 -0
- package/Types/ProviderLogo/Marks/php.d.ts +3 -0
- package/Types/ProviderLogo/Marks/php.js +12 -0
- package/Types/ProviderLogo/Marks/php.mjs +2 -0
- package/Types/ProviderLogo/Marks/pingdom.d.mts +3 -0
- package/Types/ProviderLogo/Marks/pingdom.d.ts +3 -0
- package/Types/ProviderLogo/Marks/pingdom.js +12 -0
- package/Types/ProviderLogo/Marks/pingdom.mjs +2 -0
- package/Types/ProviderLogo/Marks/prometheus.d.mts +3 -0
- package/Types/ProviderLogo/Marks/prometheus.d.ts +3 -0
- package/Types/ProviderLogo/Marks/prometheus.js +12 -0
- package/Types/ProviderLogo/Marks/prometheus.mjs +2 -0
- package/Types/ProviderLogo/Marks/proxmox.d.mts +3 -0
- package/Types/ProviderLogo/Marks/proxmox.d.ts +3 -0
- package/Types/ProviderLogo/Marks/proxmox.js +12 -0
- package/Types/ProviderLogo/Marks/proxmox.mjs +2 -0
- package/Types/ProviderLogo/Marks/python.d.mts +3 -0
- package/Types/ProviderLogo/Marks/python.d.ts +3 -0
- package/Types/ProviderLogo/Marks/python.js +12 -0
- package/Types/ProviderLogo/Marks/python.mjs +2 -0
- package/Types/ProviderLogo/Marks/quarkus.d.mts +3 -0
- package/Types/ProviderLogo/Marks/quarkus.d.ts +3 -0
- package/Types/ProviderLogo/Marks/quarkus.js +12 -0
- package/Types/ProviderLogo/Marks/quarkus.mjs +2 -0
- package/Types/ProviderLogo/Marks/rails.d.mts +3 -0
- package/Types/ProviderLogo/Marks/rails.d.ts +3 -0
- package/Types/ProviderLogo/Marks/rails.js +12 -0
- package/Types/ProviderLogo/Marks/rails.mjs +2 -0
- package/Types/ProviderLogo/Marks/react.d.mts +3 -0
- package/Types/ProviderLogo/Marks/react.d.ts +3 -0
- package/Types/ProviderLogo/Marks/react.js +12 -0
- package/Types/ProviderLogo/Marks/react.mjs +2 -0
- package/Types/ProviderLogo/Marks/ruby.d.mts +3 -0
- package/Types/ProviderLogo/Marks/ruby.d.ts +3 -0
- package/Types/ProviderLogo/Marks/ruby.js +12 -0
- package/Types/ProviderLogo/Marks/ruby.mjs +2 -0
- package/Types/ProviderLogo/Marks/rust.d.mts +3 -0
- package/Types/ProviderLogo/Marks/rust.d.ts +3 -0
- package/Types/ProviderLogo/Marks/rust.js +12 -0
- package/Types/ProviderLogo/Marks/rust.mjs +2 -0
- package/Types/ProviderLogo/Marks/sentry.d.mts +3 -0
- package/Types/ProviderLogo/Marks/sentry.d.ts +3 -0
- package/Types/ProviderLogo/Marks/sentry.js +12 -0
- package/Types/ProviderLogo/Marks/sentry.mjs +2 -0
- package/Types/ProviderLogo/Marks/sidekiq.d.mts +3 -0
- package/Types/ProviderLogo/Marks/sidekiq.d.ts +3 -0
- package/Types/ProviderLogo/Marks/sidekiq.js +12 -0
- package/Types/ProviderLogo/Marks/sidekiq.mjs +2 -0
- package/Types/ProviderLogo/Marks/sinatra.d.mts +3 -0
- package/Types/ProviderLogo/Marks/sinatra.d.ts +3 -0
- package/Types/ProviderLogo/Marks/sinatra.js +12 -0
- package/Types/ProviderLogo/Marks/sinatra.mjs +2 -0
- package/Types/ProviderLogo/Marks/slack.d.mts +3 -0
- package/Types/ProviderLogo/Marks/slack.d.ts +3 -0
- package/Types/ProviderLogo/Marks/slack.js +22 -0
- package/Types/ProviderLogo/Marks/slack.mjs +2 -0
- package/Types/ProviderLogo/Marks/slim.d.mts +3 -0
- package/Types/ProviderLogo/Marks/slim.d.ts +3 -0
- package/Types/ProviderLogo/Marks/slim.js +15 -0
- package/Types/ProviderLogo/Marks/slim.mjs +2 -0
- package/Types/ProviderLogo/Marks/splunk.d.mts +3 -0
- package/Types/ProviderLogo/Marks/splunk.d.ts +3 -0
- package/Types/ProviderLogo/Marks/splunk.js +12 -0
- package/Types/ProviderLogo/Marks/splunk.mjs +2 -0
- package/Types/ProviderLogo/Marks/spring-boot.d.mts +3 -0
- package/Types/ProviderLogo/Marks/spring-boot.d.ts +3 -0
- package/Types/ProviderLogo/Marks/spring-boot.js +12 -0
- package/Types/ProviderLogo/Marks/spring-boot.mjs +2 -0
- package/Types/ProviderLogo/Marks/statuscake.d.mts +3 -0
- package/Types/ProviderLogo/Marks/statuscake.d.ts +3 -0
- package/Types/ProviderLogo/Marks/statuscake.js +21 -0
- package/Types/ProviderLogo/Marks/statuscake.mjs +2 -0
- package/Types/ProviderLogo/Marks/swift.d.mts +3 -0
- package/Types/ProviderLogo/Marks/swift.d.ts +3 -0
- package/Types/ProviderLogo/Marks/swift.js +12 -0
- package/Types/ProviderLogo/Marks/swift.mjs +2 -0
- package/Types/ProviderLogo/Marks/telegram.d.mts +3 -0
- package/Types/ProviderLogo/Marks/telegram.d.ts +3 -0
- package/Types/ProviderLogo/Marks/telegram.js +12 -0
- package/Types/ProviderLogo/Marks/telegram.mjs +2 -0
- package/Types/ProviderLogo/Marks/terraform.d.mts +3 -0
- package/Types/ProviderLogo/Marks/terraform.d.ts +3 -0
- package/Types/ProviderLogo/Marks/terraform.js +12 -0
- package/Types/ProviderLogo/Marks/terraform.mjs +2 -0
- package/Types/ProviderLogo/Marks/uptime-kuma.d.mts +3 -0
- package/Types/ProviderLogo/Marks/uptime-kuma.d.ts +3 -0
- package/Types/ProviderLogo/Marks/uptime-kuma.js +12 -0
- package/Types/ProviderLogo/Marks/uptime-kuma.mjs +2 -0
- package/Types/ProviderLogo/Marks/uptimerobot.d.mts +3 -0
- package/Types/ProviderLogo/Marks/uptimerobot.d.ts +3 -0
- package/Types/ProviderLogo/Marks/uptimerobot.js +17 -0
- package/Types/ProviderLogo/Marks/uptimerobot.mjs +2 -0
- package/Types/ProviderLogo/Marks/wasabi.d.mts +3 -0
- package/Types/ProviderLogo/Marks/wasabi.d.ts +3 -0
- package/Types/ProviderLogo/Marks/wasabi.js +12 -0
- package/Types/ProviderLogo/Marks/wasabi.mjs +2 -0
- package/Types/ProviderLogo/Marks/whatsapp.d.mts +3 -0
- package/Types/ProviderLogo/Marks/whatsapp.d.ts +3 -0
- package/Types/ProviderLogo/Marks/whatsapp.js +12 -0
- package/Types/ProviderLogo/Marks/whatsapp.mjs +2 -0
- package/Types/ProviderLogo/Marks/zoom.d.mts +3 -0
- package/Types/ProviderLogo/Marks/zoom.d.ts +3 -0
- package/Types/ProviderLogo/Marks/zoom.js +12 -0
- package/Types/ProviderLogo/Marks/zoom.mjs +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +17 -1
- package/Types/ProviderLogo/ProviderLogo.d.ts +17 -1
- package/Types/ProviderLogo/ProviderLogo.js +52 -12
- package/Types/ProviderLogo/ProviderLogoMark.d.mts +5 -0
- package/Types/ProviderLogo/ProviderLogoMark.d.ts +5 -0
- package/Types/ProviderLogo/ProviderLogoMark.js +12 -0
- package/Types/ProviderLogo/ProviderLogoMark.mjs +1 -0
- package/Types/ProviderLogo/ProviderLogoMarks.d.mts +23 -0
- package/Types/ProviderLogo/ProviderLogoMarks.d.ts +23 -0
- package/Types/ProviderLogo/ProviderLogoMarks.js +219 -0
- package/Types/ProviderLogo/ProviderLogoMarks.mjs +9 -0
- package/Types/PushNotification/PushNotificationCategory.d.mts +3 -0
- package/Types/PushNotification/PushNotificationCategory.d.ts +3 -0
- package/Types/PushNotification/PushNotificationCategory.js +38 -0
- package/Types/PushNotification/PushNotificationCategory.mjs +4 -0
- package/Types/PushNotification/PushNotificationMessage.d.mts +1 -0
- package/Types/PushNotification/PushNotificationMessage.d.ts +1 -0
- package/Types/Runner/RunnerCodeFixes.d.mts +22 -0
- package/Types/Runner/RunnerCodeFixes.d.ts +22 -0
- package/Types/Runner/RunnerCodeFixes.js +129 -0
- package/Types/Runner/RunnerCodeFixes.mjs +9 -0
- package/Types/SecurityCase/SecurityCaseNumber.js +8 -4
- package/Types/SecurityCase/SecurityConnection.d.mts +64 -1
- package/Types/SecurityCase/SecurityConnection.d.ts +64 -1
- package/Types/SecurityCase/SecurityConnection.js +77 -7
- package/Types/SecurityCase/SecurityConnection.mjs +5 -0
- package/Types/SecurityEvent/MitreAttack.d.mts +2 -0
- package/Types/SecurityEvent/MitreAttack.d.ts +2 -0
- package/Types/SecurityEvent/MitreAttack.js +26 -0
- package/Types/SecurityEvent/MitreAttack.mjs +2 -0
- package/Types/SecurityEvent/OcsfSeverity.js +10 -1
- package/Types/Telemetry/FacetExcludeKey.d.mts +5 -0
- package/Types/Telemetry/FacetExcludeKey.d.ts +5 -0
- package/Types/Telemetry/FacetExcludeKey.js +67 -0
- package/Types/Telemetry/FacetExcludeKey.mjs +6 -0
- package/Types/Telemetry/ResourceEntityFacet.d.mts +4 -0
- package/Types/Telemetry/ResourceEntityFacet.d.ts +4 -0
- package/Types/Telemetry/ResourceEntityFacet.js +25 -1
- package/Types/Telemetry/ResourceEntityFacet.mjs +4 -0
- package/Types/Telemetry/TelemetrySearchQuery.js +14 -2
- package/Types/UserSession/SessionLength.d.mts +88 -0
- package/Types/UserSession/SessionLength.d.ts +88 -0
- package/Types/UserSession/SessionLength.js +413 -0
- package/Types/UserSession/SessionLength.mjs +50 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +7 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +7 -0
- package/Types/Workspace/WorkspaceNoteReaction.d.mts +1 -0
- package/Types/Workspace/WorkspaceNoteReaction.d.ts +1 -0
- package/Types/Workspace/WorkspaceNoteReaction.js +18 -4
- package/Utils/CronScheduleText.d.mts +3 -0
- package/Utils/CronScheduleText.d.ts +3 -0
- package/Utils/CronScheduleText.js +307 -0
- package/Utils/CronScheduleText.mjs +3 -0
- package/Utils/Dashboard/DashboardBoardLayout.d.mts +2 -0
- package/Utils/Dashboard/DashboardBoardLayout.d.ts +2 -0
- package/Utils/Dashboard/DashboardBoardLayout.js +17 -4
- package/Utils/Dashboard/DashboardBoardLayout.mjs +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.mts +114 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +114 -0
- package/Utils/DeveloperDocs/CliCommands.js +750 -0
- package/Utils/DeveloperDocs/CliCommands.mjs +37 -0
- package/Utils/DeveloperDocs/CliExamples.d.mts +59 -0
- package/Utils/DeveloperDocs/CliExamples.d.ts +59 -0
- package/Utils/DeveloperDocs/CliExamples.js +348 -0
- package/Utils/DeveloperDocs/CliExamples.mjs +17 -0
- package/Utils/DeveloperDocs/CliResources.d.mts +18 -0
- package/Utils/DeveloperDocs/CliResources.d.ts +18 -0
- package/Utils/DeveloperDocs/CliResources.js +129 -0
- package/Utils/DeveloperDocs/CliResources.mjs +6 -0
- package/Utils/DeveloperDocs/ClientResourceNames.d.mts +2 -0
- package/Utils/DeveloperDocs/ClientResourceNames.d.ts +2 -0
- package/Utils/DeveloperDocs/ClientResourceNames.js +52 -0
- package/Utils/DeveloperDocs/ClientResourceNames.mjs +3 -0
- package/Utils/DeveloperDocs/ExampleBuilder.d.mts +6 -0
- package/Utils/DeveloperDocs/ExampleBuilder.d.ts +6 -0
- package/Utils/DeveloperDocs/ExampleBuilder.js +60 -6
- package/Utils/DeveloperDocs/ExampleBuilder.mjs +1 -0
- package/Utils/DeveloperDocs/LiveData.d.mts +1 -0
- package/Utils/DeveloperDocs/LiveData.d.ts +1 -0
- package/Utils/DeveloperDocs/PageLookups.d.mts +1 -1
- package/Utils/DeveloperDocs/PageLookups.d.ts +1 -1
- package/Utils/DeveloperDocs/PageLookups.js +9 -2
- package/Utils/DeveloperDocs/PeopleByEmail.d.mts +37 -0
- package/Utils/DeveloperDocs/PeopleByEmail.d.ts +37 -0
- package/Utils/DeveloperDocs/PeopleByEmail.js +244 -0
- package/Utils/DeveloperDocs/PeopleByEmail.mjs +20 -0
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/DeveloperDocs/SetAtCreate.d.mts +3 -0
- package/Utils/DeveloperDocs/SetAtCreate.d.ts +3 -0
- package/Utils/DeveloperDocs/SetAtCreate.js +63 -0
- package/Utils/DeveloperDocs/SetAtCreate.mjs +4 -0
- package/Utils/DeveloperDocs/TerraformSchema.d.mts +8 -0
- package/Utils/DeveloperDocs/TerraformSchema.d.ts +8 -0
- package/Utils/DeveloperDocs/TerraformSchema.js +64 -6
- package/Utils/DeveloperDocs/TerraformSchema.mjs +2 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.js +6 -1
- package/Utils/LookupTable.d.mts +3 -0
- package/Utils/LookupTable.d.ts +3 -0
- package/Utils/LookupTable.js +44 -0
- package/Utils/LookupTable.mjs +4 -0
- package/Utils/Monitor/MonitorCheckScheduleUtil.d.mts +62 -0
- package/Utils/Monitor/MonitorCheckScheduleUtil.d.ts +62 -0
- package/Utils/Monitor/MonitorCheckScheduleUtil.js +484 -0
- package/Utils/Monitor/MonitorCheckScheduleUtil.mjs +3 -0
- package/Utils/Monitor/MonitorOverviewFamily.d.mts +39 -0
- package/Utils/Monitor/MonitorOverviewFamily.d.ts +39 -0
- package/Utils/Monitor/MonitorOverviewFamily.js +207 -0
- package/Utils/Monitor/MonitorOverviewFamily.mjs +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +192 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +192 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +1659 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.mjs +5 -0
- package/Utils/Monitor/MonitorOverviewProbeUtil.d.mts +112 -0
- package/Utils/Monitor/MonitorOverviewProbeUtil.d.ts +112 -0
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +640 -0
- package/Utils/Monitor/MonitorOverviewProbeUtil.mjs +3 -0
- package/Utils/Monitor/MonitorOverviewTargetUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorOverviewTargetUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +27 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +27 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +132 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.mjs +2 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +44 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +44 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +487 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.mjs +2 -0
- package/Utils/NameBreaks.d.mts +1 -1
- package/Utils/NameBreaks.d.ts +1 -1
- package/Utils/NameBreaks.js +14 -8
- package/Utils/OldestKeyMap.d.mts +10 -0
- package/Utils/OldestKeyMap.d.ts +10 -0
- package/Utils/OldestKeyMap.js +91 -0
- package/Utils/OldestKeyMap.mjs +2 -0
- package/Utils/Project/NextNumber.d.mts +4 -3
- package/Utils/Project/NextNumber.d.ts +4 -3
- package/Utils/Project/NextNumber.js +11 -2
- package/Utils/Project/NumberPrefix.d.mts +1 -1
- package/Utils/Project/NumberPrefix.d.ts +1 -1
- package/Utils/Project/NumberPrefix.js +12 -0
- package/Utils/Schema/AnalyticsModelSchema.d.mts +48 -0
- package/Utils/Schema/AnalyticsModelSchema.d.ts +48 -0
- package/Utils/Schema/AnalyticsModelSchema.js +767 -0
- package/Utils/Schema/AnalyticsModelSchema.mjs +2 -0
- package/Utils/Schema/BaseSchema.d.mts +117 -0
- package/Utils/Schema/BaseSchema.d.ts +117 -0
- package/Utils/Schema/BaseSchema.js +257 -0
- package/Utils/Schema/BaseSchema.mjs +3 -0
- package/Utils/Schema/ModelSchema.d.mts +80 -0
- package/Utils/Schema/ModelSchema.d.ts +80 -0
- package/Utils/Schema/ModelSchema.js +1727 -0
- package/Utils/Schema/ModelSchema.mjs +2 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +3 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.d.mts +27 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.d.ts +27 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.js +441 -13
- package/Utils/SecurityCase/SecurityConnectionMatch.mjs +12 -0
- package/Utils/SecurityCase/SecurityTelemetrySearch.d.mts +44 -0
- package/Utils/SecurityCase/SecurityTelemetrySearch.d.ts +44 -0
- package/Utils/SecurityCase/SecurityTelemetrySearch.js +418 -0
- package/Utils/SecurityCase/SecurityTelemetrySearch.mjs +17 -0
- package/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.d.mts +0 -1
- package/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.d.ts +0 -1
- package/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.js +9 -25
- package/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.mjs +0 -1
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +1 -1
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +1 -1
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +7 -6
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +1 -1
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +1 -1
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +10 -9
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +4 -3
- package/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdrNormalizer.js +12 -28
- package/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.d.mts +1 -1
- package/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.d.ts +1 -1
- package/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.js +13 -24
- package/Utils/SecurityEvent/Connectors/MicrosoftSentinelNormalizer.mjs +1 -1
- package/Utils/SecurityEvent/Connectors/OktaNormalizer.d.mts +2 -2
- package/Utils/SecurityEvent/Connectors/OktaNormalizer.d.ts +2 -2
- package/Utils/SecurityEvent/Connectors/OktaNormalizer.js +7 -6
- package/Utils/SecurityEvent/Connectors/SplunkNormalizer.js +7 -26
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +4 -3
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +2 -2
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +2 -2
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +26 -16
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +1 -1
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +1 -1
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +10 -6
- package/Utils/SecurityEvent/SecurityEventNormalizer.js +17 -11
- package/Utils/SecurityEvent/SecurityEventSearch.js +8 -1
- package/Utils/SecurityEvent/Sigma/SigmaRuleSetParser.js +4 -5
- package/Utils/SecurityEvent/ThreatIntel/StixPatternParser.js +7 -3
- package/Utils/SecurityEvent/UdmNormalizer.js +10 -6
- package/Utils/Telemetry/SavedViewDefault.js +4 -3
- package/Utils/Telemetry/SavedViewScope.d.mts +33 -0
- package/Utils/Telemetry/SavedViewScope.d.ts +33 -0
- package/Utils/Telemetry/SavedViewScope.js +105 -0
- package/Utils/Telemetry/SavedViewScope.mjs +7 -0
- package/package.json +1 -11
- package/UI/Utils/TranslateTemplate.d.mts +0 -8
- package/UI/Utils/TranslateTemplate.d.ts +0 -8
|
@@ -0,0 +1,1659 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.MONITOR_LOG_MINIMUM_RETENTION_SECONDS = exports.isMonitorOverviewActionCallToAction = exports.MonitorOverviewRunState = void 0;
|
|
40
|
+
const Date_1 = __importDefault(require("../../Types/Date"));
|
|
41
|
+
const DateLanguage_1 = require("../../Types/DateLanguage");
|
|
42
|
+
const CriteriaFilter_1 = require("../../Types/Monitor/CriteriaFilter");
|
|
43
|
+
const MonitorType_1 = __importDefault(require("../../Types/Monitor/MonitorType"));
|
|
44
|
+
const SloDuration_1 = require("../Slo/SloDuration");
|
|
45
|
+
const Translator_1 = require("../../Types/Translator");
|
|
46
|
+
const MonitorCheckScheduleUtil_1 = __importStar(require("./MonitorCheckScheduleUtil"));
|
|
47
|
+
const MonitorOverviewCriteriaUtil_1 = __importDefault(require("./MonitorOverviewCriteriaUtil"));
|
|
48
|
+
const MonitorOverviewFamily_1 = __importStar(require("./MonitorOverviewFamily"));
|
|
49
|
+
const MonitorStatusHistoryUtil_1 = __importDefault(require("./MonitorStatusHistoryUtil"));
|
|
50
|
+
const ProbeStatusMonitorUtil_1 = __importDefault(require("./ProbeStatusMonitorUtil"));
|
|
51
|
+
const MonitorOverviewTargetUtil_1 = __importDefault(require("./MonitorOverviewTargetUtil"));
|
|
52
|
+
/*
|
|
53
|
+
* The monitor overview's hero, facts, pulse and section switches, decided in
|
|
54
|
+
* one pure function so every per-type and per-state rule is unit-tested
|
|
55
|
+
* without React.
|
|
56
|
+
*
|
|
57
|
+
* The rule it is built around: never claim health that was not measured. A
|
|
58
|
+
* paused monitor, one nobody is checking, one with no criteria and one still
|
|
59
|
+
* waiting for its first result are never shown as Good, and never lead with
|
|
60
|
+
* the stored status name (which only describes the last thing that was
|
|
61
|
+
* recorded). Unknown is never rendered as zero.
|
|
62
|
+
*
|
|
63
|
+
* Every word it writes is in the reader's language: the page hands it the
|
|
64
|
+
* reader's Translator (input.translator), and each sentence is looked up
|
|
65
|
+
* whole, with its values in it ("Expires in {{duration}}"), as the
|
|
66
|
+
* Dashboard's extractor finds it here. Without one it writes English, word
|
|
67
|
+
* for word as it always has. What a monitor's owner named - a probe, a
|
|
68
|
+
* host - goes in as written; a status's name is drawn as StatusBadge draws
|
|
69
|
+
* it, in the reader's words when it is one of OneUptime's own.
|
|
70
|
+
*/
|
|
71
|
+
var MonitorOverviewRunState;
|
|
72
|
+
(function (MonitorOverviewRunState) {
|
|
73
|
+
MonitorOverviewRunState["Manual"] = "Manual";
|
|
74
|
+
MonitorOverviewRunState["Paused"] = "Paused";
|
|
75
|
+
MonitorOverviewRunState["NotChecking"] = "NotChecking";
|
|
76
|
+
MonitorOverviewRunState["NotConfigured"] = "NotConfigured";
|
|
77
|
+
MonitorOverviewRunState["AwaitingFirstData"] = "AwaitingFirstData";
|
|
78
|
+
MonitorOverviewRunState["Overdue"] = "Overdue";
|
|
79
|
+
MonitorOverviewRunState["Running"] = "Running";
|
|
80
|
+
})(MonitorOverviewRunState || (exports.MonitorOverviewRunState = MonitorOverviewRunState = {}));
|
|
81
|
+
// Whether the hero's call to action is done in place (a button).
|
|
82
|
+
const isMonitorOverviewActionCallToAction = (callToAction) => {
|
|
83
|
+
return callToAction.actionKey !== undefined;
|
|
84
|
+
};
|
|
85
|
+
exports.isMonitorOverviewActionCallToAction = isMonitorOverviewActionCallToAction;
|
|
86
|
+
const MAX_FACTS = 4;
|
|
87
|
+
/*
|
|
88
|
+
* ServerMonitor/CheckOnlineStatus judges an agent that has not reported for
|
|
89
|
+
* three minutes, counting from creation when it never has.
|
|
90
|
+
*/
|
|
91
|
+
const AGENT_MISSING_MINUTES = 3;
|
|
92
|
+
const PAUSED_EXPLANATION = {
|
|
93
|
+
archived: (0, Translator_1.translationKey)("No checks run while the monitor is archived, so the status stays at the last one recorded. It opens no incidents or alerts and is hidden from monitor lists and status pages."),
|
|
94
|
+
disabled: (0, Translator_1.translationKey)("No checks run while monitoring is off, so the status stays at the last one recorded."),
|
|
95
|
+
incident: (0, Translator_1.translationKey)("Checks resume when the incident that paused this monitor is resolved."),
|
|
96
|
+
maintenance: (0, Translator_1.translationKey)("Checks resume automatically when the maintenance event ends."),
|
|
97
|
+
};
|
|
98
|
+
const MANUAL_EXPLANATION = (0, Translator_1.translationKey)("Manual monitor: OneUptime runs no checks. The status changes when someone sets it, or when an incident or scheduled maintenance event changes it.");
|
|
99
|
+
/*
|
|
100
|
+
* What an empty evaluation log says once the monitor is older than the
|
|
101
|
+
* log keeps rows (MONITOR_LOG_MINIMUM_RETENTION_SECONDS): not "never".
|
|
102
|
+
*/
|
|
103
|
+
const NOT_EVALUATED_IN_LOG_TEXT = (0, Translator_1.translationKey)("Not evaluated in the last day");
|
|
104
|
+
// English, word for word as the overview always read: no lookup.
|
|
105
|
+
const ENGLISH = (0, Translator_1.createTranslator)(undefined, "en");
|
|
106
|
+
const lowerFirst = (text) => {
|
|
107
|
+
return text ? text.charAt(0).toLowerCase() + text.slice(1) : text;
|
|
108
|
+
};
|
|
109
|
+
const secondsSince = (now, then) => {
|
|
110
|
+
return Math.max(0, Math.floor((now.getTime() - then.getTime()) / 1000));
|
|
111
|
+
};
|
|
112
|
+
const HOUR_MS = 3600 * 1000;
|
|
113
|
+
const DAY_MS = 24 * HOUR_MS;
|
|
114
|
+
const DAY_SECONDS = 24 * 3600;
|
|
115
|
+
/*
|
|
116
|
+
* The evaluation log (MonitorLog) keeps each row for at least
|
|
117
|
+
* MonitorLogUtil.DEFAULT_RETENTION_DAYS, one day, unless an admin has
|
|
118
|
+
* raised GlobalConfig.monitorLogRetentionInDays. So an empty log proves
|
|
119
|
+
* only that nothing was evaluated in the last day and, for a monitor
|
|
120
|
+
* younger than that, that nothing ever was. The copy that says "in the
|
|
121
|
+
* last day" follows this.
|
|
122
|
+
*/
|
|
123
|
+
exports.MONITOR_LOG_MINIMUM_RETENTION_SECONDS = DAY_SECONDS;
|
|
124
|
+
// Hours, or minutes under an hour. Never 0 minutes.
|
|
125
|
+
const underADay = (ms) => {
|
|
126
|
+
const hours = Math.floor(ms / HOUR_MS);
|
|
127
|
+
if (hours >= 1) {
|
|
128
|
+
return { unit: "hour", count: hours };
|
|
129
|
+
}
|
|
130
|
+
return { unit: "minute", count: Math.max(1, Math.floor(ms / 60000)) };
|
|
131
|
+
};
|
|
132
|
+
/*
|
|
133
|
+
* A sentence per unit, so a language puts the count in the case its words
|
|
134
|
+
* take ("vor 2 Tagen", never "vor 2 Tage").
|
|
135
|
+
*/
|
|
136
|
+
const EXPIRED_AGO = {
|
|
137
|
+
minute: {
|
|
138
|
+
one: "Expired {{count}} minute ago",
|
|
139
|
+
other: "Expired {{count}} minutes ago",
|
|
140
|
+
},
|
|
141
|
+
hour: {
|
|
142
|
+
one: "Expired {{count}} hour ago",
|
|
143
|
+
other: "Expired {{count}} hours ago",
|
|
144
|
+
},
|
|
145
|
+
day: {
|
|
146
|
+
one: "Expired {{count}} day ago",
|
|
147
|
+
other: "Expired {{count}} days ago",
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
const EXPIRES_IN = {
|
|
151
|
+
minute: {
|
|
152
|
+
one: "Expires in {{count}} minute",
|
|
153
|
+
other: "Expires in {{count}} minutes",
|
|
154
|
+
},
|
|
155
|
+
hour: {
|
|
156
|
+
one: "Expires in {{count}} hour",
|
|
157
|
+
other: "Expires in {{count}} hours",
|
|
158
|
+
},
|
|
159
|
+
day: { one: "in {{count}} day", other: "in {{count}} days" },
|
|
160
|
+
};
|
|
161
|
+
const describeExpiredAgo = (distance, t) => {
|
|
162
|
+
return t.translatePlural(EXPIRED_AGO[distance.unit], distance.count);
|
|
163
|
+
};
|
|
164
|
+
const describeExpiresIn = (distance, t) => {
|
|
165
|
+
return t.translatePlural(EXPIRES_IN[distance.unit], distance.count);
|
|
166
|
+
};
|
|
167
|
+
/*
|
|
168
|
+
* Calendar days from `earlier` to `later` in the zone dates are printed in.
|
|
169
|
+
* Only called for times at least a day apart, so it is at least 1 (a
|
|
170
|
+
* 25-hour daylight-saving day could otherwise make it 0).
|
|
171
|
+
*/
|
|
172
|
+
const getCalendarDaysBetween = (earlier, later) => {
|
|
173
|
+
const timezone = Date_1.default.getCurrentTimezone();
|
|
174
|
+
const days = Math.round((Date_1.default.getStartOfDay(later, timezone).getTime() -
|
|
175
|
+
Date_1.default.getStartOfDay(earlier, timezone).getTime()) /
|
|
176
|
+
DAY_MS);
|
|
177
|
+
return Math.max(1, days);
|
|
178
|
+
};
|
|
179
|
+
const isFutureOf = (date, now) => {
|
|
180
|
+
return Boolean(date && date.getTime() > now.getTime());
|
|
181
|
+
};
|
|
182
|
+
class MonitorOverviewPresentationUtil {
|
|
183
|
+
static build(input) {
|
|
184
|
+
const context = MonitorOverviewPresentationUtil.getContext(input);
|
|
185
|
+
const hero = MonitorOverviewPresentationUtil.getHero(input, context);
|
|
186
|
+
return Object.assign(Object.assign({ family: context.family, runState: context.runState }, hero), { moreActions: MonitorOverviewPresentationUtil.getMoreActions(context), pulse: MonitorOverviewPresentationUtil.getPulse(input, context), freshness: context.freshness.freshness, isNeverReported: MonitorOverviewPresentationUtil.isNeverReported(context), facts: MonitorOverviewPresentationUtil.getFacts(input, context), target: MonitorOverviewTargetUtil_1.default.getTarget({
|
|
187
|
+
monitorType: input.monitorType,
|
|
188
|
+
monitorSteps: input.monitorSteps,
|
|
189
|
+
serverHostname: input.agent.hostname,
|
|
190
|
+
translator: context.t,
|
|
191
|
+
}), sections: MonitorOverviewPresentationUtil.getSections(context) });
|
|
192
|
+
}
|
|
193
|
+
/*
|
|
194
|
+
* What the hero's More actions (⋯) menu offers. A manual monitor's status
|
|
195
|
+
* is whatever a person sets, so changing it is there - kept behind the
|
|
196
|
+
* menu rather than drawn as the hero's call to action. Every other monitor
|
|
197
|
+
* sets its own status from its checks, and its next check would undo a
|
|
198
|
+
* change made by hand, so it gets no menu (its history is still edited on
|
|
199
|
+
* the Status Timeline page).
|
|
200
|
+
*/
|
|
201
|
+
static getMoreActions(data) {
|
|
202
|
+
return data.runState === MonitorOverviewRunState.Manual
|
|
203
|
+
? ["changeStatus"]
|
|
204
|
+
: [];
|
|
205
|
+
}
|
|
206
|
+
/*
|
|
207
|
+
* First match wins: Manual, Paused, NotChecking (probe checks only),
|
|
208
|
+
* NotConfigured, AwaitingFirstData, Overdue, Running.
|
|
209
|
+
*/
|
|
210
|
+
static getRunState(input) {
|
|
211
|
+
return MonitorOverviewPresentationUtil.getContext(input).runState;
|
|
212
|
+
}
|
|
213
|
+
/*
|
|
214
|
+
* What the uptime tiles must add about time the status timeline counts
|
|
215
|
+
* but nothing measured: its open row keeps the last status while
|
|
216
|
+
* monitoring is paused, while nothing checks, and before the first check
|
|
217
|
+
* completes. A manual monitor has no checks to pause, so it never gets
|
|
218
|
+
* one.
|
|
219
|
+
*/
|
|
220
|
+
static getUptimeCaveat(presentation) {
|
|
221
|
+
if (presentation.family === MonitorOverviewFamily_1.MonitorOverviewFamily.Manual) {
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
switch (presentation.runState) {
|
|
225
|
+
case MonitorOverviewRunState.Paused:
|
|
226
|
+
return "paused";
|
|
227
|
+
case MonitorOverviewRunState.NotChecking:
|
|
228
|
+
case MonitorOverviewRunState.NotConfigured:
|
|
229
|
+
return "not-checking";
|
|
230
|
+
case MonitorOverviewRunState.Overdue:
|
|
231
|
+
return presentation.isNeverReported ? "no-results" : null;
|
|
232
|
+
default:
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
static getStatusTone(status) {
|
|
237
|
+
if (!status) {
|
|
238
|
+
return "neutral";
|
|
239
|
+
}
|
|
240
|
+
// Offline first: a status flagged both ways must never read as good.
|
|
241
|
+
if (status.isOfflineState) {
|
|
242
|
+
return "danger";
|
|
243
|
+
}
|
|
244
|
+
if (status.isOperationalState) {
|
|
245
|
+
return "good";
|
|
246
|
+
}
|
|
247
|
+
return "warning";
|
|
248
|
+
}
|
|
249
|
+
static getExpiryFact(data) {
|
|
250
|
+
const t = data.translator || ENGLISH;
|
|
251
|
+
const label = data.key === "certificate-expiry"
|
|
252
|
+
? t.translateTemplate("Certificate expires")
|
|
253
|
+
: t.translateTemplate("Domain expires");
|
|
254
|
+
// The date in the translator's language too: "21. Okt. 2026".
|
|
255
|
+
const expiresAt = data.expiresAt;
|
|
256
|
+
const secondary = expiresAt
|
|
257
|
+
? (0, DateLanguage_1.withDateDisplayLanguage)(t.language, () => {
|
|
258
|
+
return Date_1.default.getDateAsUserFriendlyLocalFormattedString(expiresAt, true);
|
|
259
|
+
})
|
|
260
|
+
: undefined;
|
|
261
|
+
if (data.isValidCertificate === false) {
|
|
262
|
+
return {
|
|
263
|
+
key: data.key,
|
|
264
|
+
label: label,
|
|
265
|
+
value: t.translateTemplate("Not valid"),
|
|
266
|
+
secondary: secondary,
|
|
267
|
+
tone: "danger",
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
if (!data.expiresAt) {
|
|
271
|
+
return { key: data.key, label: label, value: "—", isMuted: true };
|
|
272
|
+
}
|
|
273
|
+
const msLeft = data.expiresAt.getTime() - data.now.getTime();
|
|
274
|
+
/*
|
|
275
|
+
* Within a day either way, hours say it exactly. Beyond that, days are
|
|
276
|
+
* counted on the calendar of the zone the date below is printed in, so
|
|
277
|
+
* "in 2 days" and the printed date agree: 36 hours from noon is two
|
|
278
|
+
* calendar days away, not the one day a floor would give.
|
|
279
|
+
*/
|
|
280
|
+
if (msLeft < 0) {
|
|
281
|
+
return {
|
|
282
|
+
key: data.key,
|
|
283
|
+
label: label,
|
|
284
|
+
value: -msLeft < DAY_MS
|
|
285
|
+
? describeExpiredAgo(underADay(-msLeft), t)
|
|
286
|
+
: describeExpiredAgo({
|
|
287
|
+
unit: "day",
|
|
288
|
+
count: getCalendarDaysBetween(data.expiresAt, data.now),
|
|
289
|
+
}, t),
|
|
290
|
+
secondary: secondary,
|
|
291
|
+
tone: "danger",
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
if (msLeft < DAY_MS) {
|
|
295
|
+
return {
|
|
296
|
+
key: data.key,
|
|
297
|
+
label: label,
|
|
298
|
+
value: describeExpiresIn(underADay(msLeft), t),
|
|
299
|
+
secondary: secondary,
|
|
300
|
+
tone: "danger",
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
// The tone keeps counting whole days left, as it always has.
|
|
304
|
+
const wholeDays = Math.floor(msLeft / DAY_MS);
|
|
305
|
+
let tone = "neutral";
|
|
306
|
+
if (wholeDays <= 7) {
|
|
307
|
+
tone = "danger";
|
|
308
|
+
}
|
|
309
|
+
else if (wholeDays <= 30) {
|
|
310
|
+
tone = "warning";
|
|
311
|
+
}
|
|
312
|
+
return {
|
|
313
|
+
key: data.key,
|
|
314
|
+
label: label,
|
|
315
|
+
value: describeExpiresIn({
|
|
316
|
+
unit: "day",
|
|
317
|
+
count: getCalendarDaysBetween(data.now, data.expiresAt),
|
|
318
|
+
}, t),
|
|
319
|
+
secondary: secondary,
|
|
320
|
+
tone: tone,
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
static getContext(input) {
|
|
324
|
+
const layout = MonitorOverviewFamily_1.default.getLayout(input.monitorType);
|
|
325
|
+
const family = layout.family;
|
|
326
|
+
const cadenceSeconds = MonitorCheckScheduleUtil_1.default.resolveCadenceSeconds({
|
|
327
|
+
monitoringInterval: input.monitoringInterval,
|
|
328
|
+
from: input.now,
|
|
329
|
+
});
|
|
330
|
+
const t = input.translator || ENGLISH;
|
|
331
|
+
const intervalText = MonitorCheckScheduleUtil_1.default.describeInterval(input.monitoringInterval, t);
|
|
332
|
+
const stepCount = MonitorOverviewCriteriaUtil_1.default.getStepCount(input.monitorSteps);
|
|
333
|
+
const networkDeviceId = MonitorOverviewCriteriaUtil_1.default.getNetworkDeviceId(input.monitorSteps);
|
|
334
|
+
const watchedProbeCount = family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus
|
|
335
|
+
? ProbeStatusMonitorUtil_1.default.getWatchedProbeIds(input.monitorSteps).length
|
|
336
|
+
: 0;
|
|
337
|
+
const isPaused = Boolean(input.pause.isArchived) ||
|
|
338
|
+
input.pause.isDisabled ||
|
|
339
|
+
input.pause.byManualIncident ||
|
|
340
|
+
input.pause.byScheduledMaintenance;
|
|
341
|
+
const isProbeCheck = family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck;
|
|
342
|
+
/*
|
|
343
|
+
* The server keeps these flags on the Monitor row; the probe rows, when
|
|
344
|
+
* they could be read, say the same thing sooner.
|
|
345
|
+
*/
|
|
346
|
+
const isNoProbeEnabled = isProbeCheck &&
|
|
347
|
+
(input.probeFlags.isNoProbeEnabled ||
|
|
348
|
+
(input.probes !== null && input.probes.enabledCount === 0));
|
|
349
|
+
const isAllProbesDisconnected = isProbeCheck &&
|
|
350
|
+
(input.probeFlags.isAllProbesDisconnected ||
|
|
351
|
+
(input.probes !== null &&
|
|
352
|
+
input.probes.enabledCount > 0 &&
|
|
353
|
+
input.probes.disconnectedCount === input.probes.enabledCount));
|
|
354
|
+
const isNotChecking = isNoProbeEnabled || isAllProbesDisconnected;
|
|
355
|
+
const evaluationStatus = MonitorOverviewPresentationUtil.getEvaluationStatus(input);
|
|
356
|
+
const evaluationLog = MonitorOverviewPresentationUtil.readEvaluationLog({
|
|
357
|
+
input: input,
|
|
358
|
+
family: family,
|
|
359
|
+
evaluationStatus: evaluationStatus,
|
|
360
|
+
});
|
|
361
|
+
const isScheduled = !isPaused && !isNotChecking;
|
|
362
|
+
const telemetry = MonitorOverviewPresentationUtil.isTelemetryFamily(family)
|
|
363
|
+
? MonitorOverviewPresentationUtil.getTelemetryTiming({
|
|
364
|
+
input: input,
|
|
365
|
+
evaluationLog: evaluationLog,
|
|
366
|
+
cadenceSeconds: cadenceSeconds,
|
|
367
|
+
isScheduled: isScheduled,
|
|
368
|
+
})
|
|
369
|
+
: null;
|
|
370
|
+
const freshness = telemetry
|
|
371
|
+
? telemetry.freshness
|
|
372
|
+
: MonitorOverviewPresentationUtil.getFreshness({
|
|
373
|
+
input: input,
|
|
374
|
+
family: family,
|
|
375
|
+
cadenceSeconds: cadenceSeconds,
|
|
376
|
+
isScheduled: isScheduled,
|
|
377
|
+
});
|
|
378
|
+
let runState = MonitorOverviewRunState.Running;
|
|
379
|
+
if (family === MonitorOverviewFamily_1.MonitorOverviewFamily.Manual) {
|
|
380
|
+
runState = MonitorOverviewRunState.Manual;
|
|
381
|
+
}
|
|
382
|
+
else if (isPaused) {
|
|
383
|
+
runState = MonitorOverviewRunState.Paused;
|
|
384
|
+
}
|
|
385
|
+
else if (isNotChecking) {
|
|
386
|
+
runState = MonitorOverviewRunState.NotChecking;
|
|
387
|
+
}
|
|
388
|
+
else if (stepCount === 0 ||
|
|
389
|
+
(family === MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice && !networkDeviceId) ||
|
|
390
|
+
// Nothing to evaluate: the server skips a step that watches no probe.
|
|
391
|
+
(family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus && watchedProbeCount === 0)) {
|
|
392
|
+
runState = MonitorOverviewRunState.NotConfigured;
|
|
393
|
+
}
|
|
394
|
+
else if (MonitorOverviewPresentationUtil.isAwaitingFirstData({
|
|
395
|
+
input: input,
|
|
396
|
+
family: family,
|
|
397
|
+
freshness: freshness.freshness,
|
|
398
|
+
evaluationLog: evaluationLog,
|
|
399
|
+
telemetry: telemetry,
|
|
400
|
+
})) {
|
|
401
|
+
runState = MonitorOverviewRunState.AwaitingFirstData;
|
|
402
|
+
}
|
|
403
|
+
else if (freshness.freshness === MonitorCheckScheduleUtil_1.MonitorCheckFreshness.Stale) {
|
|
404
|
+
runState = MonitorOverviewRunState.Overdue;
|
|
405
|
+
}
|
|
406
|
+
return {
|
|
407
|
+
t: t,
|
|
408
|
+
family: family,
|
|
409
|
+
layout: layout,
|
|
410
|
+
cadenceSeconds: cadenceSeconds,
|
|
411
|
+
intervalText: intervalText,
|
|
412
|
+
intervalPhrase: (0, Translator_1.composedValue)((sentence) => {
|
|
413
|
+
return lowerFirst(MonitorCheckScheduleUtil_1.default.describeInterval(input.monitoringInterval, sentence));
|
|
414
|
+
}),
|
|
415
|
+
stepCount: stepCount,
|
|
416
|
+
networkDeviceId: networkDeviceId,
|
|
417
|
+
watchedProbeCount: watchedProbeCount,
|
|
418
|
+
isPaused: isPaused,
|
|
419
|
+
isNoProbeEnabled: isNoProbeEnabled,
|
|
420
|
+
isAllProbesDisconnected: isAllProbesDisconnected,
|
|
421
|
+
isNotChecking: isNotChecking,
|
|
422
|
+
evaluationStatus: evaluationStatus,
|
|
423
|
+
evaluationLog: evaluationLog,
|
|
424
|
+
telemetry: telemetry,
|
|
425
|
+
freshness: freshness,
|
|
426
|
+
runState: runState,
|
|
427
|
+
hasPushVerdict: runState === MonitorOverviewRunState.AwaitingFirstData &&
|
|
428
|
+
MonitorOverviewPresentationUtil.hasPushVerdict({
|
|
429
|
+
input: input,
|
|
430
|
+
family: family,
|
|
431
|
+
}),
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
/*
|
|
435
|
+
* Without an explicit status (callers from before evaluationStatus), a
|
|
436
|
+
* time means the log was read; its absence says nothing.
|
|
437
|
+
*/
|
|
438
|
+
static getEvaluationStatus(input) {
|
|
439
|
+
if (input.evaluationStatus) {
|
|
440
|
+
return input.evaluationStatus;
|
|
441
|
+
}
|
|
442
|
+
return input.latestEvaluationAt ? "loaded" : null;
|
|
443
|
+
}
|
|
444
|
+
static isTelemetryFamily(family) {
|
|
445
|
+
return (family === MonitorOverviewFamily_1.MonitorOverviewFamily.TelemetrySignal ||
|
|
446
|
+
family === MonitorOverviewFamily_1.MonitorOverviewFamily.Infrastructure);
|
|
447
|
+
}
|
|
448
|
+
/*
|
|
449
|
+
* An empty log means "never evaluated" only while it would still hold
|
|
450
|
+
* every evaluation the monitor could have had. Past that, its rows may
|
|
451
|
+
* simply have expired.
|
|
452
|
+
*/
|
|
453
|
+
static readEvaluationLog(data) {
|
|
454
|
+
const input = data.input;
|
|
455
|
+
if (data.evaluationStatus !== "loaded") {
|
|
456
|
+
return "unread";
|
|
457
|
+
}
|
|
458
|
+
if (input.latestEvaluationAt) {
|
|
459
|
+
return "evaluated";
|
|
460
|
+
}
|
|
461
|
+
const isYoungerThanLog = !input.createdAt ||
|
|
462
|
+
input.now.getTime() - input.createdAt.getTime() <
|
|
463
|
+
exports.MONITOR_LOG_MINIMUM_RETENTION_SECONDS * 1000;
|
|
464
|
+
/*
|
|
465
|
+
* The telemetry worker stamps a monitor each time it queues an
|
|
466
|
+
* evaluation, so one it has never stamped has never been evaluated,
|
|
467
|
+
* however old it is.
|
|
468
|
+
*/
|
|
469
|
+
const isNeverQueued = MonitorOverviewPresentationUtil.isTelemetryFamily(data.family) &&
|
|
470
|
+
!input.telemetry.lastScheduledAt &&
|
|
471
|
+
!input.telemetry.lastEvaluatedAt;
|
|
472
|
+
return isYoungerThanLog || isNeverQueued ? "never" : "expired";
|
|
473
|
+
}
|
|
474
|
+
/*
|
|
475
|
+
* With a row in the evaluation log, its time. Without the log, the
|
|
476
|
+
* scheduler's stamp, named for what it is. With a log that is empty only
|
|
477
|
+
* because its rows expired, the log still says nothing was evaluated in
|
|
478
|
+
* the last day: that is overdue when the schedule should have left a row
|
|
479
|
+
* there, and otherwise (a weekly schedule, say) expected, so the stamp is
|
|
480
|
+
* all there is, as without the log.
|
|
481
|
+
*/
|
|
482
|
+
static getTelemetryTiming(data) {
|
|
483
|
+
const input = data.input;
|
|
484
|
+
const scheduledAt = input.telemetry.lastScheduledAt || input.telemetry.lastEvaluatedAt;
|
|
485
|
+
const judge = (lastResultAt, createdAt) => {
|
|
486
|
+
return MonitorCheckScheduleUtil_1.default.getCheckFreshness({
|
|
487
|
+
isScheduled: data.isScheduled,
|
|
488
|
+
isKnown: true,
|
|
489
|
+
lastResultAt: lastResultAt,
|
|
490
|
+
nextCheckAt: input.telemetry.nextEvaluationAt,
|
|
491
|
+
cadenceSeconds: data.cadenceSeconds,
|
|
492
|
+
createdAt: createdAt,
|
|
493
|
+
now: input.now,
|
|
494
|
+
monitoringInterval: input.monitoringInterval,
|
|
495
|
+
});
|
|
496
|
+
};
|
|
497
|
+
const fromScheduler = () => {
|
|
498
|
+
return {
|
|
499
|
+
lastAt: scheduledAt,
|
|
500
|
+
isScheduledTime: true,
|
|
501
|
+
isMissingFromLog: false,
|
|
502
|
+
freshness: judge(scheduledAt, input.createdAt),
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
switch (data.evaluationLog) {
|
|
506
|
+
case "evaluated":
|
|
507
|
+
return {
|
|
508
|
+
lastAt: input.latestEvaluationAt,
|
|
509
|
+
isScheduledTime: false,
|
|
510
|
+
isMissingFromLog: false,
|
|
511
|
+
freshness: judge(input.latestEvaluationAt, input.createdAt),
|
|
512
|
+
};
|
|
513
|
+
case "never":
|
|
514
|
+
return {
|
|
515
|
+
lastAt: undefined,
|
|
516
|
+
isScheduledTime: false,
|
|
517
|
+
isMissingFromLog: false,
|
|
518
|
+
freshness: judge(undefined, input.createdAt),
|
|
519
|
+
};
|
|
520
|
+
case "expired": {
|
|
521
|
+
// The log only reads as expired for a monitor with a creation time.
|
|
522
|
+
const createdAt = input.createdAt || input.now;
|
|
523
|
+
const horizonStart = new Date(Math.max(createdAt.getTime(), input.now.getTime() - exports.MONITOR_LOG_MINIMUM_RETENTION_SECONDS * 1000));
|
|
524
|
+
if (judge(undefined, horizonStart).freshness !==
|
|
525
|
+
MonitorCheckScheduleUtil_1.MonitorCheckFreshness.Stale) {
|
|
526
|
+
return fromScheduler();
|
|
527
|
+
}
|
|
528
|
+
/*
|
|
529
|
+
* How long ago the last evaluation ran, and so how late the next
|
|
530
|
+
* one is, is unknown: the log only says it was before the last day.
|
|
531
|
+
*/
|
|
532
|
+
return {
|
|
533
|
+
lastAt: undefined,
|
|
534
|
+
isScheduledTime: false,
|
|
535
|
+
isMissingFromLog: true,
|
|
536
|
+
freshness: {
|
|
537
|
+
freshness: MonitorCheckScheduleUtil_1.MonitorCheckFreshness.Stale,
|
|
538
|
+
overdueSeconds: null,
|
|
539
|
+
resultAgeSeconds: null,
|
|
540
|
+
},
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
default:
|
|
544
|
+
return fromScheduler();
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
/*
|
|
548
|
+
* A push monitor's missing-signal check counts from creation when nothing
|
|
549
|
+
* has arrived yet, so the server judges it once this window has passed.
|
|
550
|
+
* Null when its criteria have no such check.
|
|
551
|
+
*/
|
|
552
|
+
static getPushMissingMinutes(data) {
|
|
553
|
+
const monitorSteps = data.input.monitorSteps;
|
|
554
|
+
if (data.family === MonitorOverviewFamily_1.MonitorOverviewFamily.Agent) {
|
|
555
|
+
return MonitorOverviewCriteriaUtil_1.default.hasFilterOn({
|
|
556
|
+
monitorSteps: monitorSteps,
|
|
557
|
+
checkOn: CriteriaFilter_1.CheckOn.IsOnline,
|
|
558
|
+
})
|
|
559
|
+
? AGENT_MISSING_MINUTES
|
|
560
|
+
: null;
|
|
561
|
+
}
|
|
562
|
+
if (data.family !== MonitorOverviewFamily_1.MonitorOverviewFamily.Heartbeat) {
|
|
563
|
+
return null;
|
|
564
|
+
}
|
|
565
|
+
return MonitorOverviewCriteriaUtil_1.default.getMissingSignalMinutes({
|
|
566
|
+
monitorSteps: monitorSteps,
|
|
567
|
+
checkOn: data.input.monitorType === MonitorType_1.default.IncomingEmail
|
|
568
|
+
? CriteriaFilter_1.CheckOn.EmailReceivedAt
|
|
569
|
+
: CriteriaFilter_1.CheckOn.IncomingRequest,
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
static hasPushVerdict(data) {
|
|
573
|
+
if (data.family !== MonitorOverviewFamily_1.MonitorOverviewFamily.Heartbeat &&
|
|
574
|
+
data.family !== MonitorOverviewFamily_1.MonitorOverviewFamily.Agent) {
|
|
575
|
+
return false;
|
|
576
|
+
}
|
|
577
|
+
if (MonitorOverviewPresentationUtil.isJudgedStatus(data.input)) {
|
|
578
|
+
return true;
|
|
579
|
+
}
|
|
580
|
+
const minutes = MonitorOverviewPresentationUtil.getPushMissingMinutes(data);
|
|
581
|
+
const createdAt = data.input.createdAt;
|
|
582
|
+
return (minutes !== null &&
|
|
583
|
+
createdAt !== undefined &&
|
|
584
|
+
data.input.now.getTime() - createdAt.getTime() > minutes * 60 * 1000);
|
|
585
|
+
}
|
|
586
|
+
/*
|
|
587
|
+
* A status that is not operational was set by something: for a push
|
|
588
|
+
* monitor that never reported, the server's missing-signal check.
|
|
589
|
+
*/
|
|
590
|
+
static isJudgedStatus(input) {
|
|
591
|
+
const tone = MonitorOverviewPresentationUtil.getStatusTone(input.currentStatus);
|
|
592
|
+
return tone === "danger" || tone === "warning";
|
|
593
|
+
}
|
|
594
|
+
/*
|
|
595
|
+
* Freshness is only judged for the families that run on a schedule we can
|
|
596
|
+
* see: probe checks here, and the worker-evaluated telemetry and
|
|
597
|
+
* infrastructure monitors in getTelemetryTiming. Push-based monitors
|
|
598
|
+
* decide "missing" in their own criteria.
|
|
599
|
+
*/
|
|
600
|
+
static getFreshness(data) {
|
|
601
|
+
var _a, _b, _c;
|
|
602
|
+
const input = data.input;
|
|
603
|
+
if (data.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck) {
|
|
604
|
+
return MonitorCheckScheduleUtil_1.default.getCheckFreshness({
|
|
605
|
+
isScheduled: data.isScheduled,
|
|
606
|
+
isKnown: input.probes !== null,
|
|
607
|
+
lastResultAt: (_a = input.probes) === null || _a === void 0 ? void 0 : _a.lastResultAt,
|
|
608
|
+
/*
|
|
609
|
+
* Behind schedule only when every probe that is checking is: a
|
|
610
|
+
* summary from before latestNextCheckAt existed has only the
|
|
611
|
+
* earliest.
|
|
612
|
+
*/
|
|
613
|
+
nextCheckAt: ((_b = input.probes) === null || _b === void 0 ? void 0 : _b.latestNextCheckAt) || ((_c = input.probes) === null || _c === void 0 ? void 0 : _c.nextCheckAt),
|
|
614
|
+
cadenceSeconds: data.cadenceSeconds,
|
|
615
|
+
createdAt: input.createdAt,
|
|
616
|
+
now: input.now,
|
|
617
|
+
monitoringInterval: input.monitoringInterval,
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
return MonitorCheckScheduleUtil_1.default.getCheckFreshness({
|
|
621
|
+
isScheduled: false,
|
|
622
|
+
isKnown: true,
|
|
623
|
+
lastResultAt: undefined,
|
|
624
|
+
nextCheckAt: undefined,
|
|
625
|
+
cadenceSeconds: data.cadenceSeconds,
|
|
626
|
+
createdAt: input.createdAt,
|
|
627
|
+
now: input.now,
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
static isAwaitingFirstData(data) {
|
|
631
|
+
var _a;
|
|
632
|
+
const input = data.input;
|
|
633
|
+
switch (data.family) {
|
|
634
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck:
|
|
635
|
+
return (input.probes !== null &&
|
|
636
|
+
input.probes.enabledCount > 0 &&
|
|
637
|
+
data.freshness === MonitorCheckScheduleUtil_1.MonitorCheckFreshness.AwaitingFirstResult);
|
|
638
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Heartbeat:
|
|
639
|
+
return input.monitorType === MonitorType_1.default.IncomingEmail
|
|
640
|
+
? !input.email.lastReceivedAt
|
|
641
|
+
: !input.heartbeat.lastReceivedAt;
|
|
642
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Agent:
|
|
643
|
+
return !input.agent.lastReportAt;
|
|
644
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.TelemetrySignal:
|
|
645
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Infrastructure:
|
|
646
|
+
/*
|
|
647
|
+
* Without the evaluation log, the scheduler's stamp is all there
|
|
648
|
+
* is. With it, "waiting" needs a log that says nothing was ever
|
|
649
|
+
* evaluated, and, like a probe check, lasts only while the monitor
|
|
650
|
+
* is young: past that, no evaluation is overdue (6b).
|
|
651
|
+
*/
|
|
652
|
+
if (data.evaluationLog === "unread") {
|
|
653
|
+
return !((_a = data.telemetry) === null || _a === void 0 ? void 0 : _a.lastAt);
|
|
654
|
+
}
|
|
655
|
+
return (data.evaluationLog === "never" &&
|
|
656
|
+
data.freshness === MonitorCheckScheduleUtil_1.MonitorCheckFreshness.AwaitingFirstResult);
|
|
657
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice:
|
|
658
|
+
/*
|
|
659
|
+
* A device is evaluated on its polls and traps, which leave no
|
|
660
|
+
* trace on the monitor row: only an empty log that would still hold
|
|
661
|
+
* every evaluation says none has happened yet. For an older
|
|
662
|
+
* monitor, it says only that none happened in the last day.
|
|
663
|
+
*/
|
|
664
|
+
return data.evaluationLog === "never";
|
|
665
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus:
|
|
666
|
+
// Its evaluations leave a trace only in the log, as a device's do.
|
|
667
|
+
return data.evaluationLog === "never";
|
|
668
|
+
default:
|
|
669
|
+
// Manual monitors are never evaluated.
|
|
670
|
+
return false;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
static getHero(input, context) {
|
|
674
|
+
const t = context.t;
|
|
675
|
+
const status = input.currentStatus;
|
|
676
|
+
const statusTone = MonitorOverviewPresentationUtil.getStatusTone(status);
|
|
677
|
+
/*
|
|
678
|
+
* The status's name as the hero's badge draws it (StatusBadge): one of
|
|
679
|
+
* OneUptime's own names ("Operational") in the reader's words, a name
|
|
680
|
+
* the project gave a status as written.
|
|
681
|
+
*/
|
|
682
|
+
const lastKnownStatus = status
|
|
683
|
+
? t.translateTemplate("Last recorded status: {{status}}", {
|
|
684
|
+
status: (0, Translator_1.translatableTerm)(status.name),
|
|
685
|
+
})
|
|
686
|
+
: undefined;
|
|
687
|
+
/*
|
|
688
|
+
* The badge and headline for the states that lead with the status: the
|
|
689
|
+
* name itself, which the hero draws as its badge does.
|
|
690
|
+
*/
|
|
691
|
+
const statusBadge = status
|
|
692
|
+
? {
|
|
693
|
+
text: status.name,
|
|
694
|
+
tone: statusTone,
|
|
695
|
+
statusColor: MonitorStatusHistoryUtil_1.default.normalizeColor(status.color),
|
|
696
|
+
}
|
|
697
|
+
: { text: t.translateTemplate("Unknown status"), tone: "neutral" };
|
|
698
|
+
const statusHeadline = status
|
|
699
|
+
? { text: status.name, since: input.statusSince }
|
|
700
|
+
: { text: t.translateTemplate("No status recorded yet") };
|
|
701
|
+
switch (context.runState) {
|
|
702
|
+
/*
|
|
703
|
+
* No call to action: changing the status is in the hero's More actions
|
|
704
|
+
* (⋯) menu, beside Refresh (getMoreActions).
|
|
705
|
+
*/
|
|
706
|
+
case MonitorOverviewRunState.Manual:
|
|
707
|
+
return {
|
|
708
|
+
tone: statusTone,
|
|
709
|
+
badge: statusBadge,
|
|
710
|
+
secondaryBadges: [
|
|
711
|
+
{ text: t.translateTemplate("Manual"), tone: "neutral" },
|
|
712
|
+
],
|
|
713
|
+
headline: statusHeadline,
|
|
714
|
+
explanation: t.translateTemplate(MANUAL_EXPLANATION),
|
|
715
|
+
};
|
|
716
|
+
case MonitorOverviewRunState.Paused: {
|
|
717
|
+
const secondaryBadges = [];
|
|
718
|
+
/*
|
|
719
|
+
* Pausing does not fix a probe problem, and the problem is still
|
|
720
|
+
* there when monitoring resumes, so it stays visible.
|
|
721
|
+
*/
|
|
722
|
+
if (context.isNoProbeEnabled) {
|
|
723
|
+
secondaryBadges.push({
|
|
724
|
+
text: t.translateTemplate("Probes Not Enabled"),
|
|
725
|
+
tone: "danger",
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
else if (context.isAllProbesDisconnected) {
|
|
729
|
+
secondaryBadges.push({
|
|
730
|
+
text: t.translateTemplate("Probes Disconnected"),
|
|
731
|
+
tone: "danger",
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
/*
|
|
735
|
+
* Archived before Disabled: it is the reason that also explains why
|
|
736
|
+
* the monitor is missing from the lists, and unarchiving is the step
|
|
737
|
+
* that brings it back (a disabled monitor then still needs enabling).
|
|
738
|
+
*/
|
|
739
|
+
if (input.pause.isArchived) {
|
|
740
|
+
return {
|
|
741
|
+
tone: "neutral",
|
|
742
|
+
badge: { text: t.translateTemplate("Archived"), tone: "neutral" },
|
|
743
|
+
secondaryBadges: secondaryBadges,
|
|
744
|
+
headline: {
|
|
745
|
+
text: t.translateTemplate("Monitoring is off because it is archived"),
|
|
746
|
+
},
|
|
747
|
+
explanation: t.translateTemplate(PAUSED_EXPLANATION.archived),
|
|
748
|
+
lastKnownStatus: lastKnownStatus,
|
|
749
|
+
callToAction: {
|
|
750
|
+
text: t.translateTemplate("Open settings"),
|
|
751
|
+
linkKey: "settings",
|
|
752
|
+
},
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
/*
|
|
756
|
+
* Someone turned monitoring off: the hero turns it back on in place,
|
|
757
|
+
* where it used to send the reader to Settings to find the switch.
|
|
758
|
+
*/
|
|
759
|
+
if (input.pause.isDisabled) {
|
|
760
|
+
return {
|
|
761
|
+
tone: "neutral",
|
|
762
|
+
badge: { text: t.translateTemplate("Disabled"), tone: "neutral" },
|
|
763
|
+
secondaryBadges: secondaryBadges,
|
|
764
|
+
headline: { text: t.translateTemplate("Monitoring is turned off") },
|
|
765
|
+
explanation: t.translateTemplate(PAUSED_EXPLANATION.disabled),
|
|
766
|
+
lastKnownStatus: lastKnownStatus,
|
|
767
|
+
callToAction: {
|
|
768
|
+
text: t.translateTemplate("Turn monitoring on"),
|
|
769
|
+
actionKey: "turnMonitoringOn",
|
|
770
|
+
},
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
if (input.pause.byManualIncident) {
|
|
774
|
+
return {
|
|
775
|
+
tone: "neutral",
|
|
776
|
+
badge: { text: t.translateTemplate("Paused"), tone: "neutral" },
|
|
777
|
+
secondaryBadges: secondaryBadges,
|
|
778
|
+
headline: {
|
|
779
|
+
text: t.translateTemplate("Monitoring is paused by an incident"),
|
|
780
|
+
},
|
|
781
|
+
explanation: t.translateTemplate(PAUSED_EXPLANATION.incident),
|
|
782
|
+
lastKnownStatus: lastKnownStatus,
|
|
783
|
+
callToAction: {
|
|
784
|
+
text: t.translateTemplate("View incidents"),
|
|
785
|
+
linkKey: "incidents",
|
|
786
|
+
},
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
return {
|
|
790
|
+
tone: "neutral",
|
|
791
|
+
badge: { text: t.translateTemplate("Paused"), tone: "neutral" },
|
|
792
|
+
secondaryBadges: secondaryBadges,
|
|
793
|
+
headline: {
|
|
794
|
+
text: t.translateTemplate("Monitoring is paused for scheduled maintenance"),
|
|
795
|
+
},
|
|
796
|
+
explanation: t.translateTemplate(PAUSED_EXPLANATION.maintenance),
|
|
797
|
+
lastKnownStatus: lastKnownStatus,
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
case MonitorOverviewRunState.NotChecking:
|
|
801
|
+
return MonitorOverviewPresentationUtil.getNotCheckingHero({
|
|
802
|
+
input: input,
|
|
803
|
+
context: context,
|
|
804
|
+
lastKnownStatus: lastKnownStatus,
|
|
805
|
+
});
|
|
806
|
+
case MonitorOverviewRunState.NotConfigured: {
|
|
807
|
+
const isMissingDevice = context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice &&
|
|
808
|
+
context.stepCount > 0;
|
|
809
|
+
if (context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus &&
|
|
810
|
+
context.stepCount > 0) {
|
|
811
|
+
return {
|
|
812
|
+
tone: "neutral",
|
|
813
|
+
badge: { text: t.translateTemplate("Not set up"), tone: "neutral" },
|
|
814
|
+
secondaryBadges: [],
|
|
815
|
+
headline: {
|
|
816
|
+
text: t.translateTemplate("This monitor watches no probes"),
|
|
817
|
+
},
|
|
818
|
+
explanation: t.translateTemplate("Pick the probes it watches. It opens an incident when one of them disconnects."),
|
|
819
|
+
callToAction: {
|
|
820
|
+
text: t.translateTemplate("Pick probes"),
|
|
821
|
+
linkKey: "criteria",
|
|
822
|
+
},
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
return {
|
|
826
|
+
tone: "neutral",
|
|
827
|
+
badge: { text: t.translateTemplate("Not set up"), tone: "neutral" },
|
|
828
|
+
secondaryBadges: [],
|
|
829
|
+
headline: {
|
|
830
|
+
text: isMissingDevice
|
|
831
|
+
? t.translateTemplate("No network device is selected")
|
|
832
|
+
: t.translateTemplate("This monitor has no criteria yet"),
|
|
833
|
+
},
|
|
834
|
+
explanation: isMissingDevice
|
|
835
|
+
? t.translateTemplate("Choose the device this monitor alerts on.")
|
|
836
|
+
: t.translateTemplate("Add criteria to tell this monitor what to check."),
|
|
837
|
+
callToAction: {
|
|
838
|
+
text: isMissingDevice
|
|
839
|
+
? t.translateTemplate("Choose a device")
|
|
840
|
+
: t.translateTemplate("Set up criteria"),
|
|
841
|
+
linkKey: "criteria",
|
|
842
|
+
},
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
case MonitorOverviewRunState.AwaitingFirstData:
|
|
846
|
+
return MonitorOverviewPresentationUtil.getAwaitingHero({
|
|
847
|
+
input: input,
|
|
848
|
+
context: context,
|
|
849
|
+
lastKnownStatus: lastKnownStatus,
|
|
850
|
+
});
|
|
851
|
+
case MonitorOverviewRunState.Overdue: {
|
|
852
|
+
const isProbeCheck = context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck;
|
|
853
|
+
/*
|
|
854
|
+
* Nothing has ever been measured (6b), so the stored status is only
|
|
855
|
+
* the default the monitor was created with: it is not the headline,
|
|
856
|
+
* and it has not "held" for any length of time.
|
|
857
|
+
*/
|
|
858
|
+
const isNeverReported = MonitorOverviewPresentationUtil.isNeverReported(context);
|
|
859
|
+
return {
|
|
860
|
+
// A late check cannot vouch for "good"; danger stays danger.
|
|
861
|
+
tone: statusTone === "danger" ? "danger" : "warning",
|
|
862
|
+
badge: isNeverReported
|
|
863
|
+
? { text: t.translateTemplate("No results yet"), tone: "warning" }
|
|
864
|
+
: statusBadge,
|
|
865
|
+
secondaryBadges: [
|
|
866
|
+
{ text: t.translateTemplate("Checks overdue"), tone: "warning" },
|
|
867
|
+
],
|
|
868
|
+
headline: isNeverReported
|
|
869
|
+
? {
|
|
870
|
+
text: isProbeCheck
|
|
871
|
+
? t.translateTemplate("No check has completed yet")
|
|
872
|
+
: t.translateTemplate("No evaluation has completed yet"),
|
|
873
|
+
}
|
|
874
|
+
: statusHeadline,
|
|
875
|
+
explanation: MonitorOverviewPresentationUtil.getOverdueExplanation({
|
|
876
|
+
input: input,
|
|
877
|
+
context: context,
|
|
878
|
+
}),
|
|
879
|
+
lastKnownStatus: isNeverReported ? lastKnownStatus : undefined,
|
|
880
|
+
callToAction: isProbeCheck
|
|
881
|
+
? { text: t.translateTemplate("Check probes"), linkKey: "probes" }
|
|
882
|
+
: undefined,
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
default: {
|
|
886
|
+
const running = {
|
|
887
|
+
tone: statusTone,
|
|
888
|
+
badge: statusBadge,
|
|
889
|
+
secondaryBadges: [],
|
|
890
|
+
headline: statusHeadline,
|
|
891
|
+
};
|
|
892
|
+
/*
|
|
893
|
+
* A device's polling interval is not known here, so a quiet log is
|
|
894
|
+
* not called overdue, but the status is not presented as fresh
|
|
895
|
+
* either.
|
|
896
|
+
*/
|
|
897
|
+
if (context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice &&
|
|
898
|
+
context.evaluationLog === "expired") {
|
|
899
|
+
running.explanation = t.translateTemplate("No poll or trap from this device has been evaluated in the last day, so the status shown is the last one recorded.");
|
|
900
|
+
}
|
|
901
|
+
/*
|
|
902
|
+
* Evaluated every minute, so a day with nothing in the log means
|
|
903
|
+
* there was nothing to evaluate: every probe it watches was deleted.
|
|
904
|
+
*/
|
|
905
|
+
if (context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus &&
|
|
906
|
+
context.evaluationLog === "expired") {
|
|
907
|
+
running.explanation = t.translateTemplate("Not evaluated in the last day. The probes this monitor watches may have been deleted: pick probes again under Criteria. The status shown is the last one recorded.");
|
|
908
|
+
running.callToAction = {
|
|
909
|
+
text: t.translateTemplate("Pick probes"),
|
|
910
|
+
linkKey: "criteria",
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
return running;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
static getNotCheckingHero(data) {
|
|
918
|
+
const t = data.context.t;
|
|
919
|
+
const probes = data.input.probes;
|
|
920
|
+
if (!data.context.isNoProbeEnabled) {
|
|
921
|
+
return {
|
|
922
|
+
tone: "danger",
|
|
923
|
+
badge: {
|
|
924
|
+
text: t.translateTemplate("Probes Disconnected"),
|
|
925
|
+
tone: "danger",
|
|
926
|
+
},
|
|
927
|
+
secondaryBadges: [],
|
|
928
|
+
headline: {
|
|
929
|
+
text: t.translateTemplate("Every probe checking this monitor is disconnected"),
|
|
930
|
+
},
|
|
931
|
+
explanation: t.translateTemplate("Checks stopped when the probes lost their connection. The status shown is the last one recorded."),
|
|
932
|
+
lastKnownStatus: data.lastKnownStatus,
|
|
933
|
+
callToAction: {
|
|
934
|
+
text: t.translateTemplate("Check probes"),
|
|
935
|
+
linkKey: "probes",
|
|
936
|
+
},
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
const badge = {
|
|
940
|
+
text: t.translateTemplate("Probes Not Enabled"),
|
|
941
|
+
tone: "danger",
|
|
942
|
+
};
|
|
943
|
+
const manageProbes = {
|
|
944
|
+
text: t.translateTemplate("Manage probes"),
|
|
945
|
+
linkKey: "probes",
|
|
946
|
+
};
|
|
947
|
+
// Unknown probes must never be described as "no probes attached".
|
|
948
|
+
if (probes === null) {
|
|
949
|
+
return {
|
|
950
|
+
tone: "danger",
|
|
951
|
+
badge: badge,
|
|
952
|
+
secondaryBadges: [],
|
|
953
|
+
headline: {
|
|
954
|
+
text: t.translateTemplate("Nothing is checking this monitor"),
|
|
955
|
+
},
|
|
956
|
+
explanation: t.translateTemplate("No probe is enabled for this monitor, so no checks run."),
|
|
957
|
+
lastKnownStatus: data.lastKnownStatus,
|
|
958
|
+
callToAction: manageProbes,
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
if (probes.attachedCount === 0) {
|
|
962
|
+
return {
|
|
963
|
+
tone: "danger",
|
|
964
|
+
badge: badge,
|
|
965
|
+
secondaryBadges: [],
|
|
966
|
+
headline: {
|
|
967
|
+
text: t.translateTemplate("No probes are attached to this monitor"),
|
|
968
|
+
},
|
|
969
|
+
explanation: t.translateTemplate("Add a probe to start checking this resource."),
|
|
970
|
+
lastKnownStatus: data.lastKnownStatus,
|
|
971
|
+
callToAction: {
|
|
972
|
+
text: t.translateTemplate("Add a probe"),
|
|
973
|
+
linkKey: "probes",
|
|
974
|
+
},
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
return {
|
|
978
|
+
tone: "danger",
|
|
979
|
+
badge: badge,
|
|
980
|
+
secondaryBadges: [],
|
|
981
|
+
headline: {
|
|
982
|
+
text: t.translateTemplate("Every probe is turned off for this monitor"),
|
|
983
|
+
},
|
|
984
|
+
explanation: t.translatePlural({
|
|
985
|
+
one: "{{count}} probe is attached but switched off, so nothing is checking this resource.",
|
|
986
|
+
other: "{{count}} probes are attached but switched off, so nothing is checking this resource.",
|
|
987
|
+
}, probes.attachedCount),
|
|
988
|
+
lastKnownStatus: data.lastKnownStatus,
|
|
989
|
+
callToAction: manageProbes,
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
static getAwaitingHero(data) {
|
|
993
|
+
var _a;
|
|
994
|
+
const input = data.input;
|
|
995
|
+
const context = data.context;
|
|
996
|
+
const t = context.t;
|
|
997
|
+
let headline = t.translateTemplate("Waiting for the first evaluation");
|
|
998
|
+
let explanation = t.translateTemplate("This monitor is evaluated {{interval}} once saved.", { interval: context.intervalPhrase });
|
|
999
|
+
let hasSetup = false;
|
|
1000
|
+
/*
|
|
1001
|
+
* What has never arrived, for a push monitor the server has judged: the
|
|
1002
|
+
* whole sentence, with how long ago the monitor was created in it.
|
|
1003
|
+
*/
|
|
1004
|
+
let missingSince = null;
|
|
1005
|
+
if (context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck) {
|
|
1006
|
+
const enabledCount = ((_a = input.probes) === null || _a === void 0 ? void 0 : _a.enabledCount) || 0;
|
|
1007
|
+
headline = t.translateTemplate("Waiting for the first check");
|
|
1008
|
+
explanation = t.translatePlural({
|
|
1009
|
+
one: "{{count}} probe checks this {{interval}}. The first result usually arrives within a few minutes.",
|
|
1010
|
+
other: "{{count}} probes check this {{interval}}. The first result usually arrives within a few minutes.",
|
|
1011
|
+
}, enabledCount, { interval: context.intervalPhrase });
|
|
1012
|
+
}
|
|
1013
|
+
else if (context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice) {
|
|
1014
|
+
headline = t.translateTemplate("Waiting for the first poll");
|
|
1015
|
+
explanation = t.translateTemplate("No poll or trap from this device has been evaluated yet. Check that a probe is assigned to poll it.");
|
|
1016
|
+
}
|
|
1017
|
+
else if (context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus) {
|
|
1018
|
+
explanation = t.translateTemplate("This monitor checks the probes it watches every minute. The first result arrives within a minute or two.");
|
|
1019
|
+
}
|
|
1020
|
+
else if (input.monitorType === MonitorType_1.default.IncomingRequest) {
|
|
1021
|
+
headline = t.translateTemplate("Waiting for the first heartbeat");
|
|
1022
|
+
explanation = t.translateTemplate("Send a GET or POST request to this monitor's heartbeat URL to start tracking it.");
|
|
1023
|
+
hasSetup = true;
|
|
1024
|
+
missingSince = (0, Translator_1.translationKey)("No heartbeat has arrived since this monitor was created {{duration}} ago");
|
|
1025
|
+
}
|
|
1026
|
+
else if (input.monitorType === MonitorType_1.default.IncomingEmail) {
|
|
1027
|
+
headline = t.translateTemplate("Waiting for the first email");
|
|
1028
|
+
explanation = t.translateTemplate("Send an email to this monitor's address to start tracking it.");
|
|
1029
|
+
hasSetup = true;
|
|
1030
|
+
missingSince = (0, Translator_1.translationKey)("No email has arrived since this monitor was created {{duration}} ago");
|
|
1031
|
+
}
|
|
1032
|
+
else if (context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.Agent) {
|
|
1033
|
+
headline = t.translateTemplate("Waiting for the agent to report");
|
|
1034
|
+
explanation = t.translateTemplate("Install the server agent to start sending reports.");
|
|
1035
|
+
hasSetup = true;
|
|
1036
|
+
missingSince = (0, Translator_1.translationKey)("The agent has not reported since this monitor was created {{duration}} ago");
|
|
1037
|
+
}
|
|
1038
|
+
const callToAction = hasSetup
|
|
1039
|
+
? {
|
|
1040
|
+
text: t.translateTemplate("Setup instructions"),
|
|
1041
|
+
linkKey: "documentation",
|
|
1042
|
+
}
|
|
1043
|
+
: undefined;
|
|
1044
|
+
const status = input.currentStatus;
|
|
1045
|
+
/*
|
|
1046
|
+
* The server judges a push monitor that never reported as if its last
|
|
1047
|
+
* signal arrived at creation, so it can be Offline, with an incident
|
|
1048
|
+
* open, while the page is still "waiting". Lead with that verdict's
|
|
1049
|
+
* tone and keep the setup steps: sending the first signal is still the
|
|
1050
|
+
* fix.
|
|
1051
|
+
*/
|
|
1052
|
+
if (missingSince !== null &&
|
|
1053
|
+
status &&
|
|
1054
|
+
MonitorOverviewPresentationUtil.isJudgedStatus(input)) {
|
|
1055
|
+
const statusTone = MonitorOverviewPresentationUtil.getStatusTone(status);
|
|
1056
|
+
return {
|
|
1057
|
+
tone: statusTone,
|
|
1058
|
+
badge: { text: t.translateTemplate("Waiting for data"), tone: "info" },
|
|
1059
|
+
secondaryBadges: [{ text: status.name, tone: statusTone }],
|
|
1060
|
+
headline: {
|
|
1061
|
+
text: input.createdAt
|
|
1062
|
+
? t.translateTemplate(missingSince, {
|
|
1063
|
+
duration: (0, SloDuration_1.formatDurationCompactInLanguage)(secondsSince(input.now, input.createdAt), t.language),
|
|
1064
|
+
})
|
|
1065
|
+
: headline,
|
|
1066
|
+
},
|
|
1067
|
+
explanation: explanation,
|
|
1068
|
+
callToAction: callToAction,
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
return {
|
|
1072
|
+
tone: "info",
|
|
1073
|
+
badge: { text: t.translateTemplate("Waiting for data"), tone: "info" },
|
|
1074
|
+
secondaryBadges: [],
|
|
1075
|
+
headline: { text: headline },
|
|
1076
|
+
explanation: explanation,
|
|
1077
|
+
lastKnownStatus: data.lastKnownStatus,
|
|
1078
|
+
callToAction: callToAction,
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
static isNeverReported(context) {
|
|
1082
|
+
var _a;
|
|
1083
|
+
return (context.runState === MonitorOverviewRunState.Overdue &&
|
|
1084
|
+
context.freshness.resultAgeSeconds === null &&
|
|
1085
|
+
!((_a = context.telemetry) === null || _a === void 0 ? void 0 : _a.isMissingFromLog));
|
|
1086
|
+
}
|
|
1087
|
+
/*
|
|
1088
|
+
* "No result for 12m" states how long it has been since the last result -
|
|
1089
|
+
* the same age the pulse's "Last checked" shows - so the two never
|
|
1090
|
+
* disagree. The pulse's "Overdue by" line carries how late that is.
|
|
1091
|
+
*/
|
|
1092
|
+
static getOverdueExplanation(data) {
|
|
1093
|
+
var _a;
|
|
1094
|
+
const input = data.input;
|
|
1095
|
+
const context = data.context;
|
|
1096
|
+
const t = context.t;
|
|
1097
|
+
const isProbeCheck = context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck;
|
|
1098
|
+
const resultAgeSeconds = context.freshness.resultAgeSeconds;
|
|
1099
|
+
if ((_a = context.telemetry) === null || _a === void 0 ? void 0 : _a.isMissingFromLog) {
|
|
1100
|
+
return t.translateTemplate("No evaluation recorded in the last day, but this monitor is evaluated {{interval}}.", { interval: context.intervalPhrase });
|
|
1101
|
+
}
|
|
1102
|
+
if (resultAgeSeconds === null) {
|
|
1103
|
+
const createdAgo = (0, SloDuration_1.formatDurationCompactInLanguage)(input.createdAt
|
|
1104
|
+
? secondsSince(input.now, input.createdAt)
|
|
1105
|
+
: context.freshness.overdueSeconds || 0, t.language);
|
|
1106
|
+
return isProbeCheck
|
|
1107
|
+
? t.translateTemplate("No check result has arrived since this monitor was created {{duration}} ago.", { duration: createdAgo })
|
|
1108
|
+
: t.translateTemplate("No evaluation has run since this monitor was created {{duration}} ago.", { duration: createdAgo });
|
|
1109
|
+
}
|
|
1110
|
+
const age = (0, SloDuration_1.formatDurationCompactInLanguage)(resultAgeSeconds, t.language);
|
|
1111
|
+
return isProbeCheck
|
|
1112
|
+
? t.translateTemplate("No result for {{duration}}, but this monitor checks {{interval}}. A probe may be overloaded or offline.", { duration: age, interval: context.intervalPhrase })
|
|
1113
|
+
: t.translateTemplate("No evaluation for {{duration}}, but this monitor is evaluated {{interval}}.", { duration: age, interval: context.intervalPhrase });
|
|
1114
|
+
}
|
|
1115
|
+
static getPulse(input, context) {
|
|
1116
|
+
var _a, _b, _c, _d;
|
|
1117
|
+
const t = context.t;
|
|
1118
|
+
const isScheduled = context.runState !== MonitorOverviewRunState.Paused &&
|
|
1119
|
+
context.runState !== MonitorOverviewRunState.NotChecking &&
|
|
1120
|
+
context.runState !== MonitorOverviewRunState.NotConfigured;
|
|
1121
|
+
const overdueSeconds = context.runState === MonitorOverviewRunState.Overdue &&
|
|
1122
|
+
context.freshness.overdueSeconds !== null
|
|
1123
|
+
? context.freshness.overdueSeconds
|
|
1124
|
+
: undefined;
|
|
1125
|
+
switch (context.family) {
|
|
1126
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck: {
|
|
1127
|
+
const nextAt = (_a = input.probes) === null || _a === void 0 ? void 0 : _a.nextCheckAt;
|
|
1128
|
+
return {
|
|
1129
|
+
label: t.translateTemplate("Last checked"),
|
|
1130
|
+
at: (_b = input.probes) === null || _b === void 0 ? void 0 : _b.lastResultAt,
|
|
1131
|
+
emptyText: t.translateTemplate("Not checked yet"),
|
|
1132
|
+
// A paused or unchecked monitor has no cadence to promise.
|
|
1133
|
+
cadenceText: isScheduled ? context.intervalText : undefined,
|
|
1134
|
+
nextAt: isScheduled && isFutureOf(nextAt, input.now) ? nextAt : undefined,
|
|
1135
|
+
overdueSeconds: overdueSeconds,
|
|
1136
|
+
isUnavailable: input.probes === null,
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Heartbeat: {
|
|
1140
|
+
const isEmail = input.monitorType === MonitorType_1.default.IncomingEmail;
|
|
1141
|
+
/*
|
|
1142
|
+
* No cadence line: the missing-request check time is already the
|
|
1143
|
+
* "Last missing-request check" fact, and a push-based monitor has no
|
|
1144
|
+
* schedule of its own to promise.
|
|
1145
|
+
*/
|
|
1146
|
+
return {
|
|
1147
|
+
label: isEmail
|
|
1148
|
+
? t.translateTemplate("Last email")
|
|
1149
|
+
: t.translateTemplate("Last request"),
|
|
1150
|
+
at: isEmail
|
|
1151
|
+
? input.email.lastReceivedAt
|
|
1152
|
+
: input.heartbeat.lastReceivedAt,
|
|
1153
|
+
emptyText: isEmail
|
|
1154
|
+
? t.translateTemplate("No email yet")
|
|
1155
|
+
: t.translateTemplate("No request yet"),
|
|
1156
|
+
isUnavailable: false,
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Agent:
|
|
1160
|
+
return {
|
|
1161
|
+
label: t.translateTemplate("Last report"),
|
|
1162
|
+
at: input.agent.lastReportAt,
|
|
1163
|
+
emptyText: t.translateTemplate("No report yet"),
|
|
1164
|
+
isUnavailable: false,
|
|
1165
|
+
};
|
|
1166
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.TelemetrySignal:
|
|
1167
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Infrastructure: {
|
|
1168
|
+
const nextAt = input.telemetry.nextEvaluationAt;
|
|
1169
|
+
/*
|
|
1170
|
+
* Without a time from the evaluation log, the only time is the
|
|
1171
|
+
* worker's stamp, which it writes when it queues an evaluation: it
|
|
1172
|
+
* is named for what it is.
|
|
1173
|
+
*/
|
|
1174
|
+
const isScheduledTime = Boolean((_c = context.telemetry) === null || _c === void 0 ? void 0 : _c.isScheduledTime);
|
|
1175
|
+
let emptyText = t.translateTemplate("Not evaluated yet");
|
|
1176
|
+
if (isScheduledTime) {
|
|
1177
|
+
emptyText = t.translateTemplate("Not scheduled yet");
|
|
1178
|
+
}
|
|
1179
|
+
else if (context.evaluationLog === "expired") {
|
|
1180
|
+
emptyText = t.translateTemplate(NOT_EVALUATED_IN_LOG_TEXT);
|
|
1181
|
+
}
|
|
1182
|
+
return {
|
|
1183
|
+
label: isScheduledTime
|
|
1184
|
+
? t.translateTemplate("Last scheduled")
|
|
1185
|
+
: t.translateTemplate("Last evaluated"),
|
|
1186
|
+
at: (_d = context.telemetry) === null || _d === void 0 ? void 0 : _d.lastAt,
|
|
1187
|
+
emptyText: emptyText,
|
|
1188
|
+
cadenceText: isScheduled ? context.intervalText : undefined,
|
|
1189
|
+
nextAt: isScheduled && isFutureOf(nextAt, input.now) ? nextAt : undefined,
|
|
1190
|
+
overdueSeconds: overdueSeconds,
|
|
1191
|
+
isUnavailable: false,
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice: {
|
|
1195
|
+
let emptyText = t.translateTemplate("Not evaluated yet");
|
|
1196
|
+
if (context.evaluationStatus === "loading") {
|
|
1197
|
+
emptyText = t.translateTemplate("Loading…");
|
|
1198
|
+
}
|
|
1199
|
+
else if (context.evaluationLog === "expired") {
|
|
1200
|
+
emptyText = t.translateTemplate(NOT_EVALUATED_IN_LOG_TEXT);
|
|
1201
|
+
}
|
|
1202
|
+
// The time only comes from the evaluation log, so it follows its read.
|
|
1203
|
+
return {
|
|
1204
|
+
label: t.translateTemplate("Last evaluated"),
|
|
1205
|
+
at: context.evaluationStatus === "loaded"
|
|
1206
|
+
? input.latestEvaluationAt
|
|
1207
|
+
: undefined,
|
|
1208
|
+
emptyText: emptyText,
|
|
1209
|
+
isUnavailable: context.evaluationStatus === "error" ||
|
|
1210
|
+
context.evaluationStatus === "forbidden",
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus: {
|
|
1214
|
+
let emptyText = t.translateTemplate("Not evaluated yet");
|
|
1215
|
+
if (context.evaluationStatus === "loading") {
|
|
1216
|
+
emptyText = t.translateTemplate("Loading…");
|
|
1217
|
+
}
|
|
1218
|
+
else if (context.evaluationLog === "expired") {
|
|
1219
|
+
emptyText = t.translateTemplate(NOT_EVALUATED_IN_LOG_TEXT);
|
|
1220
|
+
}
|
|
1221
|
+
// Evaluated by the server every minute: that is its schedule.
|
|
1222
|
+
return {
|
|
1223
|
+
label: t.translateTemplate("Last evaluated"),
|
|
1224
|
+
at: context.evaluationStatus === "loaded"
|
|
1225
|
+
? input.latestEvaluationAt
|
|
1226
|
+
: undefined,
|
|
1227
|
+
emptyText: emptyText,
|
|
1228
|
+
cadenceText: isScheduled
|
|
1229
|
+
? t.translateTemplate("Every minute")
|
|
1230
|
+
: undefined,
|
|
1231
|
+
isUnavailable: context.evaluationStatus === "error" ||
|
|
1232
|
+
context.evaluationStatus === "forbidden",
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
default:
|
|
1236
|
+
return {
|
|
1237
|
+
label: null,
|
|
1238
|
+
emptyText: t.translateTemplate("No automated checks"),
|
|
1239
|
+
isUnavailable: false,
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
static getFacts(input, context) {
|
|
1244
|
+
var _a, _b, _c;
|
|
1245
|
+
const t = context.t;
|
|
1246
|
+
const facts = [];
|
|
1247
|
+
switch (context.family) {
|
|
1248
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck:
|
|
1249
|
+
facts.push(MonitorOverviewPresentationUtil.getLatestResultFact(input, context));
|
|
1250
|
+
if (input.monitorType === MonitorType_1.default.SSLCertificate) {
|
|
1251
|
+
facts.push(input.probes === null
|
|
1252
|
+
? {
|
|
1253
|
+
key: "certificate-expiry",
|
|
1254
|
+
label: t.translateTemplate("Certificate expires"),
|
|
1255
|
+
value: t.translateTemplate("Unavailable"),
|
|
1256
|
+
isMuted: true,
|
|
1257
|
+
}
|
|
1258
|
+
: MonitorOverviewPresentationUtil.getExpiryFact({
|
|
1259
|
+
key: "certificate-expiry",
|
|
1260
|
+
expiresAt: (_a = input.probes.latestResult) === null || _a === void 0 ? void 0 : _a.sslExpiresAt,
|
|
1261
|
+
isValidCertificate: (_b = input.probes.latestResult) === null || _b === void 0 ? void 0 : _b.isValidCertificate,
|
|
1262
|
+
now: input.now,
|
|
1263
|
+
translator: t,
|
|
1264
|
+
}));
|
|
1265
|
+
}
|
|
1266
|
+
if (input.monitorType === MonitorType_1.default.Domain) {
|
|
1267
|
+
facts.push(input.probes === null
|
|
1268
|
+
? {
|
|
1269
|
+
key: "domain-expiry",
|
|
1270
|
+
label: t.translateTemplate("Domain expires"),
|
|
1271
|
+
value: t.translateTemplate("Unavailable"),
|
|
1272
|
+
isMuted: true,
|
|
1273
|
+
}
|
|
1274
|
+
: MonitorOverviewPresentationUtil.getExpiryFact({
|
|
1275
|
+
key: "domain-expiry",
|
|
1276
|
+
expiresAt: (_c = input.probes.latestResult) === null || _c === void 0 ? void 0 : _c.domainExpiresAt,
|
|
1277
|
+
now: input.now,
|
|
1278
|
+
translator: t,
|
|
1279
|
+
}));
|
|
1280
|
+
}
|
|
1281
|
+
facts.push(MonitorOverviewPresentationUtil.getProbesFact(input, context));
|
|
1282
|
+
break;
|
|
1283
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Heartbeat: {
|
|
1284
|
+
const isEmail = input.monitorType === MonitorType_1.default.IncomingEmail;
|
|
1285
|
+
const minutes = MonitorOverviewCriteriaUtil_1.default.getMissingSignalMinutes({
|
|
1286
|
+
monitorSteps: input.monitorSteps,
|
|
1287
|
+
checkOn: isEmail
|
|
1288
|
+
? CriteriaFilter_1.CheckOn.EmailReceivedAt
|
|
1289
|
+
: CriteriaFilter_1.CheckOn.IncomingRequest,
|
|
1290
|
+
});
|
|
1291
|
+
const lastCheckedAt = isEmail
|
|
1292
|
+
? input.email.lastCheckedAt
|
|
1293
|
+
: input.heartbeat.lastCheckedAt;
|
|
1294
|
+
const windowLabel = isEmail
|
|
1295
|
+
? t.translateTemplate("Missing-email window")
|
|
1296
|
+
: t.translateTemplate("Missing-request window");
|
|
1297
|
+
const checkLabel = isEmail
|
|
1298
|
+
? t.translateTemplate("Last missing-email check")
|
|
1299
|
+
: t.translateTemplate("Last missing-request check");
|
|
1300
|
+
facts.push(minutes === null
|
|
1301
|
+
? {
|
|
1302
|
+
key: "missing-window",
|
|
1303
|
+
label: windowLabel,
|
|
1304
|
+
value: t.translateTemplate("Set in Criteria"),
|
|
1305
|
+
linkKey: "criteria",
|
|
1306
|
+
}
|
|
1307
|
+
: {
|
|
1308
|
+
key: "missing-window",
|
|
1309
|
+
label: windowLabel,
|
|
1310
|
+
value: t.translatePlural({ one: "{{count}} minute", other: "{{count}} minutes" }, minutes),
|
|
1311
|
+
secondary: t.translateTemplate("From this monitor's criteria"),
|
|
1312
|
+
});
|
|
1313
|
+
facts.push(lastCheckedAt
|
|
1314
|
+
? {
|
|
1315
|
+
key: "heartbeat-check",
|
|
1316
|
+
label: checkLabel,
|
|
1317
|
+
value: "",
|
|
1318
|
+
valueDate: lastCheckedAt,
|
|
1319
|
+
}
|
|
1320
|
+
: {
|
|
1321
|
+
key: "heartbeat-check",
|
|
1322
|
+
label: checkLabel,
|
|
1323
|
+
value: t.translateTemplate("Not run yet"),
|
|
1324
|
+
isMuted: true,
|
|
1325
|
+
});
|
|
1326
|
+
break;
|
|
1327
|
+
}
|
|
1328
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Agent: {
|
|
1329
|
+
const hostname = (input.agent.hostname || "").trim();
|
|
1330
|
+
facts.push(hostname
|
|
1331
|
+
? {
|
|
1332
|
+
key: "host",
|
|
1333
|
+
label: t.translateTemplate("Host"),
|
|
1334
|
+
value: hostname,
|
|
1335
|
+
isMono: true,
|
|
1336
|
+
}
|
|
1337
|
+
: {
|
|
1338
|
+
key: "host",
|
|
1339
|
+
label: t.translateTemplate("Host"),
|
|
1340
|
+
value: t.translateTemplate("Not reported yet"),
|
|
1341
|
+
isMuted: true,
|
|
1342
|
+
});
|
|
1343
|
+
facts.push(MonitorOverviewPresentationUtil.getPercentFact({
|
|
1344
|
+
key: "cpu",
|
|
1345
|
+
label: t.translateTemplate("CPU"),
|
|
1346
|
+
percent: input.agent.cpuPercent,
|
|
1347
|
+
}));
|
|
1348
|
+
facts.push(MonitorOverviewPresentationUtil.getPercentFact({
|
|
1349
|
+
key: "memory",
|
|
1350
|
+
label: t.translateTemplate("Memory"),
|
|
1351
|
+
percent: input.agent.memoryPercent,
|
|
1352
|
+
}));
|
|
1353
|
+
break;
|
|
1354
|
+
}
|
|
1355
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.TelemetrySignal:
|
|
1356
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Infrastructure:
|
|
1357
|
+
facts.push({
|
|
1358
|
+
key: "evaluates",
|
|
1359
|
+
label: t.translateTemplate("Evaluates"),
|
|
1360
|
+
value: context.intervalText,
|
|
1361
|
+
});
|
|
1362
|
+
facts.push({
|
|
1363
|
+
key: "criteria",
|
|
1364
|
+
label: t.translateTemplate("Criteria"),
|
|
1365
|
+
value: t.translatePlural({ one: "{{count}} step", other: "{{count}} steps" }, context.stepCount),
|
|
1366
|
+
linkKey: "criteria",
|
|
1367
|
+
});
|
|
1368
|
+
break;
|
|
1369
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice:
|
|
1370
|
+
facts.push(context.networkDeviceId
|
|
1371
|
+
? {
|
|
1372
|
+
key: "device",
|
|
1373
|
+
label: t.translateTemplate("Device"),
|
|
1374
|
+
value: t.translateTemplate("View device"),
|
|
1375
|
+
linkKey: "networkDevice",
|
|
1376
|
+
linkId: context.networkDeviceId,
|
|
1377
|
+
}
|
|
1378
|
+
: {
|
|
1379
|
+
key: "device",
|
|
1380
|
+
label: t.translateTemplate("Device"),
|
|
1381
|
+
value: t.translateTemplate("Not selected"),
|
|
1382
|
+
isMuted: true,
|
|
1383
|
+
});
|
|
1384
|
+
facts.push({
|
|
1385
|
+
key: "evaluated",
|
|
1386
|
+
label: t.translateTemplate("Evaluated"),
|
|
1387
|
+
value: t.translateTemplate("On every poll and matching trap"),
|
|
1388
|
+
});
|
|
1389
|
+
break;
|
|
1390
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus: {
|
|
1391
|
+
/*
|
|
1392
|
+
* Which probe is down comes first, as a probe check's latest result
|
|
1393
|
+
* does. No "Evaluates" fact: the pulse above already says "Every
|
|
1394
|
+
* minute". A monitor watching no probe has no result to give.
|
|
1395
|
+
*/
|
|
1396
|
+
if (context.watchedProbeCount > 0) {
|
|
1397
|
+
facts.push(MonitorOverviewPresentationUtil.getProbeStatusResultFact(input, context));
|
|
1398
|
+
}
|
|
1399
|
+
facts.push(context.watchedProbeCount > 0
|
|
1400
|
+
? {
|
|
1401
|
+
key: "probes",
|
|
1402
|
+
label: t.translateTemplate("Watches"),
|
|
1403
|
+
value: t.translatePlural({ one: "{{count}} probe", other: "{{count}} probes" }, context.watchedProbeCount),
|
|
1404
|
+
linkKey: "criteria",
|
|
1405
|
+
}
|
|
1406
|
+
: {
|
|
1407
|
+
key: "probes",
|
|
1408
|
+
label: t.translateTemplate("Watches"),
|
|
1409
|
+
value: t.translateTemplate("No probes picked"),
|
|
1410
|
+
isMuted: true,
|
|
1411
|
+
linkKey: "criteria",
|
|
1412
|
+
});
|
|
1413
|
+
break;
|
|
1414
|
+
}
|
|
1415
|
+
default:
|
|
1416
|
+
facts.push({
|
|
1417
|
+
key: "checks",
|
|
1418
|
+
label: t.translateTemplate("Checks"),
|
|
1419
|
+
value: t.translateTemplate("None"),
|
|
1420
|
+
secondary: t.translateTemplate("Status is set by hand or by incidents"),
|
|
1421
|
+
});
|
|
1422
|
+
break;
|
|
1423
|
+
}
|
|
1424
|
+
/*
|
|
1425
|
+
* Owners always close the band; the component renders them from the
|
|
1426
|
+
* owners section, so the value here is empty.
|
|
1427
|
+
*/
|
|
1428
|
+
return [
|
|
1429
|
+
...facts.slice(0, MAX_FACTS - 1),
|
|
1430
|
+
{ key: "owners", label: t.translateTemplate("Owners"), value: "" },
|
|
1431
|
+
];
|
|
1432
|
+
}
|
|
1433
|
+
/*
|
|
1434
|
+
* A Probe Status monitor's newest evaluation, in the hero: which of its
|
|
1435
|
+
* probes are disconnected, by name, or that they all are connected. It
|
|
1436
|
+
* reads the same log row as the pulse's "Last evaluated", so the two
|
|
1437
|
+
* never describe different evaluations.
|
|
1438
|
+
*/
|
|
1439
|
+
static getProbeStatusResultFact(input, context) {
|
|
1440
|
+
const t = context.t;
|
|
1441
|
+
const base = {
|
|
1442
|
+
key: "latest-result",
|
|
1443
|
+
label: t.translateTemplate("Latest result"),
|
|
1444
|
+
};
|
|
1445
|
+
if (context.evaluationStatus === "error" ||
|
|
1446
|
+
context.evaluationStatus === "forbidden") {
|
|
1447
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("Unavailable"), isMuted: true });
|
|
1448
|
+
}
|
|
1449
|
+
if (context.evaluationStatus === "loading") {
|
|
1450
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("Loading…"), isMuted: true });
|
|
1451
|
+
}
|
|
1452
|
+
const result = input.probeStatus;
|
|
1453
|
+
if (!result) {
|
|
1454
|
+
return Object.assign(Object.assign({}, base), { value: "—", secondary: context.evaluationLog === "expired"
|
|
1455
|
+
? t.translateTemplate("None in the last day")
|
|
1456
|
+
: t.translateTemplate("No results yet"), isMuted: true });
|
|
1457
|
+
}
|
|
1458
|
+
const probes = Array.isArray(result.probes)
|
|
1459
|
+
? result.probes
|
|
1460
|
+
: [];
|
|
1461
|
+
const connected = result.connectedProbeCount || 0;
|
|
1462
|
+
const disconnected = result.disconnectedProbeCount || 0;
|
|
1463
|
+
const total = connected + disconnected;
|
|
1464
|
+
// Every probe it watches was deleted: nothing was counted.
|
|
1465
|
+
if (total === 0) {
|
|
1466
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("No probes found"), secondary: t.translateTemplate("Pick probes again"), tone: "warning" });
|
|
1467
|
+
}
|
|
1468
|
+
// The probes' names go in as their owners named them.
|
|
1469
|
+
if (disconnected > 0) {
|
|
1470
|
+
return Object.assign(Object.assign({}, base), { value: total === 1
|
|
1471
|
+
? t.translateTemplate("Disconnected")
|
|
1472
|
+
: t.translateTemplate("{{disconnected}} of {{total}} disconnected", {
|
|
1473
|
+
disconnected: disconnected,
|
|
1474
|
+
total: total,
|
|
1475
|
+
}), secondary: ProbeStatusMonitorUtil_1.default.joinProbeNames(ProbeStatusMonitorUtil_1.default.getDisconnectedProbes({ probes: probes })), tone: "danger" });
|
|
1476
|
+
}
|
|
1477
|
+
return Object.assign(Object.assign({}, base), { value: total === 1
|
|
1478
|
+
? t.translateTemplate("Connected")
|
|
1479
|
+
: t.translateTemplate("{{connected}} of {{total}} connected", {
|
|
1480
|
+
connected: total,
|
|
1481
|
+
total: total,
|
|
1482
|
+
}),
|
|
1483
|
+
// One probe is named; several connected need no list.
|
|
1484
|
+
secondary: total === 1 ? ProbeStatusMonitorUtil_1.default.joinProbeNames(probes) : undefined, tone: "good" });
|
|
1485
|
+
}
|
|
1486
|
+
static getLatestResultFact(input, context) {
|
|
1487
|
+
const t = context.t;
|
|
1488
|
+
const base = {
|
|
1489
|
+
key: "latest-result",
|
|
1490
|
+
label: t.translateTemplate("Latest result"),
|
|
1491
|
+
};
|
|
1492
|
+
if (input.probes === null) {
|
|
1493
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("Unavailable"), isMuted: true });
|
|
1494
|
+
}
|
|
1495
|
+
const result = input.probes.latestResult;
|
|
1496
|
+
if (!result) {
|
|
1497
|
+
return Object.assign(Object.assign({}, base), { value: "—", secondary: t.translateTemplate("No results yet"), isMuted: true });
|
|
1498
|
+
}
|
|
1499
|
+
const isScripted = input.monitorType === MonitorType_1.default.SyntheticMonitor ||
|
|
1500
|
+
input.monitorType === MonitorType_1.default.CustomJavaScriptCode;
|
|
1501
|
+
const upCount = input.probes.upCount || 0;
|
|
1502
|
+
const downCount = input.probes.downCount || 0;
|
|
1503
|
+
/*
|
|
1504
|
+
* When the probes disagree, the newest single result is just whichever
|
|
1505
|
+
* probe reported last, and would flip between Up and Down from one poll
|
|
1506
|
+
* to the next. Say they disagree instead.
|
|
1507
|
+
*/
|
|
1508
|
+
if (upCount > 0 && downCount > 0) {
|
|
1509
|
+
return Object.assign(Object.assign({}, base), { value: isScripted
|
|
1510
|
+
? t.translateTemplate("Mixed · {{up}} passed, {{down}} failed", {
|
|
1511
|
+
up: upCount,
|
|
1512
|
+
down: downCount,
|
|
1513
|
+
})
|
|
1514
|
+
: t.translateTemplate("Mixed · {{up}} up, {{down}} down", {
|
|
1515
|
+
up: upCount,
|
|
1516
|
+
down: downCount,
|
|
1517
|
+
}), tone: "warning" });
|
|
1518
|
+
}
|
|
1519
|
+
/*
|
|
1520
|
+
* The verdict in the reader's words, then the figures every language
|
|
1521
|
+
* writes alike: "Up · 120 ms · HTTP 200".
|
|
1522
|
+
*/
|
|
1523
|
+
let value = t.translateTemplate("Reported");
|
|
1524
|
+
let tone = "neutral";
|
|
1525
|
+
if (result.isOnline === true) {
|
|
1526
|
+
value = isScripted
|
|
1527
|
+
? t.translateTemplate("Passed")
|
|
1528
|
+
: t.translateTemplate("Up");
|
|
1529
|
+
tone = "good";
|
|
1530
|
+
}
|
|
1531
|
+
else if (result.isOnline === false) {
|
|
1532
|
+
value = isScripted
|
|
1533
|
+
? t.translateTemplate("Failed")
|
|
1534
|
+
: t.translateTemplate("Down");
|
|
1535
|
+
tone = "danger";
|
|
1536
|
+
}
|
|
1537
|
+
if (result.responseTimeInMs !== undefined) {
|
|
1538
|
+
value += ` · ${Math.round(result.responseTimeInMs)} ms`;
|
|
1539
|
+
}
|
|
1540
|
+
if (result.responseCode !== undefined &&
|
|
1541
|
+
(input.monitorType === MonitorType_1.default.API ||
|
|
1542
|
+
input.monitorType === MonitorType_1.default.Website)) {
|
|
1543
|
+
value += ` · HTTP ${result.responseCode}`;
|
|
1544
|
+
}
|
|
1545
|
+
// A failure cause is the probe's own message, as it wrote it.
|
|
1546
|
+
return Object.assign(Object.assign({}, base), { value: value, secondary: result.isOnline === false && result.failureCause
|
|
1547
|
+
? result.failureCause
|
|
1548
|
+
: t.translateTemplate("from {{probe}}", { probe: result.probeName }), tone: tone });
|
|
1549
|
+
}
|
|
1550
|
+
static getProbesFact(input, context) {
|
|
1551
|
+
const t = context.t;
|
|
1552
|
+
const base = {
|
|
1553
|
+
key: "probes",
|
|
1554
|
+
label: t.translateTemplate("Probes"),
|
|
1555
|
+
linkKey: "probes",
|
|
1556
|
+
};
|
|
1557
|
+
if (input.probes === null) {
|
|
1558
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("Unavailable"), isMuted: true });
|
|
1559
|
+
}
|
|
1560
|
+
const probes = input.probes;
|
|
1561
|
+
const downCount = probes.downCount || 0;
|
|
1562
|
+
// Each part is a phrase of its own, so the " · " between them is no word.
|
|
1563
|
+
const connectionParts = [];
|
|
1564
|
+
if (probes.disabledCount > 0) {
|
|
1565
|
+
connectionParts.push(t.translateTemplate("{{count}} disabled", {
|
|
1566
|
+
count: probes.disabledCount,
|
|
1567
|
+
}));
|
|
1568
|
+
}
|
|
1569
|
+
if (probes.disconnectedCount > 0) {
|
|
1570
|
+
connectionParts.push(t.translateTemplate("{{count}} disconnected", {
|
|
1571
|
+
count: probes.disconnectedCount,
|
|
1572
|
+
}));
|
|
1573
|
+
}
|
|
1574
|
+
const joinParts = (parts) => {
|
|
1575
|
+
return parts.length > 0 ? parts.join(" · ") : undefined;
|
|
1576
|
+
};
|
|
1577
|
+
if (probes.enabledCount === 0) {
|
|
1578
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("None enabled"), secondary: joinParts(connectionParts), tone: "danger" });
|
|
1579
|
+
}
|
|
1580
|
+
/*
|
|
1581
|
+
* No probe is meant to report while monitoring is paused, so a
|
|
1582
|
+
* reporting ratio would read as a probe fault that does not exist.
|
|
1583
|
+
*/
|
|
1584
|
+
if (context.isPaused) {
|
|
1585
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("{{count}} enabled", {
|
|
1586
|
+
count: probes.enabledCount,
|
|
1587
|
+
}), secondary: joinParts([
|
|
1588
|
+
t.translateTemplate("Checks paused"),
|
|
1589
|
+
...connectionParts,
|
|
1590
|
+
]), tone: "neutral" });
|
|
1591
|
+
}
|
|
1592
|
+
let tone = "neutral";
|
|
1593
|
+
if (probes.reportingCount === 0 || downCount >= probes.reportingCount) {
|
|
1594
|
+
// Nothing reporting, or every probe that reports sees it down.
|
|
1595
|
+
tone = "danger";
|
|
1596
|
+
}
|
|
1597
|
+
else if (downCount > 0 || probes.reportingCount < probes.enabledCount) {
|
|
1598
|
+
tone = "warning";
|
|
1599
|
+
}
|
|
1600
|
+
const isScripted = input.monitorType === MonitorType_1.default.SyntheticMonitor ||
|
|
1601
|
+
input.monitorType === MonitorType_1.default.CustomJavaScriptCode;
|
|
1602
|
+
// A probe that reports Down is reporting, but it is not fine.
|
|
1603
|
+
const downPart = isScripted
|
|
1604
|
+
? t.translateTemplate("{{count}} failing", { count: downCount })
|
|
1605
|
+
: t.translateTemplate("{{count}} down", { count: downCount });
|
|
1606
|
+
return Object.assign(Object.assign({}, base), { value: t.translateTemplate("{{reporting}} of {{enabled}} reporting", {
|
|
1607
|
+
reporting: probes.reportingCount,
|
|
1608
|
+
enabled: probes.enabledCount,
|
|
1609
|
+
}), secondary: joinParts(downCount > 0 ? [downPart, ...connectionParts] : connectionParts), tone: tone });
|
|
1610
|
+
}
|
|
1611
|
+
static getPercentFact(data) {
|
|
1612
|
+
if (data.percent === undefined || !Number.isFinite(data.percent)) {
|
|
1613
|
+
return { key: data.key, label: data.label, value: "—", isMuted: true };
|
|
1614
|
+
}
|
|
1615
|
+
return {
|
|
1616
|
+
key: data.key,
|
|
1617
|
+
label: data.label,
|
|
1618
|
+
value: `${Math.round(data.percent)}%`,
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
static getSections(context) {
|
|
1622
|
+
const isAwaiting = context.runState === MonitorOverviewRunState.AwaitingFirstData;
|
|
1623
|
+
const layout = context.layout;
|
|
1624
|
+
const isPushFamily = context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.Heartbeat ||
|
|
1625
|
+
context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.Agent;
|
|
1626
|
+
return {
|
|
1627
|
+
/*
|
|
1628
|
+
* Bars for a monitor that has never reported would all be "No data",
|
|
1629
|
+
* unless the server has already judged it: then its history (and what
|
|
1630
|
+
* is open now) is the point.
|
|
1631
|
+
*/
|
|
1632
|
+
showUptime: !isAwaiting || context.hasPushVerdict,
|
|
1633
|
+
setup: isAwaiting ? layout.setupKind : null,
|
|
1634
|
+
connection: isAwaiting ? null : layout.setupKind,
|
|
1635
|
+
summary: {
|
|
1636
|
+
isShown: layout.summaryDescription !== null &&
|
|
1637
|
+
!(isAwaiting && isPushFamily) &&
|
|
1638
|
+
/*
|
|
1639
|
+
* A Probe Status monitor that watches no probe has nothing to
|
|
1640
|
+
* summarise: an older evaluation would list probes it no longer
|
|
1641
|
+
* watches. Before its first evaluation the hero already says
|
|
1642
|
+
* when one comes, so an empty card would only say it again.
|
|
1643
|
+
*/
|
|
1644
|
+
!(context.family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus &&
|
|
1645
|
+
(context.runState === MonitorOverviewRunState.NotConfigured ||
|
|
1646
|
+
isAwaiting)),
|
|
1647
|
+
description: layout.summaryDescription
|
|
1648
|
+
? context.t.translateTemplate(layout.summaryDescription)
|
|
1649
|
+
: "",
|
|
1650
|
+
},
|
|
1651
|
+
// The connection card only makes sense once something has connected.
|
|
1652
|
+
sideCard: layout.sideCard === "connection" && isAwaiting ? null : layout.sideCard,
|
|
1653
|
+
responseTimeMetric: isAwaiting ? null : layout.responseTimeMetric,
|
|
1654
|
+
telemetryPreview: context.stepCount > 0 ? layout.telemetryPreview : null,
|
|
1655
|
+
stepCount: context.stepCount,
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
exports.default = MonitorOverviewPresentationUtil;
|