@oneuptime/common 14.2.0 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/CloudCost.js +15 -4
- package/Models/AnalyticsModels/NetworkTrafficUsage.js +11 -2
- package/Models/AnalyticsModels/RumProductAnalyticsSession.d.mts +1 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.d.ts +1 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.js +28 -4
- package/Models/AnalyticsModels/RumProductAnalyticsSession.mjs +1 -0
- package/Models/AnalyticsModels/RumSession.js +21 -3
- package/Models/AnalyticsModels/RumSessionChunk.js +10 -1
- package/Models/DatabaseModels/Alert.js +1 -1
- package/Models/DatabaseModels/AlertEpisode.js +1 -1
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.js +1 -1
- package/Models/DatabaseModels/AlertMeasurement.d.mts +1 -0
- package/Models/DatabaseModels/AlertMeasurement.d.ts +1 -0
- package/Models/DatabaseModels/AlertMeasurement.js +30 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.js +1 -1
- package/Models/DatabaseModels/DataAssetOwnerTeam.js +1 -1
- package/Models/DatabaseModels/DataAssetOwnerUser.js +1 -1
- package/Models/DatabaseModels/DataIssueReport.js +1 -1
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +3 -1
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +3 -1
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +3 -1
- package/Models/DatabaseModels/Incident.js +1 -1
- package/Models/DatabaseModels/IncidentEpisode.js +1 -1
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.js +1 -1
- package/Models/DatabaseModels/IncidentMeasurement.d.mts +1 -0
- package/Models/DatabaseModels/IncidentMeasurement.d.ts +1 -0
- package/Models/DatabaseModels/IncidentMeasurement.js +30 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.js +1 -1
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.js +1 -1
- package/Models/DatabaseModels/IncomingRequestSecret.d.mts +15 -0
- package/Models/DatabaseModels/IncomingRequestSecret.d.ts +15 -0
- package/Models/DatabaseModels/IncomingRequestSecret.js +299 -0
- package/Models/DatabaseModels/IncomingRequestSecret.mjs +2 -0
- package/Models/DatabaseModels/Index.js +4 -0
- package/Models/DatabaseModels/LlmObservabilityConnection.js +1 -1
- package/Models/DatabaseModels/LlmProvider.js +2 -2
- package/Models/DatabaseModels/Monitor.d.mts +4 -0
- package/Models/DatabaseModels/Monitor.d.ts +4 -0
- package/Models/DatabaseModels/Monitor.js +105 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.js +7 -0
- package/Models/DatabaseModels/OwnerNotificationDelivery.d.mts +20 -0
- package/Models/DatabaseModels/OwnerNotificationDelivery.d.ts +20 -0
- package/Models/DatabaseModels/OwnerNotificationDelivery.js +382 -0
- package/Models/DatabaseModels/OwnerNotificationDelivery.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +1 -0
- package/Models/DatabaseModels/Project.d.ts +1 -0
- package/Models/DatabaseModels/Project.js +48 -4
- package/Models/DatabaseModels/RumSessionErasureRequest.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.d.mts +1 -0
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.d.ts +1 -0
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +30 -0
- package/Models/DatabaseModels/SecurityEntityRisk.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjective.d.mts +10 -0
- package/Models/DatabaseModels/ServiceLevelObjective.d.ts +10 -0
- package/Models/DatabaseModels/ServiceLevelObjective.js +317 -2
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +2 -2
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +2 -2
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.js +1 -1
- package/Server/Services/DatabaseService.d.mts +2 -0
- package/Server/Services/DatabaseService.d.ts +2 -0
- package/Types/AI/AIActionWords.d.mts +3 -0
- package/Types/AI/AIActionWords.d.ts +3 -0
- package/Types/AI/AIActionWords.js +33 -10
- package/Types/AI/AIAgentRunLimits.js +1 -1
- package/Types/AI/AIChatChartCalendar.d.mts +5 -0
- package/Types/AI/AIChatChartCalendar.d.ts +5 -0
- package/Types/AI/AIChatChartCalendar.js +66 -0
- package/Types/AI/AIChatChartCalendar.mjs +4 -0
- package/Types/AI/AIChatRecordSeen.js +11 -2
- package/Types/AI/AIChatTypes.d.mts +1 -0
- package/Types/AI/AIChatTypes.d.ts +1 -0
- package/Types/AI/AIReadTableWords.d.mts +223 -0
- package/Types/AI/AIReadTableWords.d.ts +223 -0
- package/Types/AI/AIReadTableWords.js +553 -1
- package/Types/AI/AIReadTableWords.mjs +20 -0
- package/Types/AI/AIResourceContext.js +1 -1
- package/Types/AI/AiContext.js +13 -4
- package/Types/AI/AiRunRefusal.js +4 -4
- package/Types/AI/ProjectAiDailyLimits.js +1 -1
- package/Types/AI/TelemetryAi.js +2 -2
- package/Types/API/HTTPResponse.d.mts +1 -0
- package/Types/API/HTTPResponse.d.ts +1 -0
- package/Types/API/HTTPResponse.js +30 -12
- package/Types/API/HTTPResponse.mjs +1 -0
- package/Types/API/URL.js +4 -1
- package/Types/Analytics/ActivationMilestone.js +30 -29
- package/Types/Analytics/ChecklistProgress.js +3 -1
- package/Types/Analytics/ProductEvent.js +1 -1
- package/Types/AuditLog/AuditLogCoverage.js +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +10 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +10 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +115 -28
- package/Types/AuditLog/AuditLogSessionEvent.mjs +4 -0
- package/Types/AuditLog/Export/AuditLogExportRecord.js +1 -1
- package/Types/AutoRemediation/AiRemediationCommandPlan.js +54 -18
- package/Types/AutoRemediation/AiRemediationGitOps.js +28 -5
- package/Types/AutoRemediation/RemediationRound.js +2 -2
- package/Types/AutoRemediation/RemediationTrackRecord.js +17 -6
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +6 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +6 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.js +24 -2
- package/Types/CallAndSMS/ServerTwilioEnvironment.js +5 -2
- package/Types/CallAndSMS/TwilioConfigWrite.js +1 -1
- package/Types/Cloud/CloudKeyMetrics.js +1 -1
- package/Types/Cloud/CloudLogGroups.js +18 -10
- package/Types/Cloud/CloudMonitoredResource.js +3 -1
- package/Types/Cloud/CloudResourceCatalog.js +1 -1
- package/Types/Cloud/CloudResourceHealth.js +7 -3
- package/Types/Cloud/CloudResourceIndex.js +1 -1
- package/Types/Cloud/CloudRightSizing.js +33 -11
- package/Types/CloudConnection/CloudAiAgentKey.js +1 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +62 -41
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +9 -4
- package/Types/CloudConnection/CloudStream.js +14 -4
- package/Types/CloudConnection/CloudStreamTemplate.js +40 -12
- package/Types/CodeRepository/CodeFileSeen.js +51 -22
- package/Types/ComposedWords.d.mts +11 -0
- package/Types/ComposedWords.d.ts +11 -0
- package/Types/ComposedWords.js +55 -0
- package/Types/ComposedWords.mjs +4 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +1 -1
- package/Types/CustomDomain/DnsRecordCheckWords.js +4 -1
- package/Types/CustomField/CustomFieldSavedViews.js +17 -5
- package/Types/CustomField/CustomFieldTemplateMerge.js +5 -2
- package/Types/CustomField/CustomFieldValueMapping.js +3 -1
- package/Types/Dashboard/DashboardAccess.js +5 -1
- package/Types/Dashboard/DashboardTemplates.js +92 -31
- package/Types/DataObservability/DataAlertCauseTitles.d.mts +51 -0
- package/Types/DataObservability/DataAlertCauseTitles.d.ts +51 -0
- package/Types/DataObservability/DataAlertCauseTitles.js +181 -0
- package/Types/DataObservability/DataAlertCauseTitles.mjs +13 -0
- package/Types/DataObservability/DataAlertFeedback.d.mts +2 -0
- package/Types/DataObservability/DataAlertFeedback.d.ts +2 -0
- package/Types/DataObservability/DataAssetReads.js +4 -4
- package/Types/DataObservability/DataBiRefreshAlert.js +10 -2
- package/Types/DataObservability/DataCheckSuggestions.js +84 -36
- package/Types/DataObservability/DbtArtifact.js +4 -1
- package/Types/DataSecurity/DataStoreKind.d.mts +2 -0
- package/Types/DataSecurity/DataStoreKind.d.ts +2 -0
- package/Types/DataSecurity/DataStoreKind.js +32 -2
- package/Types/DataSecurity/DataStoreKind.mjs +2 -0
- package/Types/Database/EnableAuditLog.js +1 -1
- package/Types/Database/OwnersOnCreate.d.mts +4 -0
- package/Types/Database/OwnersOnCreate.d.ts +4 -0
- package/Types/Database/OwnersOnCreate.js +29 -0
- package/Types/Database/OwnersOnCreate.mjs +5 -0
- package/Types/Database/TableColumn.d.mts +3 -0
- package/Types/Database/TableColumn.d.ts +3 -0
- package/Types/Database/TableColumn.js +25 -2
- package/Types/Database/TableColumn.mjs +2 -0
- package/Types/Database/UserAttribution.js +9 -2
- package/Types/DatabaseServer/DatabaseContainerClassifier.js +4 -1
- package/Types/DatabaseServer/DatabaseEngineReadings.js +1 -1
- package/Types/DatabaseServer/DatabaseHealth.js +36 -8
- package/Types/Date.d.mts +9 -0
- package/Types/Date.d.ts +9 -0
- package/Types/Date.js +264 -83
- package/Types/DateLanguage.d.mts +22 -2
- package/Types/DateLanguage.d.ts +22 -2
- package/Types/DateLanguage.js +326 -50
- package/Types/DateLanguage.mjs +6 -0
- package/Types/Email/ServerEmailEnvironment.js +5 -2
- package/Types/EmptyValueMark.d.mts +4 -0
- package/Types/EmptyValueMark.d.ts +4 -0
- package/Types/EmptyValueMark.js +57 -0
- package/Types/EmptyValueMark.mjs +5 -0
- package/Types/EnterpriseLicense/EnterpriseMarketplaceBilling.js +2 -1
- package/Types/Exception/ErrorMessageRule.d.mts +2 -0
- package/Types/Exception/ErrorMessageRule.d.ts +2 -0
- package/Types/Exception/ErrorMessageRule.js +49 -1
- package/Types/Exception/ErrorMessageRule.mjs +2 -0
- package/Types/Exception/ExceptionMessages.d.mts +1 -0
- package/Types/Exception/ExceptionMessages.d.ts +1 -0
- package/Types/Exception/ExceptionMessages.js +2 -0
- package/Types/Exception/UnexplainedError.d.mts +8 -0
- package/Types/Exception/UnexplainedError.d.ts +8 -0
- package/Types/Exception/UnexplainedError.js +56 -1
- package/Types/File/FileSize.js +3 -3
- package/Types/Form/FormField.js +4 -4
- package/Types/Form/FormPublic.js +6 -3
- package/Types/Form/FormTemplate.js +7 -5
- package/Types/HeldPermissions.js +10 -3
- package/Types/InstallationHealth/InstallationHealth.js +8 -4
- package/Types/JSONFunctions.d.mts +3 -0
- package/Types/JSONFunctions.d.ts +3 -0
- package/Types/JSONFunctions.js +68 -11
- package/Types/JsonWebTokenPurpose.d.mts +3 -1
- package/Types/JsonWebTokenPurpose.d.ts +3 -1
- package/Types/JsonWebTokenPurpose.js +26 -0
- package/Types/Kubernetes/KubernetesClusterAiAccess.js +18 -7
- package/Types/Kubernetes/KubernetesHealth.js +6 -1
- package/Types/Kubernetes/KubernetesInventoryExtractor.js +18 -3
- package/Types/Kubernetes/KubernetesObjectParser.js +6 -2
- package/Types/Kubernetes/OpenShiftObjectAttributes.js +25 -12
- package/Types/Log/LogQueryToFilter.js +18 -15
- package/Types/Log/LogSeverity.d.mts +3 -0
- package/Types/Log/LogSeverity.d.ts +3 -0
- package/Types/Log/LogSeverity.js +152 -19
- package/Types/Log/LogSeverity.mjs +3 -0
- package/Types/MeaningKeys.js +63 -1
- package/Types/MessageQueue/MessageQueueMetricCatalog.js +29 -4
- package/Types/MessageQueue/MessageQueueSpanPopulation.js +7 -3
- package/Types/Metrics/MetricAliasData.d.mts +1 -0
- package/Types/Metrics/MetricAliasData.d.ts +1 -0
- package/Types/Monitor/CephAlertTemplates.js +42 -27
- package/Types/Monitor/CephMetricCatalog.d.mts +1 -0
- package/Types/Monitor/CephMetricCatalog.d.ts +1 -0
- package/Types/Monitor/CephMetricCatalog.js +46 -31
- package/Types/Monitor/CephMetricCatalog.mjs +1 -0
- package/Types/Monitor/CloudAlertTemplates.js +20 -9
- package/Types/Monitor/CloudAppAlertTemplates.js +4 -2
- package/Types/Monitor/CriteriaFilterValues.js +2 -2
- package/Types/Monitor/DataObservabilityAlertTemplates.js +7 -4
- package/Types/Monitor/DatabaseAlertTemplates.js +4 -1
- package/Types/Monitor/DatabaseMetricCatalog.d.mts +4 -9
- package/Types/Monitor/DatabaseMetricCatalog.d.ts +4 -9
- package/Types/Monitor/DatabaseMetricCatalog.js +178 -145
- package/Types/Monitor/DatabaseMetricCatalog.mjs +2 -0
- package/Types/Monitor/DatabaseMetricGroup.d.mts +9 -0
- package/Types/Monitor/DatabaseMetricGroup.d.ts +9 -0
- package/Types/Monitor/DatabaseMetricGroup.js +30 -0
- package/Types/Monitor/DatabaseMetricGroup.mjs +2 -0
- package/Types/Monitor/DockerAlertTemplates.js +42 -23
- package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
- package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
- package/Types/Monitor/DockerMetricCatalog.js +45 -28
- package/Types/Monitor/DockerMetricCatalog.mjs +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.js +28 -19
- package/Types/Monitor/DockerSwarmMetricCatalog.d.mts +1 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.d.ts +1 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.js +37 -20
- package/Types/Monitor/DockerSwarmMetricCatalog.mjs +1 -0
- package/Types/Monitor/EvaluationSentence.js +11 -5
- package/Types/Monitor/HostAlertTemplates.js +37 -25
- package/Types/Monitor/HostMetricCatalog.d.mts +1 -0
- package/Types/Monitor/HostMetricCatalog.d.ts +1 -0
- package/Types/Monitor/HostMetricCatalog.js +40 -22
- package/Types/Monitor/HostMetricCatalog.mjs +1 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +18 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +18 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +104 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +9 -0
- package/Types/Monitor/IotAlertTemplates.js +26 -11
- package/Types/Monitor/IotMetricCatalog.d.mts +1 -0
- package/Types/Monitor/IotMetricCatalog.d.ts +1 -0
- package/Types/Monitor/IotMetricCatalog.js +31 -14
- package/Types/Monitor/IotMetricCatalog.mjs +1 -0
- package/Types/Monitor/KubernetesAlertTemplates.js +29 -20
- package/Types/Monitor/KubernetesMetricCatalog.d.mts +0 -5
- package/Types/Monitor/KubernetesMetricCatalog.d.ts +0 -5
- package/Types/Monitor/KubernetesMetricCatalog.js +98 -89
- package/Types/Monitor/LlmMonitor/LlmMonitorTemplates.js +59 -17
- package/Types/Monitor/MessageQueueAlertTemplates.js +15 -6
- package/Types/Monitor/MonitorCriteriaInstance.js +112 -31
- package/Types/Monitor/MonitorStepDatabaseMonitor.d.mts +1 -1
- package/Types/Monitor/MonitorStepDatabaseMonitor.d.ts +1 -1
- package/Types/Monitor/MonitorStepDatabaseMonitor.js +9 -9
- package/Types/Monitor/MonitorStepExternalStatusPageMonitor.js +5 -1
- package/Types/Monitor/MonitorStepIoTMonitor.js +6 -3
- package/Types/Monitor/MonitorStepLogMonitor.js +11 -2
- package/Types/Monitor/MonitorStepMetricMonitor.js +18 -10
- package/Types/Monitor/MonitorStepRollingTime.js +1 -1
- package/Types/Monitor/MonitorStepSnmpMonitor.js +24 -13
- package/Types/Monitor/MonitorTemplateSyncField.js +1 -1
- package/Types/Monitor/NtpMonitor/NtpMonitorDefaults.d.mts +3 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorDefaults.d.ts +3 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorDefaults.js +35 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorDefaults.mjs +4 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -3
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -3
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +39 -45
- package/Types/Monitor/OpenShiftAlertTemplates.js +5 -2
- package/Types/Monitor/OpenStackAlertTemplates.js +67 -43
- package/Types/Monitor/OpenStackControlPlaneAlertTemplates.js +20 -11
- package/Types/Monitor/OpenStackLogAlertTemplates.js +4 -1
- package/Types/Monitor/OpenStackMetricCatalog.d.mts +1 -0
- package/Types/Monitor/OpenStackMetricCatalog.d.ts +1 -0
- package/Types/Monitor/OpenStackMetricCatalog.js +366 -276
- package/Types/Monitor/OpenStackMetricCatalog.mjs +1 -0
- package/Types/Monitor/PodmanAlertTemplates.js +28 -19
- package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.js +45 -28
- package/Types/Monitor/PodmanMetricCatalog.mjs +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.js +42 -27
- package/Types/Monitor/ProxmoxMetricCatalog.d.mts +1 -0
- package/Types/Monitor/ProxmoxMetricCatalog.d.ts +1 -0
- package/Types/Monitor/ProxmoxMetricCatalog.js +46 -28
- package/Types/Monitor/ProxmoxMetricCatalog.mjs +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +16 -3
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +5 -2
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +13 -6
- package/Types/Monitor/ServiceAlertTemplates.js +17 -7
- package/Types/Monitor/SnmpMonitor/SnmpOidListUtil.js +9 -2
- package/Types/Monitor/SnmpMonitor/SnmpTableListUtil.js +39 -10
- package/Types/Monitor/StorageArrayAlertTemplates.js +39 -21
- package/Types/Monitor/StorageArrayMetricCatalog.d.mts +1 -0
- package/Types/Monitor/StorageArrayMetricCatalog.d.ts +1 -0
- package/Types/Monitor/StorageArrayMetricCatalog.js +76 -56
- package/Types/Monitor/StorageArrayMetricCatalog.mjs +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +71 -19
- package/Types/Monitor/VMwareAlertTemplates.js +35 -23
- package/Types/Monitor/VMwareMetricCatalog.d.mts +1 -0
- package/Types/Monitor/VMwareMetricCatalog.d.ts +1 -0
- package/Types/Monitor/VMwareMetricCatalog.js +167 -148
- package/Types/Monitor/VMwareMetricCatalog.mjs +1 -0
- package/Types/Monitor/WhoIsTold.js +31 -14
- package/Types/NetworkController/NetworkControllerConnectionHealth.js +4 -1
- package/Types/NetworkController/NetworkControllerDeviceAdd.js +30 -4
- package/Types/NetworkController/NetworkControllerReadSummary.js +42 -19
- package/Types/NetworkDevice/DeviceNaming.js +11 -2
- package/Types/NetworkDevice/DiscoveredDevice.js +3 -1
- package/Types/NetworkDevice/DiscoveryImport.js +4 -2
- package/Types/NetworkEvent/NetworkEventAlertTemplates.js +18 -3
- package/Types/NoBreakSpaces.d.mts +2 -0
- package/Types/NoBreakSpaces.d.ts +2 -0
- package/Types/NoBreakSpaces.js +101 -10
- package/Types/NoBreakSpaces.mjs +2 -0
- package/Types/Notification/OwnerNotificationDelivery.d.mts +51 -0
- package/Types/Notification/OwnerNotificationDelivery.d.ts +51 -0
- package/Types/Notification/OwnerNotificationDelivery.js +107 -0
- package/Types/Notification/OwnerNotificationDelivery.mjs +4 -0
- package/Types/NotificationRule/PagingLadder.js +2 -2
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +10 -2
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +10 -2
- package/Types/OnCallDutyPolicy/EveryNewEventRules.js +97 -17
- package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +7 -0
- package/Types/OnCallDutyPolicy/Layer.js +26 -9
- package/Types/OnCallDutyPolicy/MaterializedShift.js +4 -4
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +6 -2
- package/Types/OnCallDutyPolicy/OnCallCalendarFeedUtil.js +4 -1
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +65 -3
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +66 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +66 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.js +459 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageEnding.d.mts +16 -0
- package/Types/OnCallDutyPolicy/OnCallPageEnding.d.ts +16 -0
- package/Types/OnCallDutyPolicy/OnCallPageEnding.js +83 -0
- package/Types/OnCallDutyPolicy/OnCallPageEnding.mjs +10 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.js +8 -1
- package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.js +20 -7
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +29 -3
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunLine.d.mts +22 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunLine.d.ts +22 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunLine.js +104 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunLine.mjs +5 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunRetry.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunRetry.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunRetry.js +185 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyRunRetry.mjs +11 -0
- package/Types/OnCallDutyPolicy/OnCallRunStart.d.mts +8 -0
- package/Types/OnCallDutyPolicy/OnCallRunStart.d.ts +8 -0
- package/Types/OnCallDutyPolicy/OnCallRunStart.js +63 -0
- package/Types/OnCallDutyPolicy/OnCallRunStart.mjs +9 -0
- package/Types/OnCallDutyPolicy/OnCallSendFailureLine.d.mts +36 -0
- package/Types/OnCallDutyPolicy/OnCallSendFailureLine.d.ts +36 -0
- package/Types/OnCallDutyPolicy/OnCallSendFailureLine.js +258 -0
- package/Types/OnCallDutyPolicy/OnCallSendFailureLine.mjs +16 -0
- package/Types/OnCallDutyPolicy/OnCallSentLine.d.mts +48 -0
- package/Types/OnCallDutyPolicy/OnCallSentLine.d.ts +48 -0
- package/Types/OnCallDutyPolicy/OnCallSentLine.js +244 -0
- package/Types/OnCallDutyPolicy/OnCallSentLine.mjs +28 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +29 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +84 -3
- package/Types/OnCallDutyPolicy/ScheduleResolution.js +11 -4
- package/Types/OnCallDutyPolicy/ScheduleTimeline.js +9 -1
- package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.d.mts +2 -1
- package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.d.ts +2 -1
- package/Types/OnCallDutyPolicy/ScheduleTimelineLayout.js +16 -8
- package/Types/OnCallDutyPolicy/ShiftSeamUtil.js +5 -1
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +12 -2
- package/Types/OnCallDutyPolicy/UserOverrideUtil.js +31 -9
- package/Types/OnCallDutyPolicy/WorkingHours.js +5 -1
- package/Types/OpenStack/OpenStackBlastRadius.js +16 -1
- package/Types/OpenStack/OpenStackCapacity.js +27 -9
- package/Types/OpenStack/OpenStackCapacitySnapshot.js +14 -7
- package/Types/OpenStack/OpenStackProjectUsage.js +2 -2
- package/Types/OpenStack/OpenStackScale.js +4 -1
- package/Types/OpenStack/OpenStackSpendSnapshot.js +59 -21
- package/Types/OpenStack/OpenStackStatusPagePlan.js +8 -2
- package/Types/OpenStack/OpenStackWaste.js +19 -5
- package/Types/PacketCapture/PacketCaptureCapability.js +1 -1
- package/Types/PacketCapture/PacketCaptureLimits.js +3 -3
- package/Types/PacketCapture/PacketCapturePermissions.js +2 -2
- package/Types/Permission.d.mts +2 -0
- package/Types/Permission.d.ts +2 -0
- package/Types/Permission.js +159 -78
- package/Types/ProductFeedback/ProductFeedback.js +29 -19
- package/Types/Realtime/EventName.d.mts +1 -0
- package/Types/Realtime/EventName.d.ts +1 -0
- package/Types/Realtime/EventName.js +11 -0
- package/Types/Rules/RuleRun.js +11 -2
- package/Types/Rum/ProductAnalyticsEventReads.js +4 -2
- package/Types/Rum/ProductAnalyticsEvents.d.mts +2 -0
- package/Types/Rum/ProductAnalyticsEvents.d.ts +2 -0
- package/Types/Rum/ProductAnalyticsEvents.js +139 -20
- package/Types/Rum/ProductAnalyticsEvents.mjs +2 -0
- package/Types/Rum/RumApplicationStatus.js +1 -1
- package/Types/Rum/SessionReplayFrustrationSignals.js +15 -33
- package/Types/Rum/UserFlow.js +25 -6
- package/Types/Rum/WebVitals.js +7 -3
- package/Types/Runbook/HttpStepVariables.js +10 -5
- package/Types/Runbook/RunbookLegacySteps.js +1 -1
- package/Types/Runbook/RunbookSchedule.js +30 -5
- package/Types/Runbook/RunbookStepApproval.js +1 -1
- package/Types/Runbook/SshHostKey.js +1 -1
- package/Types/Runner/GlobalRunnerWork.js +4 -1
- package/Types/Runner/RunnerChoice.js +8 -3
- package/Types/Runner/RunnerCodeFixes.js +1 -1
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +4 -1
- package/Types/SecurityCase/SecurityEntityRisk.d.mts +5 -0
- package/Types/SecurityCase/SecurityEntityRisk.d.ts +5 -0
- package/Types/SecurityCase/SecurityEntityRisk.js +8 -1
- package/Types/SecurityCase/SecurityEntityRisk.mjs +1 -0
- package/Types/SecurityEvent/SecurityHunt.js +10 -2
- package/Types/SecurityEvent/SecurityWatchlist.js +5 -1
- package/Types/SecurityEvent/SecurityWatchlistFilter.js +1 -1
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +23 -9
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.js +9 -2
- package/Types/ServerSending/ServerSendingStatus.js +15 -6
- package/Types/ServerSetup/ServerSetupChecklist.js +33 -14
- package/Types/Serverless/ServerlessFunctionStatus.js +1 -1
- package/Types/Service/ServiceTelemetryStatus.js +5 -1
- package/Types/ServiceLevelObjective/SliType.d.mts +2 -0
- package/Types/ServiceLevelObjective/SliType.d.ts +2 -0
- package/Types/ServiceLevelObjective/SliType.js +15 -0
- package/Types/SetupHealth/SetupHealth.js +17 -7
- package/Types/StatusPage/IncidentSubscriberAudience.js +11 -3
- package/Types/StatusPage/PublicNoteApproval.js +9 -3
- package/Types/StatusPage/StatusPageAccess.js +5 -1
- package/Types/StatusPage/SubscriberNotificationPreview.js +2 -2
- package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +6 -3
- package/Types/Table/DefaultTableColumns.js +1 -1
- package/Types/Team/ComplianceRule.d.mts +9 -5
- package/Types/Team/ComplianceRule.d.ts +9 -5
- package/Types/Team/ComplianceRule.js +207 -69
- package/Types/Team/ComplianceRule.mjs +2 -0
- package/Types/Team/CustomRole.d.mts +8 -0
- package/Types/Team/CustomRole.d.ts +8 -0
- package/Types/Team/CustomRole.js +37 -2
- package/Types/Team/CustomRole.mjs +2 -0
- package/Types/Team/CustomRoleCopyPlan.js +25 -14
- package/Types/Team/TeamComplianceFindings.d.mts +20 -0
- package/Types/Team/TeamComplianceFindings.d.ts +20 -0
- package/Types/Team/TeamComplianceFindings.js +282 -0
- package/Types/Team/TeamComplianceFindings.mjs +7 -0
- package/Types/Team/TeamComplianceStatus.d.mts +28 -0
- package/Types/Team/TeamComplianceStatus.d.ts +28 -0
- package/Types/Team/TeamComplianceStatus.js +38 -0
- package/Types/Team/TeamComplianceStatus.mjs +3 -1
- package/Types/Telemetry/ExceptionAIExplanation.js +7 -3
- package/Types/Telemetry/ExceptionSpanScope.js +2 -2
- package/Types/Telemetry/LlmMetricUsageApi.js +4 -1
- package/Types/Telemetry/LlmSetupCheckApi.js +16 -2
- package/Types/Telemetry/LlmUsageApi.js +5 -2
- package/Types/Telemetry/SimilarExceptions.js +15 -5
- package/Types/Telemetry/TelemetryIngestionBudget.js +5 -5
- package/Types/Template/TemplateVariable.js +1 -1
- package/Types/ToolImport/ToolImportMonitorBuilder.js +7 -2
- package/Types/Translator.d.mts +2 -0
- package/Types/Translator.d.ts +2 -0
- package/Types/Translator.js +194 -39
- package/Types/Translator.mjs +2 -0
- package/Types/UsedBy/UsedByServerProducts.js +5 -2
- package/Types/UserSession/SessionLength.d.mts +8 -0
- package/Types/UserSession/SessionLength.d.ts +8 -0
- package/Types/UserSession/SessionLength.js +73 -6
- package/Types/UserSession/SessionLength.mjs +5 -0
- package/Types/WebsiteRequest.js +4 -1
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +11 -4
- package/Types/Workflow/AffectedResourcesSetting.js +14 -4
- package/Types/Workflow/Components/AI.js +34 -33
- package/Types/Workflow/Components/API.js +143 -138
- package/Types/Workflow/Components/BaseModel.js +157 -133
- package/Types/Workflow/Components/Condition.js +20 -19
- package/Types/Workflow/Components/ConditionComparison.js +25 -24
- package/Types/Workflow/Components/Discord.js +16 -15
- package/Types/Workflow/Components/Email.js +30 -29
- package/Types/Workflow/Components/FromAnotherTool.d.mts +23 -0
- package/Types/Workflow/Components/FromAnotherTool.d.ts +23 -0
- package/Types/Workflow/Components/FromAnotherTool.js +91 -47
- package/Types/Workflow/Components/Huntress.js +70 -65
- package/Types/Workflow/Components/IRC.js +38 -33
- package/Types/Workflow/Components/IncomingEmail.js +30 -29
- package/Types/Workflow/Components/JSON.js +42 -41
- package/Types/Workflow/Components/JavaScript.js +18 -17
- package/Types/Workflow/Components/JavaScriptCheck.js +22 -21
- package/Types/Workflow/Components/Log.js +10 -9
- package/Types/Workflow/Components/Manual.js +10 -9
- package/Types/Workflow/Components/Mattermost.js +22 -21
- package/Types/Workflow/Components/MicrosoftTeams.js +16 -15
- package/Types/Workflow/Components/OnCall.js +66 -65
- package/Types/Workflow/Components/OpenStack.js +29 -28
- package/Types/Workflow/Components/Schedule.js +8 -7
- package/Types/Workflow/Components/Slack.js +16 -15
- package/Types/Workflow/Components/Sleep.js +16 -15
- package/Types/Workflow/Components/Switch.js +12 -11
- package/Types/Workflow/Components/Telegram.js +18 -17
- package/Types/Workflow/Components/Webhook.js +18 -17
- package/Types/Workflow/Components/Workflow.js +15 -14
- package/Types/Workflow/Components/Zabbix.js +30 -25
- package/Types/Workflow/Components.js +36 -35
- package/Types/Workflow/CreateFromTemplate.js +5 -4
- package/Types/Workflow/Documentation/DatabaseDocumentation.js +33 -2
- package/Types/Workflow/OwnersOnCreateSetting.d.mts +7 -0
- package/Types/Workflow/OwnersOnCreateSetting.d.ts +7 -0
- package/Types/Workflow/OwnersOnCreateSetting.js +76 -0
- package/Types/Workflow/OwnersOnCreateSetting.mjs +5 -0
- package/Types/Workflow/RunRecord.js +12 -4
- package/Types/Workflow/StepSamples.js +1 -1
- package/Types/Workflow/StepTrace.js +6 -2
- package/Types/Workflow/TemplateLayout.js +8 -2
- package/Types/Workflow/Templates.d.mts +3 -0
- package/Types/Workflow/Templates.d.ts +3 -0
- package/Types/Workflow/Templates.js +278 -33
- package/Types/Workflow/Templates.mjs +2 -0
- package/Types/Workflow/WorkflowDraft.js +17 -5
- package/Types/Workflow/WorkflowDraftRebase.js +7 -3
- package/Types/Workflow/WorkflowVariableOAuth.js +5 -5
- package/Types/Workspace/NotificationRules/NotificationRuleInvites.js +5 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +1 -1
- package/Utils/AI/InvestigationImpactNumbers.js +5 -1
- package/Utils/AI/InvestigationReport.js +3 -2
- package/Utils/AI/PromptText.js +1 -1
- package/Utils/API.js +99 -20
- package/Utils/AiRemediation/CloudChangeWords.js +2 -2
- package/Utils/AiRemediation/GitOpsOwnership.js +37 -5
- package/Utils/AiRemediation/KubectlPolicy.js +10 -1
- package/Utils/AiRemediation/KubectlRevertWatch.js +8 -4
- package/Utils/AiRemediation/KubectlWriteScope.js +15 -3
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1 -1
- package/Utils/AiRemediation/Resource/DockerCliGrammar.js +1 -1
- package/Utils/AiRemediation/Resource/DockerSwarmCommandPolicy.js +1 -1
- package/Utils/AiRemediation/Resource/HostCommandPolicy.js +41 -18
- package/Utils/AiRemediation/Resource/OpenStackChangeReach.js +6 -3
- package/Utils/AiRemediation/Resource/OpenStackCommandPolicy.js +27 -5
- package/Utils/AiRemediation/Resource/ProxmoxCommandPolicy.js +1 -1
- package/Utils/AiRemediation/VerifiedFixRunbook.js +5 -1
- package/Utils/Alerts/AlertMetricType.js +20 -12
- package/Utils/AuditLog/AuditLogResourceTypes.d.mts +4 -0
- package/Utils/AuditLog/AuditLogResourceTypes.d.ts +4 -0
- package/Utils/AuditLog/AuditLogResourceTypes.js +107 -0
- package/Utils/AuditLog/AuditLogResourceTypes.mjs +5 -0
- package/Utils/AuditLog/AuditLogTypedValues.js +2 -2
- package/Utils/ColorContrast.js +6 -3
- package/Utils/CronScheduleText.js +4 -1
- package/Utils/CronTab.js +20 -5
- package/Utils/Dashboard/Components/DashboardAlertListComponent.js +15 -9
- package/Utils/Dashboard/Components/DashboardDataSourceGaugeComponent.js +5 -1
- package/Utils/Dashboard/Components/DashboardDataSourceValueComponent.js +5 -1
- package/Utils/Dashboard/Components/DashboardIncidentListComponent.js +15 -9
- package/Utils/Dashboard/Components/DashboardListSharedArgs.js +2 -1
- package/Utils/Dashboard/Components/DashboardSecurityEventsListComponent.js +6 -1
- package/Utils/Dashboard/Components/DashboardTableComponent.js +5 -1
- package/Utils/Dashboard/DashboardViewConfig.js +17 -3
- package/Utils/Dashboard/DashboardWidgetIds.js +1 -1
- package/Utils/Dashboard/DashboardWidgetSorts.js +37 -15
- package/Utils/Dashboard/GridLayout.js +21 -6
- package/Utils/Dashboard/ModelQueryVariableInterpolation.js +3 -3
- package/Utils/Dashboard/StoredDashboardViewConfig.js +22 -7
- package/Utils/Dashboard/TableThresholds.js +4 -2
- package/Utils/Dashboard/VariableInterpolation.js +18 -3
- package/Utils/Dashboard/VariableUrlState.js +11 -3
- package/Utils/DataSecurity/DataStoreContentScanSchedule.d.mts +66 -0
- package/Utils/DataSecurity/DataStoreContentScanSchedule.d.ts +66 -0
- package/Utils/DataSecurity/DataStoreContentScanSchedule.js +212 -0
- package/Utils/DataSecurity/DataStoreContentScanSchedule.mjs +12 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.js +4 -1
- package/Utils/DataSecurity/FieldClassifier.js +15 -4
- package/Utils/DataSecurity/FieldCollector.js +1 -1
- package/Utils/DeveloperDocs/CliExamples.js +2 -2
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/Hcl.js +8 -5
- package/Utils/DeveloperDocs/LiveData.js +7 -3
- package/Utils/Exceptions/ExceptionInsight.js +6 -3
- package/Utils/Grok/Grok.js +2 -1
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +23 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +23 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -4
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/HTTPResponseBodyReader.js +22 -42
- package/Utils/Incident/IncidentFromAlerts.js +1 -1
- package/Utils/Incident/IncidentMetricType.js +21 -12
- package/Utils/Inventory/InventoryAssetDetails.js +5 -1
- package/Utils/LabelRuleImportExport.js +5 -5
- package/Utils/LinearRegExp/LinearRegExp.d.mts +3 -1
- package/Utils/LinearRegExp/LinearRegExp.d.ts +3 -1
- package/Utils/LinearRegExp/LinearRegExp.js +15 -8
- package/Utils/LinearRegExp/Parser.js +2 -2
- package/Utils/LinearRegExp/PatternCache.js +4 -3
- package/Utils/Log/KeyValueParser.js +6 -7
- package/Utils/Logs/LogInsight.js +1 -1
- package/Utils/LookupTable.js +11 -9
- package/Utils/Markdown/ChatMessageMarkdown.js +8 -5
- package/Utils/Markdown/LinkReferenceDefinitions.js +10 -2
- package/Utils/Markdown/OverLongText.d.mts +3 -2
- package/Utils/Markdown/OverLongText.d.ts +3 -2
- package/Utils/Markdown/OverLongText.js +819 -146
- package/Utils/Markdown/SlowMarkdown.js +4 -1
- package/Utils/Metrics/MetricExplorerUrl.d.mts +1 -0
- package/Utils/Metrics/MetricExplorerUrl.d.ts +1 -0
- package/Utils/Metrics/MetricExplorerUrl.js +81 -24
- package/Utils/Metrics/MetricInsight.js +14 -6
- package/Utils/Metrics/MetricQueryCloudAggregation.js +10 -1
- package/Utils/Metrics/MetricQueryFallback.js +8 -2
- package/Utils/Metrics/MetricQueryServices.js +10 -2
- package/Utils/Metrics/MetricResourceAttributeUtil.js +5 -2
- package/Utils/Metrics/MetricResultUnitConverter.js +4 -1
- package/Utils/Metrics/MetricSeriesArrivalUtil.js +1 -1
- package/Utils/Metrics/MetricSeriesScope.js +17 -3
- package/Utils/Metrics/MetricWholeWindow.js +10 -4
- package/Utils/Metrics/RecordingRuleExpression.js +17 -5
- package/Utils/Milliseconds.d.mts +21 -0
- package/Utils/Milliseconds.d.ts +21 -0
- package/Utils/Milliseconds.js +279 -4
- package/Utils/Milliseconds.mjs +6 -0
- package/Utils/ModelApiName.d.mts +2 -0
- package/Utils/ModelApiName.d.ts +2 -0
- package/Utils/ModelApiName.js +26 -0
- package/Utils/ModelApiName.mjs +2 -0
- package/Utils/Monitor/DatabaseCollectionIssueReading.d.mts +14 -0
- package/Utils/Monitor/DatabaseCollectionIssueReading.d.ts +14 -0
- package/Utils/Monitor/DatabaseCollectionIssueReading.js +67 -0
- package/Utils/Monitor/DatabaseCollectionIssueReading.mjs +5 -0
- package/Utils/Monitor/IncomingRequestSubscriptionConfirmation.d.mts +32 -0
- package/Utils/Monitor/IncomingRequestSubscriptionConfirmation.d.ts +32 -0
- package/Utils/Monitor/IncomingRequestSubscriptionConfirmation.js +342 -0
- package/Utils/Monitor/IncomingRequestSubscriptionConfirmation.mjs +7 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.js +9 -3
- package/Utils/Monitor/MetricValueFormatter.d.mts +6 -0
- package/Utils/Monitor/MetricValueFormatter.d.ts +6 -0
- package/Utils/Monitor/MetricValueFormatter.js +7 -1
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.js +5 -1
- package/Utils/Monitor/MonitorMetricType.js +112 -105
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +97 -25
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +2 -1
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +3 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +3 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +139 -5
- package/Utils/Monitor/MonitorStepMetricQueries.js +27 -10
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +12 -4
- package/Utils/Monitor/MonitorTemplateCustomFieldUtil.js +4 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.js +5 -2
- package/Utils/Monitor/PlatformResourceIdentity.js +64 -13
- package/Utils/Monitor/ProbeAgreementRule.d.mts +16 -0
- package/Utils/Monitor/ProbeAgreementRule.d.ts +16 -0
- package/Utils/Monitor/ProbeAgreementRule.js +42 -12
- package/Utils/Monitor/ProbeAgreementRule.mjs +2 -0
- package/Utils/Monitor/ProbeFailureCauses.d.mts +80 -0
- package/Utils/Monitor/ProbeFailureCauses.d.ts +80 -0
- package/Utils/Monitor/ProbeFailureCauses.js +649 -0
- package/Utils/Monitor/ProbeFailureCauses.mjs +10 -0
- package/Utils/Monitor/ProbeFailureReading.d.mts +2 -1
- package/Utils/Monitor/ProbeFailureReading.d.ts +2 -1
- package/Utils/Monitor/ProbeFailureReading.js +19 -6
- package/Utils/Monitor/ResourceHeartbeat.js +8 -2
- package/Utils/Monitor/RootCauseFacts.d.mts +30 -0
- package/Utils/Monitor/RootCauseFacts.d.ts +30 -0
- package/Utils/Monitor/RootCauseFacts.js +427 -0
- package/Utils/Monitor/RootCauseFacts.mjs +10 -0
- package/Utils/NetworkDevice/DeviceNameLikeness.js +5 -1
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +33 -7
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +10 -4
- package/Utils/NetworkDevice/NetworkDeviceRefresh.js +8 -1
- package/Utils/NetworkDevice/TransceiverHealthUtil.js +22 -7
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.js +6 -3
- package/Utils/NetworkEvent/SnmpTrapEvent.js +5 -1
- package/Utils/NetworkSite/TypeHierarchyUtil.js +4 -1
- package/Utils/OpenStack/OpenStackCheckFindings.js +5 -1
- package/Utils/OpenStack/OpenStackCheckMetrics.js +9 -4
- package/Utils/OpenStack/OpenStackCheckSettings.js +5 -2
- package/Utils/OpenStack/OpenStackCollectionStop.d.mts +25 -0
- package/Utils/OpenStack/OpenStackCollectionStop.d.ts +25 -0
- package/Utils/OpenStack/OpenStackCollectionStop.js +71 -0
- package/Utils/OpenStack/OpenStackCollectionStop.mjs +3 -0
- package/Utils/Probe/ClaimDueTime.d.mts +18 -0
- package/Utils/Probe/ClaimDueTime.d.ts +18 -0
- package/Utils/Probe/ClaimDueTime.js +66 -0
- package/Utils/Probe/ClaimDueTime.mjs +4 -0
- package/Utils/ProbeNetworkFailureUtil.js +35 -14
- package/Utils/Project/NotificationChannels.js +1 -1
- package/Utils/Project/ProjectBalance.d.mts +9 -0
- package/Utils/Project/ProjectBalance.d.ts +9 -0
- package/Utils/Project/ProjectBalance.js +31 -3
- package/Utils/Project/ProjectBalance.mjs +1 -0
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/PromQL/PromQLEngine.js +7 -10
- package/Utils/PromQL/PromQLFunctionEvaluators.js +88 -48
- package/Utils/PromQL/PromQLLabelOrder.d.mts +3 -0
- package/Utils/PromQL/PromQLLabelOrder.d.ts +3 -0
- package/Utils/PromQL/PromQLLabelOrder.js +14 -1
- package/Utils/PromQL/PromQLLabelOrder.mjs +1 -0
- package/Utils/PromQL/PromQLLabels.js +4 -4
- package/Utils/PromQL/PromQLMath.js +1 -1
- package/Utils/PromQL/PromQLParser.js +7 -3
- package/Utils/PromQL/PromQLRegex.d.mts +22 -4
- package/Utils/PromQL/PromQLRegex.d.ts +22 -4
- package/Utils/PromQL/PromQLRegex.js +333 -72
- package/Utils/PromQL/PromQLRegex.mjs +3 -0
- package/Utils/PromQL/RE2CharacterClass.d.mts +24 -5
- package/Utils/PromQL/RE2CharacterClass.d.ts +24 -5
- package/Utils/PromQL/RE2CharacterClass.js +283 -110
- package/Utils/PromQL/RE2CharacterClass.mjs +6 -0
- package/Utils/PromQL/RE2UnicodeClass.d.mts +12 -0
- package/Utils/PromQL/RE2UnicodeClass.d.ts +12 -0
- package/Utils/PromQL/RE2UnicodeClass.js +331 -0
- package/Utils/PromQL/RE2UnicodeClass.mjs +7 -0
- package/Utils/Realtime.d.mts +1 -0
- package/Utils/Realtime.d.ts +1 -0
- package/Utils/Realtime.js +10 -0
- package/Utils/Rules/RuleCriteriaMatcher.js +65 -17
- package/Utils/Rum/PathText.d.mts +2 -0
- package/Utils/Rum/PathText.d.ts +2 -0
- package/Utils/Rum/PathText.js +144 -0
- package/Utils/Rum/PathText.mjs +3 -0
- package/Utils/Rum/SessionReplayStringMap.d.mts +1 -1
- package/Utils/Rum/SessionReplayStringMap.d.ts +1 -1
- package/Utils/Rum/SessionReplayStringMap.js +6 -2
- package/Utils/Rum/UrlScrubber.d.mts +1 -1
- package/Utils/Rum/UrlScrubber.d.ts +1 -1
- package/Utils/Rum/UrlScrubber.js +65 -29
- package/Utils/Rum/UserFlow.d.mts +1 -0
- package/Utils/Rum/UserFlow.d.ts +1 -0
- package/Utils/Rum/UserFlow.js +42 -129
- package/Utils/Rum/UserFlow.mjs +1 -0
- package/Utils/Runbook/RunbookStepsSignature.js +1 -1
- package/Utils/Runbook/SshHostKeyFingerprint.js +4 -1
- package/Utils/Schema/AnalyticsModelSchema.js +1 -1
- package/Utils/Schema/ModelSchema.js +6 -2
- package/Utils/SecurityCase/SecurityCaseImpactFacts.js +2 -2
- package/Utils/SecurityCase/SecurityCaseStoryItems.js +15 -4
- package/Utils/SecurityCase/SecurityCaseTargets.js +19 -7
- package/Utils/SecurityCase/SecurityEntityRiskScore.d.mts +6 -4
- package/Utils/SecurityCase/SecurityEntityRiskScore.d.ts +6 -4
- package/Utils/SecurityCase/SecurityEntityRiskScore.js +150 -40
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.mts +1 -0
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +1 -0
- package/Utils/SecurityCase/SecurityOverviewMetrics.js +21 -3
- package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +1 -0
- package/Utils/SecurityCase/SecurityPlaybookStepValues.js +2 -2
- package/Utils/SecurityCase/SecurityTelemetrySearch.js +5 -1
- package/Utils/SecurityEvent/Connectors/AwsSecurityHubNormalizer.js +32 -7
- package/Utils/SecurityEvent/Connectors/CrowdStrikeFalconNormalizer.js +45 -15
- package/Utils/SecurityEvent/Connectors/ElasticSecurityNormalizer.js +44 -16
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +4 -1
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +49 -6
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +81 -12
- package/Utils/SecurityEvent/Connectors/MicrosoftDefenderXdrNormalizer.js +32 -5
- package/Utils/SecurityEvent/Connectors/SplunkNormalizer.js +53 -19
- package/Utils/SecurityEvent/Destinations/GoogleSecOpsUdmMapper.js +10 -2
- package/Utils/SecurityEvent/Destinations/SecurityEventRecord.js +7 -1
- package/Utils/SecurityEvent/DetectionOverflow.js +3 -2
- package/Utils/SecurityEvent/GenericNormalizer.js +42 -14
- package/Utils/SecurityEvent/LogParsers/CiscoAsaLogParser.js +104 -11
- package/Utils/SecurityEvent/LogParsers/CloudTrailLogParser.js +5 -4
- package/Utils/SecurityEvent/LogParsers/FortiGateLogParser.js +54 -5
- package/Utils/SecurityEvent/LogParsers/KubernetesAuditLogParser.js +5 -4
- package/Utils/SecurityEvent/LogParsers/OpenStackAuditLogParser.js +1 -1
- package/Utils/SecurityEvent/LogParsers/PaloAltoLogParser.js +81 -7
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +4 -1
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +49 -10
- package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +1 -1
- package/Utils/SecurityEvent/LogParsers/SshLogParser.js +5 -1
- package/Utils/SecurityEvent/LogParsers/SudoLogParser.js +5 -1
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +89 -15
- package/Utils/SecurityEvent/NormalizerHelpers.js +9 -5
- package/Utils/SecurityEvent/OcsfNormalizer.js +25 -7
- package/Utils/SecurityEvent/SecurityEventSearch.js +61 -13
- package/Utils/SecurityEvent/Sigma/SigmaRuleParser.js +3 -1
- package/Utils/SecurityEvent/Sigma/SigmaRuleSetParser.js +15 -5
- package/Utils/SecurityEvent/Sigma/SigmaWatchlists.js +18 -7
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.js +18 -9
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.js +14 -3
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.js +3 -1
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +9 -2
- package/Utils/SecurityEvent/UdmNormalizer.js +31 -8
- package/Utils/SessionReplay/SessionReplayHealth.js +34 -23
- package/Utils/Slo/SloBurnRateTemplate.d.mts +12 -0
- package/Utils/Slo/SloBurnRateTemplate.d.ts +12 -0
- package/Utils/Slo/SloBurnRateTemplate.js +55 -6
- package/Utils/Slo/SloBurnRateTemplate.mjs +2 -0
- package/Utils/Slo/SloErrorBudgetPolicy.js +1 -1
- package/Utils/Slo/SloFeedMarkdown.d.mts +19 -1
- package/Utils/Slo/SloFeedMarkdown.d.ts +19 -1
- package/Utils/Slo/SloFeedMarkdown.js +125 -17
- package/Utils/Slo/SloFeedMarkdown.mjs +3 -0
- package/Utils/Slo/SloHealth.d.mts +18 -1
- package/Utils/Slo/SloHealth.d.ts +18 -1
- package/Utils/Slo/SloHealth.js +145 -30
- package/Utils/Slo/SloHealth.mjs +2 -0
- package/Utils/Slo/SloListWidgetFormat.js +14 -4
- package/Utils/Slo/SloMetricSli.d.mts +55 -0
- package/Utils/Slo/SloMetricSli.d.ts +55 -0
- package/Utils/Slo/SloMetricSli.js +275 -0
- package/Utils/Slo/SloMetricSli.mjs +15 -0
- package/Utils/Slo/SloMetricType.js +32 -19
- package/Utils/Slo/SloMonitorStatusSummary.js +1 -1
- package/Utils/Slo/SloOverviewText.d.mts +1 -1
- package/Utils/Slo/SloOverviewText.d.ts +1 -1
- package/Utils/Slo/SloOverviewText.js +7 -1
- package/Utils/Slo/SloProjection.d.mts +2 -0
- package/Utils/Slo/SloProjection.d.ts +2 -0
- package/Utils/Slo/SloProjection.js +7 -2
- package/Utils/Slo/SloProjection.mjs +1 -0
- package/Utils/Slo/SloReleaseCheck.d.mts +68 -0
- package/Utils/Slo/SloReleaseCheck.d.ts +68 -0
- package/Utils/Slo/SloReleaseCheck.js +255 -0
- package/Utils/Slo/SloReleaseCheck.mjs +14 -0
- package/Utils/Slo/SloRequestFilter.d.mts +26 -0
- package/Utils/Slo/SloRequestFilter.d.ts +26 -0
- package/Utils/Slo/SloRequestFilter.js +142 -0
- package/Utils/Slo/SloRequestFilter.mjs +9 -0
- package/Utils/Slo/SloRequestSli.d.mts +127 -0
- package/Utils/Slo/SloRequestSli.d.ts +127 -0
- package/Utils/Slo/SloRequestSli.js +295 -0
- package/Utils/Slo/SloRequestSli.mjs +22 -0
- package/Utils/Slo/SloWidgetFormat.d.mts +10 -0
- package/Utils/Slo/SloWidgetFormat.d.ts +10 -0
- package/Utils/Slo/SloWidgetFormat.js +90 -4
- package/Utils/Slo/SloWidgetFormat.mjs +2 -0
- package/Utils/StateMove.js +4 -1
- package/Utils/StateOrder.js +7 -3
- package/Utils/StatusPage/Report.js +5 -1
- package/Utils/StatusPage/ReportPeriod.js +5 -1
- package/Utils/StatusPage/ReportText.js +25 -4
- package/Utils/Suggestions/ProfileFixSuggestion.js +10 -4
- package/Utils/Suggestions/SuggestionBlocker.js +12 -2
- package/Utils/Suggestions/TelemetryAiFixSuggestion.js +24 -8
- package/Utils/Syslog/SyslogMessageParser.js +14 -5
- package/Utils/Syslog/Vendors/Sophos.js +1 -1
- package/Utils/Syslog/Vendors/UniFi.js +4 -1
- package/Utils/Telemetry/CloudChangeTitle.js +8 -4
- package/Utils/Telemetry/CloudHealthDescription.js +6 -2
- package/Utils/Telemetry/CrossSignalScope.js +7 -15
- package/Utils/Telemetry/LlmConversationTranscript.js +1 -1
- package/Utils/Telemetry/LlmLogEvents.js +17 -7
- package/Utils/Telemetry/LlmMessageParser.js +27 -12
- package/Utils/Telemetry/LlmMetricUsage.js +4 -1
- package/Utils/Telemetry/LlmUsage.js +19 -17
- package/Utils/Telemetry/ReceivingGaps.js +1 -1
- package/Utils/Telemetry/TelemetryQueryTimeRange.js +13 -3
- package/Utils/Traces/TraceInsight.js +9 -6
- package/Utils/VMware/VMwareCollectionStop.d.mts +27 -0
- package/Utils/VMware/VMwareCollectionStop.d.ts +27 -0
- package/Utils/VMware/VMwareCollectionStop.js +74 -0
- package/Utils/VMware/VMwareCollectionStop.mjs +3 -0
- package/Utils/ValueFormatter.js +75 -67
- package/Utils/VideoCall/TranscriptText.js +3 -3
- package/Utils/WhatsAppTemplateFit.js +1 -1
- package/package.json +1 -1
package/Utils/Slo/SloHealth.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import commonJsModule from "./SloHealth.js";
|
|
2
2
|
export const DEFAULT_AT_RISK_THRESHOLD_PERCENTAGE = commonJsModule.DEFAULT_AT_RISK_THRESHOLD_PERCENTAGE;
|
|
3
3
|
export const DEFAULT_ROLLING_WINDOW_DAYS = commonJsModule.DEFAULT_ROLLING_WINDOW_DAYS;
|
|
4
|
+
export const SLO_TARGET_OUT_OF_RANGE_BODY_TEMPLATE = commonJsModule.SLO_TARGET_OUT_OF_RANGE_BODY_TEMPLATE;
|
|
5
|
+
export const SLO_TARGET_OUT_OF_RANGE_FIGURES = commonJsModule.SLO_TARGET_OUT_OF_RANGE_FIGURES;
|
|
4
6
|
export const SloBudgetTier = commonJsModule.SloBudgetTier;
|
|
5
7
|
export const SloNoticeActionTarget = commonJsModule.SloNoticeActionTarget;
|
|
6
8
|
export const SloNoticeType = commonJsModule.SloNoticeType;
|
|
@@ -126,7 +126,8 @@ const getSloListRowDisplay = (slo, translator) => {
|
|
|
126
126
|
sli: (0, SloWidgetFormat_1.formatSloPercent)(slo.currentSliPercentage, SloWidgetFormat_1.SLI_DECIMALS, translator),
|
|
127
127
|
target: (0, SloWidgetFormat_1.formatSloTargetSubline)(slo.targetPercentage, translator),
|
|
128
128
|
budget: (0, SloWidgetFormat_1.formatSloPercent)(slo.errorBudgetRemainingPercentage, SloWidgetFormat_1.BUDGET_PERCENT_DECIMALS, translator),
|
|
129
|
-
|
|
129
|
+
// Minutes, or a request SLO's requests (#8441).
|
|
130
|
+
budgetTime: (0, SloWidgetFormat_1.formatSloErrorBudgetSubline)(slo, translator),
|
|
130
131
|
budgetFillPercent: (0, exports.getSloBudgetBarFillPercent)(slo.errorBudgetRemainingPercentage),
|
|
131
132
|
burnRate: (0, SloWidgetFormat_1.formatSloBurnRate)(slo.currentBurnRate, translator),
|
|
132
133
|
};
|
|
@@ -139,9 +140,16 @@ const getSloListRowDisplay = (slo, translator) => {
|
|
|
139
140
|
* is no longer moving.
|
|
140
141
|
*/
|
|
141
142
|
if ((0, exports.isSloListRowDisabled)(slo)) {
|
|
142
|
-
return
|
|
143
|
+
return {
|
|
144
|
+
...figures,
|
|
145
|
+
burnRateTone: SloBurnRateTone.Unknown,
|
|
146
|
+
statusText: exports.SLO_DISABLED_STATUS_LABEL,
|
|
147
|
+
statusColor: BrandColors_1.Gray500,
|
|
148
|
+
};
|
|
143
149
|
}
|
|
144
|
-
return
|
|
150
|
+
return {
|
|
151
|
+
...figures,
|
|
152
|
+
burnRateTone: (0, exports.getSloBurnRateTone)(slo.currentBurnRate),
|
|
145
153
|
/*
|
|
146
154
|
* A NULL status is an SLO the worker has not reached yet. The single-SLO
|
|
147
155
|
* widget's pill says "Unknown"; in a list of objectives the summary strip
|
|
@@ -149,7 +157,9 @@ const getSloListRowDisplay = (slo, translator) => {
|
|
|
149
157
|
*/
|
|
150
158
|
statusText: slo.sloStatus
|
|
151
159
|
? (0, SloStatusColor_1.getSloStatusText)(slo.sloStatus)
|
|
152
|
-
: exports.SLO_NOT_EVALUATED_STATUS_LABEL,
|
|
160
|
+
: exports.SLO_NOT_EVALUATED_STATUS_LABEL,
|
|
161
|
+
statusColor: (0, SloStatusColor_1.getSloStatusColor)(slo.sloStatus),
|
|
162
|
+
};
|
|
153
163
|
};
|
|
154
164
|
exports.getSloListRowDisplay = getSloListRowDisplay;
|
|
155
165
|
/*
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON.mjs";
|
|
2
|
+
import { SearchValuePredicate } from "../../Types/Telemetry/TelemetrySearchQuery.mjs";
|
|
3
|
+
export declare enum SloMetricKind {
|
|
4
|
+
Counter = "Counter",
|
|
5
|
+
Histogram = "Histogram"
|
|
6
|
+
}
|
|
7
|
+
export interface SloMetricQueryConfig {
|
|
8
|
+
metricName: string;
|
|
9
|
+
kind: SloMetricKind;
|
|
10
|
+
goodFilter?: string | undefined;
|
|
11
|
+
goodAtOrUnder?: number | undefined;
|
|
12
|
+
filter?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare const SLO_METRIC_NAME_MAX_LENGTH: number;
|
|
15
|
+
export declare const SLO_METRIC_FILTER_MAX_LENGTH: number;
|
|
16
|
+
export declare const SLO_METRIC_FILTER_MAX_TERMS: number;
|
|
17
|
+
export declare const SLO_METRIC_RESERVED_PREFIX: string;
|
|
18
|
+
export declare enum SloMetricQueryPart {
|
|
19
|
+
MetricName = "metricName",
|
|
20
|
+
Kind = "kind",
|
|
21
|
+
GoodFilter = "goodFilter",
|
|
22
|
+
GoodAtOrUnder = "goodAtOrUnder",
|
|
23
|
+
Filter = "filter"
|
|
24
|
+
}
|
|
25
|
+
export declare const SLO_METRIC_QUERY_ERRORS: {
|
|
26
|
+
noMetricName: string;
|
|
27
|
+
metricNameTooLong: string;
|
|
28
|
+
reservedMetricName: string;
|
|
29
|
+
noKind: string;
|
|
30
|
+
noGoodFilter: string;
|
|
31
|
+
noGoodAtOrUnder: string;
|
|
32
|
+
filterTooLong: string;
|
|
33
|
+
filterTooManyTerms: string;
|
|
34
|
+
freeText: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR: string;
|
|
37
|
+
export interface SloMetricQueryProblem {
|
|
38
|
+
part: SloMetricQueryPart;
|
|
39
|
+
template: string;
|
|
40
|
+
values: Record<string, string | number>;
|
|
41
|
+
}
|
|
42
|
+
export interface SloMetricAttributeTerm {
|
|
43
|
+
key: string;
|
|
44
|
+
predicate: SearchValuePredicate;
|
|
45
|
+
}
|
|
46
|
+
export interface ParsedSloMetricSearch {
|
|
47
|
+
terms: Array<SloMetricAttributeTerm>;
|
|
48
|
+
problem: Omit<SloMetricQueryProblem, "part"> | null;
|
|
49
|
+
}
|
|
50
|
+
export declare const normalizeSloMetricQueryConfig: (raw: unknown) => SloMetricQueryConfig | null;
|
|
51
|
+
export declare const parseSloMetricSearch: (raw: string | undefined | null) => ParsedSloMetricSearch;
|
|
52
|
+
export declare const getSloMetricQueryProblem: (config: SloMetricQueryConfig | null) => SloMetricQueryProblem | null;
|
|
53
|
+
export declare const formatSloMetricQueryProblem: (problem: Pick<SloMetricQueryProblem, "template" | "values">) => string;
|
|
54
|
+
export declare const getSloMetricQueryError: (raw: unknown) => string | null;
|
|
55
|
+
export declare const getSloMetricQueryFingerprintParts: (config: SloMetricQueryConfig) => JSONObject;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON";
|
|
2
|
+
import { SearchValuePredicate } from "../../Types/Telemetry/TelemetrySearchQuery";
|
|
3
|
+
export declare enum SloMetricKind {
|
|
4
|
+
Counter = "Counter",
|
|
5
|
+
Histogram = "Histogram"
|
|
6
|
+
}
|
|
7
|
+
export interface SloMetricQueryConfig {
|
|
8
|
+
metricName: string;
|
|
9
|
+
kind: SloMetricKind;
|
|
10
|
+
goodFilter?: string | undefined;
|
|
11
|
+
goodAtOrUnder?: number | undefined;
|
|
12
|
+
filter?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare const SLO_METRIC_NAME_MAX_LENGTH: number;
|
|
15
|
+
export declare const SLO_METRIC_FILTER_MAX_LENGTH: number;
|
|
16
|
+
export declare const SLO_METRIC_FILTER_MAX_TERMS: number;
|
|
17
|
+
export declare const SLO_METRIC_RESERVED_PREFIX: string;
|
|
18
|
+
export declare enum SloMetricQueryPart {
|
|
19
|
+
MetricName = "metricName",
|
|
20
|
+
Kind = "kind",
|
|
21
|
+
GoodFilter = "goodFilter",
|
|
22
|
+
GoodAtOrUnder = "goodAtOrUnder",
|
|
23
|
+
Filter = "filter"
|
|
24
|
+
}
|
|
25
|
+
export declare const SLO_METRIC_QUERY_ERRORS: {
|
|
26
|
+
noMetricName: string;
|
|
27
|
+
metricNameTooLong: string;
|
|
28
|
+
reservedMetricName: string;
|
|
29
|
+
noKind: string;
|
|
30
|
+
noGoodFilter: string;
|
|
31
|
+
noGoodAtOrUnder: string;
|
|
32
|
+
filterTooLong: string;
|
|
33
|
+
filterTooManyTerms: string;
|
|
34
|
+
freeText: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR: string;
|
|
37
|
+
export interface SloMetricQueryProblem {
|
|
38
|
+
part: SloMetricQueryPart;
|
|
39
|
+
template: string;
|
|
40
|
+
values: Record<string, string | number>;
|
|
41
|
+
}
|
|
42
|
+
export interface SloMetricAttributeTerm {
|
|
43
|
+
key: string;
|
|
44
|
+
predicate: SearchValuePredicate;
|
|
45
|
+
}
|
|
46
|
+
export interface ParsedSloMetricSearch {
|
|
47
|
+
terms: Array<SloMetricAttributeTerm>;
|
|
48
|
+
problem: Omit<SloMetricQueryProblem, "part"> | null;
|
|
49
|
+
}
|
|
50
|
+
export declare const normalizeSloMetricQueryConfig: (raw: unknown) => SloMetricQueryConfig | null;
|
|
51
|
+
export declare const parseSloMetricSearch: (raw: string | undefined | null) => ParsedSloMetricSearch;
|
|
52
|
+
export declare const getSloMetricQueryProblem: (config: SloMetricQueryConfig | null) => SloMetricQueryProblem | null;
|
|
53
|
+
export declare const formatSloMetricQueryProblem: (problem: Pick<SloMetricQueryProblem, "template" | "values">) => string;
|
|
54
|
+
export declare const getSloMetricQueryError: (raw: unknown) => string | null;
|
|
55
|
+
export declare const getSloMetricQueryFingerprintParts: (config: SloMetricQueryConfig) => JSONObject;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSloMetricQueryFingerprintParts = exports.getSloMetricQueryError = exports.formatSloMetricQueryProblem = exports.getSloMetricQueryProblem = exports.parseSloMetricSearch = exports.normalizeSloMetricQueryConfig = exports.SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR = exports.SLO_METRIC_QUERY_ERRORS = exports.SloMetricQueryPart = exports.SLO_METRIC_RESERVED_PREFIX = exports.SLO_METRIC_FILTER_MAX_TERMS = exports.SLO_METRIC_FILTER_MAX_LENGTH = exports.SLO_METRIC_NAME_MAX_LENGTH = exports.SloMetricKind = void 0;
|
|
4
|
+
const TelemetrySearchQuery_1 = require("../../Types/Telemetry/TelemetrySearchQuery");
|
|
5
|
+
const Translator_1 = require("../../Types/Translator");
|
|
6
|
+
/*
|
|
7
|
+
* AN SLO FROM A METRIC (#8445).
|
|
8
|
+
*
|
|
9
|
+
* A Metric SLO counts good and total events from a metric its services
|
|
10
|
+
* send, the way a request SLO counts them from their traces - for teams
|
|
11
|
+
* that export request counters and latency histograms (Prometheus
|
|
12
|
+
* `http_requests_total`, OpenTelemetry `http.server.request.duration`),
|
|
13
|
+
* and services that send no traces. It is stored in the SLO's
|
|
14
|
+
* metricQueryConfig column, in one of two kinds:
|
|
15
|
+
*
|
|
16
|
+
* - Counter: an OpenTelemetry Sum (a Prometheus counter). Its events are
|
|
17
|
+
* what the counter grew by; the good ones are its growth on the series
|
|
18
|
+
* that match the good condition, a search of the metric's attributes
|
|
19
|
+
* such as `@http.response.status_code:<500`.
|
|
20
|
+
* - Histogram: an explicit-bucket histogram. Its events are its
|
|
21
|
+
* observations; the good ones are those at or under a value, in the
|
|
22
|
+
* metric's own unit (0.3 for 300 ms of a histogram in seconds), read
|
|
23
|
+
* from the buckets whose upper bound is at or under it - so the value
|
|
24
|
+
* should be one of the histogram's bucket boundaries.
|
|
25
|
+
*
|
|
26
|
+
* Either kind can be narrowed by a filter of the same grammar
|
|
27
|
+
* (`@http.route:/checkout*`). The searches use the Metrics explorer's
|
|
28
|
+
* grammar (Types/Telemetry/TelemetrySearchQuery): every term is an
|
|
29
|
+
* attribute, `-` leaves a series out, and every term must match. The
|
|
30
|
+
* counting (Server/Utils/Slo/SloMetricCounting) compiles each term with the
|
|
31
|
+
* metric table's own statement generator, so a value is always a typed
|
|
32
|
+
* parameter.
|
|
33
|
+
*/
|
|
34
|
+
var SloMetricKind;
|
|
35
|
+
(function (SloMetricKind) {
|
|
36
|
+
SloMetricKind["Counter"] = "Counter";
|
|
37
|
+
SloMetricKind["Histogram"] = "Histogram";
|
|
38
|
+
})(SloMetricKind || (exports.SloMetricKind = SloMetricKind = {}));
|
|
39
|
+
exports.SLO_METRIC_NAME_MAX_LENGTH = 300;
|
|
40
|
+
exports.SLO_METRIC_FILTER_MAX_LENGTH = 500;
|
|
41
|
+
exports.SLO_METRIC_FILTER_MAX_TERMS = 10;
|
|
42
|
+
/*
|
|
43
|
+
* Metrics OneUptime writes itself: an SLO's own oneuptime.slo.* series, and
|
|
44
|
+
* the incident, alert and maintenance series kept in another table. None is
|
|
45
|
+
* a service's events.
|
|
46
|
+
*/
|
|
47
|
+
exports.SLO_METRIC_RESERVED_PREFIX = "oneuptime.";
|
|
48
|
+
// Which part of the configuration a problem is about, so the form shows it there.
|
|
49
|
+
var SloMetricQueryPart;
|
|
50
|
+
(function (SloMetricQueryPart) {
|
|
51
|
+
SloMetricQueryPart["MetricName"] = "metricName";
|
|
52
|
+
SloMetricQueryPart["Kind"] = "kind";
|
|
53
|
+
SloMetricQueryPart["GoodFilter"] = "goodFilter";
|
|
54
|
+
SloMetricQueryPart["GoodAtOrUnder"] = "goodAtOrUnder";
|
|
55
|
+
SloMetricQueryPart["Filter"] = "filter";
|
|
56
|
+
})(SloMetricQueryPart || (exports.SloMetricQueryPart = SloMetricQueryPart = {}));
|
|
57
|
+
exports.SLO_METRIC_QUERY_ERRORS = {
|
|
58
|
+
noMetricName: (0, Translator_1.translationKey)("Choose the metric this SLO counts, such as http.server.request.duration."),
|
|
59
|
+
metricNameTooLong: (0, Translator_1.translationKey)("A metric name can be at most {{max}} characters long."),
|
|
60
|
+
reservedMetricName: (0, Translator_1.translationKey)("This is one of OneUptime's own metrics, not your services' events. Choose a metric your services send."),
|
|
61
|
+
noKind: (0, Translator_1.translationKey)("Choose how good events are told apart: by a condition on a counter, or by a value a histogram's observations stay at or under."),
|
|
62
|
+
noGoodFilter: (0, Translator_1.translationKey)("Say which of the counter's events are good, such as @http.response.status_code:<500."),
|
|
63
|
+
noGoodAtOrUnder: (0, Translator_1.translationKey)("Enter the value a good observation stays at or under: a number greater than 0, in the metric's own unit, such as 0.3."),
|
|
64
|
+
filterTooLong: (0, Translator_1.translationKey)("A metric search can be at most {{max}} characters long."),
|
|
65
|
+
filterTooManyTerms: (0, Translator_1.translationKey)("A metric search can have at most {{max}} terms."),
|
|
66
|
+
freeText: (0, Translator_1.translationKey)('A metric search takes the metric\'s attributes, such as @http.route:/checkout* or @http.response.status_code:<500. "{{text}}" is not one.'),
|
|
67
|
+
};
|
|
68
|
+
// What the API answers for a value that is not a configuration at all, in English.
|
|
69
|
+
exports.SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR = 'The metric query must be an object such as {"metricName": "http.server.request.duration", "kind": "Histogram", "goodAtOrUnder": 0.3}.';
|
|
70
|
+
const trimmedOrUndefined = (value) => {
|
|
71
|
+
if (typeof value !== "string") {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
const trimmed = value.trim();
|
|
75
|
+
return trimmed.length > 0 ? trimmed : undefined;
|
|
76
|
+
};
|
|
77
|
+
const positiveNumberOrUndefined = (value) => {
|
|
78
|
+
if (value === undefined || value === null || value === "") {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
const number = typeof value === "number" ? value : Number(value);
|
|
82
|
+
return Number.isFinite(number) ? number : undefined;
|
|
83
|
+
};
|
|
84
|
+
const isKind = (value) => {
|
|
85
|
+
return value === SloMetricKind.Counter || value === SloMetricKind.Histogram;
|
|
86
|
+
};
|
|
87
|
+
/*
|
|
88
|
+
* The configuration as stored: its strings trimmed, its number a number,
|
|
89
|
+
* and only the parts its kind reads (a histogram keeps no good condition).
|
|
90
|
+
* Null for anything that is not an object. A part it cannot read is kept
|
|
91
|
+
* as undefined, for getSloMetricQueryProblem to say what is missing.
|
|
92
|
+
*/
|
|
93
|
+
const normalizeSloMetricQueryConfig = (raw) => {
|
|
94
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
const source = raw;
|
|
98
|
+
const kind = isKind(source["kind"])
|
|
99
|
+
? source["kind"]
|
|
100
|
+
: undefined;
|
|
101
|
+
const config = {
|
|
102
|
+
metricName: trimmedOrUndefined(source["metricName"]) || "",
|
|
103
|
+
kind: kind,
|
|
104
|
+
};
|
|
105
|
+
const filter = trimmedOrUndefined(source["filter"]);
|
|
106
|
+
if (filter) {
|
|
107
|
+
config.filter = filter;
|
|
108
|
+
}
|
|
109
|
+
if (kind === SloMetricKind.Counter) {
|
|
110
|
+
const goodFilter = trimmedOrUndefined(source["goodFilter"]);
|
|
111
|
+
if (goodFilter) {
|
|
112
|
+
config.goodFilter = goodFilter;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (kind === SloMetricKind.Histogram) {
|
|
116
|
+
const goodAtOrUnder = positiveNumberOrUndefined(source["goodAtOrUnder"]);
|
|
117
|
+
if (goodAtOrUnder !== undefined) {
|
|
118
|
+
config.goodAtOrUnder = goodAtOrUnder;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return config;
|
|
122
|
+
};
|
|
123
|
+
exports.normalizeSloMetricQueryConfig = normalizeSloMetricQueryConfig;
|
|
124
|
+
/*
|
|
125
|
+
* A metric search - the good condition or the filter - read into its terms.
|
|
126
|
+
* Every term is an attribute: `@k:v`, or `k:v`, which the grammar reads as
|
|
127
|
+
* an attribute here since the search knows no fields. Free text has
|
|
128
|
+
* nothing to match on a metric, so it is refused with what to write.
|
|
129
|
+
*/
|
|
130
|
+
const parseSloMetricSearch = (raw) => {
|
|
131
|
+
const search = trimmedOrUndefined(raw);
|
|
132
|
+
if (!search) {
|
|
133
|
+
return { terms: [], problem: null };
|
|
134
|
+
}
|
|
135
|
+
if (search.length > exports.SLO_METRIC_FILTER_MAX_LENGTH) {
|
|
136
|
+
return {
|
|
137
|
+
terms: [],
|
|
138
|
+
problem: {
|
|
139
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.filterTooLong,
|
|
140
|
+
values: { max: exports.SLO_METRIC_FILTER_MAX_LENGTH },
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
const tokens = (0, TelemetrySearchQuery_1.parseSearchQuery)(search, {
|
|
145
|
+
knownFieldKeys: new Set(),
|
|
146
|
+
});
|
|
147
|
+
if (tokens.length > exports.SLO_METRIC_FILTER_MAX_TERMS) {
|
|
148
|
+
return {
|
|
149
|
+
terms: [],
|
|
150
|
+
problem: {
|
|
151
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.filterTooManyTerms,
|
|
152
|
+
values: { max: exports.SLO_METRIC_FILTER_MAX_TERMS },
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const terms = [];
|
|
157
|
+
for (const token of tokens) {
|
|
158
|
+
if (token.type === TelemetrySearchQuery_1.SearchTokenType.FreeText) {
|
|
159
|
+
return {
|
|
160
|
+
terms: [],
|
|
161
|
+
problem: {
|
|
162
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.freeText,
|
|
163
|
+
values: { text: token.raw },
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
terms.push({ key: token.key, predicate: token.predicate });
|
|
168
|
+
}
|
|
169
|
+
return { terms: terms, problem: null };
|
|
170
|
+
};
|
|
171
|
+
exports.parseSloMetricSearch = parseSloMetricSearch;
|
|
172
|
+
/*
|
|
173
|
+
* What is wrong with a configuration, and with which part - the first
|
|
174
|
+
* problem in the order the form asks for them - or null when it is one
|
|
175
|
+
* OneUptime can count with.
|
|
176
|
+
*/
|
|
177
|
+
const getSloMetricQueryProblem = (config) => {
|
|
178
|
+
if (!config || !config.metricName) {
|
|
179
|
+
return {
|
|
180
|
+
part: SloMetricQueryPart.MetricName,
|
|
181
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.noMetricName,
|
|
182
|
+
values: {},
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
if (config.metricName.length > exports.SLO_METRIC_NAME_MAX_LENGTH) {
|
|
186
|
+
return {
|
|
187
|
+
part: SloMetricQueryPart.MetricName,
|
|
188
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.metricNameTooLong,
|
|
189
|
+
values: { max: exports.SLO_METRIC_NAME_MAX_LENGTH },
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
if (config.metricName.toLowerCase().startsWith(exports.SLO_METRIC_RESERVED_PREFIX)) {
|
|
193
|
+
return {
|
|
194
|
+
part: SloMetricQueryPart.MetricName,
|
|
195
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.reservedMetricName,
|
|
196
|
+
values: {},
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
if (!isKind(config.kind)) {
|
|
200
|
+
return {
|
|
201
|
+
part: SloMetricQueryPart.Kind,
|
|
202
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.noKind,
|
|
203
|
+
values: {},
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
if (config.kind === SloMetricKind.Counter) {
|
|
207
|
+
if (!config.goodFilter) {
|
|
208
|
+
return {
|
|
209
|
+
part: SloMetricQueryPart.GoodFilter,
|
|
210
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.noGoodFilter,
|
|
211
|
+
values: {},
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
const good = (0, exports.parseSloMetricSearch)(config.goodFilter);
|
|
215
|
+
if (good.problem) {
|
|
216
|
+
return { part: SloMetricQueryPart.GoodFilter, ...good.problem };
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (config.kind === SloMetricKind.Histogram &&
|
|
220
|
+
!(typeof config.goodAtOrUnder === "number" &&
|
|
221
|
+
Number.isFinite(config.goodAtOrUnder) &&
|
|
222
|
+
config.goodAtOrUnder > 0)) {
|
|
223
|
+
return {
|
|
224
|
+
part: SloMetricQueryPart.GoodAtOrUnder,
|
|
225
|
+
template: exports.SLO_METRIC_QUERY_ERRORS.noGoodAtOrUnder,
|
|
226
|
+
values: {},
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
const filter = (0, exports.parseSloMetricSearch)(config.filter);
|
|
230
|
+
if (filter.problem) {
|
|
231
|
+
return { part: SloMetricQueryPart.Filter, ...filter.problem };
|
|
232
|
+
}
|
|
233
|
+
return null;
|
|
234
|
+
};
|
|
235
|
+
exports.getSloMetricQueryProblem = getSloMetricQueryProblem;
|
|
236
|
+
// A problem's sentence in English, its figures as written: what the API and the worker say.
|
|
237
|
+
const formatSloMetricQueryProblem = (problem) => {
|
|
238
|
+
return (0, Translator_1.fillTemplate)(problem.template, Object.fromEntries(Object.entries(problem.values).map(([key, value]) => {
|
|
239
|
+
return [key, String(value)];
|
|
240
|
+
})));
|
|
241
|
+
};
|
|
242
|
+
exports.formatSloMetricQueryProblem = formatSloMetricQueryProblem;
|
|
243
|
+
/*
|
|
244
|
+
* What is wrong with a stored or submitted configuration, in English, or
|
|
245
|
+
* null when OneUptime can count with it.
|
|
246
|
+
*/
|
|
247
|
+
const getSloMetricQueryError = (raw) => {
|
|
248
|
+
if (raw !== undefined && raw !== null && typeof raw !== "object") {
|
|
249
|
+
return exports.SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR;
|
|
250
|
+
}
|
|
251
|
+
if (Array.isArray(raw)) {
|
|
252
|
+
return exports.SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR;
|
|
253
|
+
}
|
|
254
|
+
const problem = (0, exports.getSloMetricQueryProblem)((0, exports.normalizeSloMetricQueryConfig)(raw));
|
|
255
|
+
return problem ? (0, exports.formatSloMetricQueryProblem)(problem) : null;
|
|
256
|
+
};
|
|
257
|
+
exports.getSloMetricQueryError = getSloMetricQueryError;
|
|
258
|
+
/*
|
|
259
|
+
* The configuration as the counting reads it - its parts in a fixed order -
|
|
260
|
+
* so the counting's fingerprint changes when, and only when, what it counts
|
|
261
|
+
* does.
|
|
262
|
+
*/
|
|
263
|
+
const getSloMetricQueryFingerprintParts = (config) => {
|
|
264
|
+
var _a;
|
|
265
|
+
return {
|
|
266
|
+
metricName: config.metricName,
|
|
267
|
+
kind: config.kind,
|
|
268
|
+
goodFilter: config.kind === SloMetricKind.Counter ? config.goodFilter || null : null,
|
|
269
|
+
goodAtOrUnder: config.kind === SloMetricKind.Histogram
|
|
270
|
+
? (_a = config.goodAtOrUnder) !== null && _a !== void 0 ? _a : null
|
|
271
|
+
: null,
|
|
272
|
+
filter: config.filter || null,
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
exports.getSloMetricQueryFingerprintParts = getSloMetricQueryFingerprintParts;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import commonJsModule from "./SloMetricSli.js";
|
|
2
|
+
export const SLO_METRIC_FILTER_MAX_LENGTH = commonJsModule.SLO_METRIC_FILTER_MAX_LENGTH;
|
|
3
|
+
export const SLO_METRIC_FILTER_MAX_TERMS = commonJsModule.SLO_METRIC_FILTER_MAX_TERMS;
|
|
4
|
+
export const SLO_METRIC_NAME_MAX_LENGTH = commonJsModule.SLO_METRIC_NAME_MAX_LENGTH;
|
|
5
|
+
export const SLO_METRIC_QUERY_ERRORS = commonJsModule.SLO_METRIC_QUERY_ERRORS;
|
|
6
|
+
export const SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR = commonJsModule.SLO_METRIC_QUERY_NOT_AN_OBJECT_ERROR;
|
|
7
|
+
export const SLO_METRIC_RESERVED_PREFIX = commonJsModule.SLO_METRIC_RESERVED_PREFIX;
|
|
8
|
+
export const SloMetricKind = commonJsModule.SloMetricKind;
|
|
9
|
+
export const SloMetricQueryPart = commonJsModule.SloMetricQueryPart;
|
|
10
|
+
export const formatSloMetricQueryProblem = commonJsModule.formatSloMetricQueryProblem;
|
|
11
|
+
export const getSloMetricQueryError = commonJsModule.getSloMetricQueryError;
|
|
12
|
+
export const getSloMetricQueryFingerprintParts = commonJsModule.getSloMetricQueryFingerprintParts;
|
|
13
|
+
export const getSloMetricQueryProblem = commonJsModule.getSloMetricQueryProblem;
|
|
14
|
+
export const normalizeSloMetricQueryConfig = commonJsModule.normalizeSloMetricQueryConfig;
|
|
15
|
+
export const parseSloMetricSearch = commonJsModule.parseSloMetricSearch;
|
|
@@ -7,7 +7,7 @@ exports.SERVICE_LEVEL_OBJECTIVE_NAMES_METRIC_ATTRIBUTE = exports.SERVICE_LEVEL_O
|
|
|
7
7
|
const AggregationType_1 = __importDefault(require("../../Types/BaseDatabase/AggregationType"));
|
|
8
8
|
const SloMetricType_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloMetricType"));
|
|
9
9
|
const SloStatus_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloStatus"));
|
|
10
|
-
const
|
|
10
|
+
const Translator_1 = require("../../Types/Translator");
|
|
11
11
|
/*
|
|
12
12
|
* Display and catalog metadata for the `oneuptime.slo.*` metrics the SLO
|
|
13
13
|
* evaluation worker posts (Common/Server/Utils/Slo/SloMetricUtil).
|
|
@@ -19,6 +19,13 @@ const SloEvaluation_1 = require("./SloEvaluation");
|
|
|
19
19
|
*
|
|
20
20
|
* React-free and import-light on purpose: the worker, the dashboard and plain
|
|
21
21
|
* node tests all load it.
|
|
22
|
+
*
|
|
23
|
+
* A title, a legend and a description are keys of the Dashboard's locales
|
|
24
|
+
* (translationKey; this file is a `keys` root of its extractor): the SLO
|
|
25
|
+
* Metrics page looks each up once where it builds the chart's query
|
|
26
|
+
* (SloMetricsQueryConfig, #8282), and the metrics list a description the
|
|
27
|
+
* server stored from here. The Burn Rate description carries its window,
|
|
28
|
+
* so the page words it as a sentence of its own.
|
|
22
29
|
*/
|
|
23
30
|
/*
|
|
24
31
|
* Attribute keys stamped on every SLO metric row. Bare keys with string
|
|
@@ -90,17 +97,17 @@ class SloMetricTypeUtil {
|
|
|
90
97
|
static getTitle(metricType) {
|
|
91
98
|
switch (metricType) {
|
|
92
99
|
case SloMetricType_1.default.SliPercent:
|
|
93
|
-
return "SLI";
|
|
100
|
+
return (0, Translator_1.translationKey)("SLI");
|
|
94
101
|
case SloMetricType_1.default.TargetPercent:
|
|
95
|
-
return "Target";
|
|
102
|
+
return (0, Translator_1.translationKey)("Target");
|
|
96
103
|
case SloMetricType_1.default.ErrorBudgetRemainingPercent:
|
|
97
|
-
return "Error Budget Remaining";
|
|
104
|
+
return (0, Translator_1.translationKey)("Error Budget Remaining");
|
|
98
105
|
case SloMetricType_1.default.ErrorBudgetRemainingSeconds:
|
|
99
|
-
return "Error Budget Remaining Time";
|
|
106
|
+
return (0, Translator_1.translationKey)("Error Budget Remaining Time");
|
|
100
107
|
case SloMetricType_1.default.BurnRate:
|
|
101
|
-
return "Burn Rate";
|
|
108
|
+
return (0, Translator_1.translationKey)("Burn Rate");
|
|
102
109
|
case SloMetricType_1.default.Status:
|
|
103
|
-
return "Status";
|
|
110
|
+
return (0, Translator_1.translationKey)("Status");
|
|
104
111
|
default:
|
|
105
112
|
throw new Error("Invalid SloMetricType value");
|
|
106
113
|
}
|
|
@@ -113,17 +120,23 @@ class SloMetricTypeUtil {
|
|
|
113
120
|
static getDescription(metricType) {
|
|
114
121
|
switch (metricType) {
|
|
115
122
|
case SloMetricType_1.default.SliPercent:
|
|
116
|
-
return "Service Level Indicator over the SLO's compliance window: the percentage of measured time that counted as good.";
|
|
123
|
+
return (0, Translator_1.translationKey)("Service Level Indicator over the SLO's compliance window: the percentage of measured time that counted as good.");
|
|
117
124
|
case SloMetricType_1.default.TargetPercent:
|
|
118
|
-
return "The objective the SLI is measured against. Charted with the SLI so a dip below the target reads at a glance.";
|
|
125
|
+
return (0, Translator_1.translationKey)("The objective the SLI is measured against. Charted with the SLI so a dip below the target reads at a glance.");
|
|
119
126
|
case SloMetricType_1.default.ErrorBudgetRemainingPercent:
|
|
120
|
-
return "Share of the error budget still unspent in the compliance window. Negative once the budget is overspent.";
|
|
127
|
+
return (0, Translator_1.translationKey)("Share of the error budget still unspent in the compliance window. Negative once the budget is overspent.");
|
|
121
128
|
case SloMetricType_1.default.ErrorBudgetRemainingSeconds:
|
|
122
|
-
return "Downtime the SLO can still absorb in its compliance window before it breaches. Negative once the budget is overspent.";
|
|
129
|
+
return (0, Translator_1.translationKey)("Downtime the SLO can still absorb in its compliance window before it breaches. Negative once the budget is overspent.");
|
|
123
130
|
case SloMetricType_1.default.BurnRate:
|
|
124
|
-
|
|
131
|
+
/*
|
|
132
|
+
* Written out whole, for the window SLO_CURRENT_BURN_RATE_WINDOW_MINUTES
|
|
133
|
+
* holds (60), so the series' stored description is a key the
|
|
134
|
+
* metrics list words (#8356). SloBurnRateDescriptionWindow holds the
|
|
135
|
+
* two together.
|
|
136
|
+
*/
|
|
137
|
+
return (0, Translator_1.translationKey)("How fast the error budget is being spent, measured over the trailing 60 minutes. 1x spends the budget exactly over the compliance window; anything higher exhausts it early.");
|
|
125
138
|
case SloMetricType_1.default.Status:
|
|
126
|
-
return "The SLO's status at each evaluation: 0 = Healthy, 1 = At Risk, 2 = Budget Exhausted. Paused and misconfigured evaluations record no point.";
|
|
139
|
+
return (0, Translator_1.translationKey)("The SLO's status at each evaluation: 0 = Healthy, 1 = At Risk, 2 = Budget Exhausted. Paused and misconfigured evaluations record no point.");
|
|
127
140
|
default:
|
|
128
141
|
throw new Error("Invalid SloMetricType value");
|
|
129
142
|
}
|
|
@@ -131,17 +144,17 @@ class SloMetricTypeUtil {
|
|
|
131
144
|
static getLegend(metricType) {
|
|
132
145
|
switch (metricType) {
|
|
133
146
|
case SloMetricType_1.default.SliPercent:
|
|
134
|
-
return "SLI";
|
|
147
|
+
return (0, Translator_1.translationKey)("SLI");
|
|
135
148
|
case SloMetricType_1.default.TargetPercent:
|
|
136
|
-
return "Target";
|
|
149
|
+
return (0, Translator_1.translationKey)("Target");
|
|
137
150
|
case SloMetricType_1.default.ErrorBudgetRemainingPercent:
|
|
138
|
-
return "Budget Remaining";
|
|
151
|
+
return (0, Translator_1.translationKey)("Budget Remaining");
|
|
139
152
|
case SloMetricType_1.default.ErrorBudgetRemainingSeconds:
|
|
140
|
-
return "Budget Remaining";
|
|
153
|
+
return (0, Translator_1.translationKey)("Budget Remaining");
|
|
141
154
|
case SloMetricType_1.default.BurnRate:
|
|
142
|
-
return "Burn Rate";
|
|
155
|
+
return (0, Translator_1.translationKey)("Burn Rate");
|
|
143
156
|
case SloMetricType_1.default.Status:
|
|
144
|
-
return "Status";
|
|
157
|
+
return (0, Translator_1.translationKey)("Status");
|
|
145
158
|
default:
|
|
146
159
|
throw new Error("Invalid SloMetricType value");
|
|
147
160
|
}
|
|
@@ -74,7 +74,7 @@ const getSloMonitorStatusSummary = (monitors) => {
|
|
|
74
74
|
if (tone === SloMonitorStatusTone.Paused) {
|
|
75
75
|
statusLabel = PAUSED_LABEL;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return { ...monitor, tone: tone, statusLabel: statusLabel };
|
|
78
78
|
});
|
|
79
79
|
const segmentsByKey = new Map();
|
|
80
80
|
const segmentPriority = new Map();
|
|
@@ -56,7 +56,7 @@ export interface SloMultiMonitorModeText {
|
|
|
56
56
|
*/
|
|
57
57
|
export type GetSloMultiMonitorModeTextFunction = (mode: SloMultiMonitorMode | undefined | null) => SloMultiMonitorModeText;
|
|
58
58
|
export declare const getSloMultiMonitorModeText: GetSloMultiMonitorModeTextFunction;
|
|
59
|
-
/** "Monitor uptime" / "Metric". */
|
|
59
|
+
/** "Monitor uptime" / "Request success" / "Request latency" / "Metric". */
|
|
60
60
|
export type GetSliTypeTextFunction = (sliType: SliType | undefined | null) => string;
|
|
61
61
|
export declare const getSliTypeText: GetSliTypeTextFunction;
|
|
62
62
|
export interface SloHeadlineData {
|
|
@@ -56,7 +56,7 @@ export interface SloMultiMonitorModeText {
|
|
|
56
56
|
*/
|
|
57
57
|
export type GetSloMultiMonitorModeTextFunction = (mode: SloMultiMonitorMode | undefined | null) => SloMultiMonitorModeText;
|
|
58
58
|
export declare const getSloMultiMonitorModeText: GetSloMultiMonitorModeTextFunction;
|
|
59
|
-
/** "Monitor uptime" / "Metric". */
|
|
59
|
+
/** "Monitor uptime" / "Request success" / "Request latency" / "Metric". */
|
|
60
60
|
export type GetSliTypeTextFunction = (sliType: SliType | undefined | null) => string;
|
|
61
61
|
export declare const getSliTypeText: GetSliTypeTextFunction;
|
|
62
62
|
export interface SloHeadlineData {
|
|
@@ -104,7 +104,13 @@ const getSliTypeText = (sliType) => {
|
|
|
104
104
|
if (sliType === SliType_1.default.Metric) {
|
|
105
105
|
return "Metric";
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
if (sliType === SliType_1.default.RequestSuccess) {
|
|
108
|
+
return "Request success";
|
|
109
|
+
}
|
|
110
|
+
if (sliType === SliType_1.default.RequestLatency) {
|
|
111
|
+
return "Request latency";
|
|
112
|
+
}
|
|
113
|
+
// MonitorUptime is the column default.
|
|
108
114
|
return "Monitor uptime";
|
|
109
115
|
};
|
|
110
116
|
exports.getSliTypeText = getSliTypeText;
|
|
@@ -41,6 +41,8 @@ export interface SloRollingWindowFill {
|
|
|
41
41
|
*/
|
|
42
42
|
isNotYetFull: boolean;
|
|
43
43
|
}
|
|
44
|
+
export type GetRollingWindowFillLabelFunction = (percent: number) => string;
|
|
45
|
+
export declare const getRollingWindowFillLabel: GetRollingWindowFillLabelFunction;
|
|
44
46
|
export type GetRollingWindowFillFunction = (data: SloRollingWindowFillData) => SloRollingWindowFill | null;
|
|
45
47
|
export declare const getRollingWindowFill: GetRollingWindowFillFunction;
|
|
46
48
|
export declare enum SloBudgetRunwayKind {
|
|
@@ -41,6 +41,8 @@ export interface SloRollingWindowFill {
|
|
|
41
41
|
*/
|
|
42
42
|
isNotYetFull: boolean;
|
|
43
43
|
}
|
|
44
|
+
export type GetRollingWindowFillLabelFunction = (percent: number) => string;
|
|
45
|
+
export declare const getRollingWindowFillLabel: GetRollingWindowFillLabelFunction;
|
|
44
46
|
export type GetRollingWindowFillFunction = (data: SloRollingWindowFillData) => SloRollingWindowFill | null;
|
|
45
47
|
export declare const getRollingWindowFill: GetRollingWindowFillFunction;
|
|
46
48
|
export declare enum SloBudgetRunwayKind {
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getSloChartBucketSeconds = exports.getSloIdealBurnPoints = exports.getSloComplianceWindowRange = exports.getSloAllowedDowntime = exports.isBurnRateAtOrAboveThreshold = exports.getLowestBurnRateThreshold = exports.getSliDeltaText = exports.getSliDelta = exports.SliDeltaSide = exports.isSliBelowTarget = exports.getSliDeltaPercentagePoints = exports.getSloBudgetBarGeometry = exports.getSloBudgetRunway = exports.SloProjectionTone = exports.SloBudgetRunwayKind = exports.getRollingWindowFill = exports.getRollingWindowFillFraction = void 0;
|
|
6
|
+
exports.getSloChartBucketSeconds = exports.getSloIdealBurnPoints = exports.getSloComplianceWindowRange = exports.getSloAllowedDowntime = exports.isBurnRateAtOrAboveThreshold = exports.getLowestBurnRateThreshold = exports.getSliDeltaText = exports.getSliDelta = exports.SliDeltaSide = exports.isSliBelowTarget = exports.getSliDeltaPercentagePoints = exports.getSloBudgetBarGeometry = exports.getSloBudgetRunway = exports.SloProjectionTone = exports.SloBudgetRunwayKind = exports.getRollingWindowFill = exports.getRollingWindowFillLabel = exports.getRollingWindowFillFraction = void 0;
|
|
7
7
|
const AggregationInterval_1 = __importDefault(require("../../Types/BaseDatabase/AggregationInterval"));
|
|
8
8
|
const SloMultiMonitorMode_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloMultiMonitorMode"));
|
|
9
9
|
const SloWindowType_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloWindowType"));
|
|
@@ -107,6 +107,11 @@ const getRollingWindowFillFraction = (data) => {
|
|
|
107
107
|
return clamp(budgetTotalSeconds / fullWindowBudgetSeconds, 0, 1);
|
|
108
108
|
};
|
|
109
109
|
exports.getRollingWindowFillFraction = getRollingWindowFillFraction;
|
|
110
|
+
// "Window 23% full", or "Window under 1% full" for a brand-new SLO.
|
|
111
|
+
const getRollingWindowFillLabel = (percent) => {
|
|
112
|
+
return percent < 1 ? "Window under 1% full" : `Window ${percent}% full`;
|
|
113
|
+
};
|
|
114
|
+
exports.getRollingWindowFillLabel = getRollingWindowFillLabel;
|
|
110
115
|
const getRollingWindowFill = (data) => {
|
|
111
116
|
const fraction = (0, exports.getRollingWindowFillFraction)(data);
|
|
112
117
|
if (fraction === null) {
|
|
@@ -121,7 +126,7 @@ const getRollingWindowFill = (data) => {
|
|
|
121
126
|
return {
|
|
122
127
|
fraction: fraction,
|
|
123
128
|
percent: percent,
|
|
124
|
-
label:
|
|
129
|
+
label: (0, exports.getRollingWindowFillLabel)(percent),
|
|
125
130
|
isNotYetFull: (0, SloHealth_1.isRollingWindowNotYetFull)(data),
|
|
126
131
|
};
|
|
127
132
|
};
|