@oneuptime/common 14.0.94 → 14.0.96
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/ExceptionInstance.d.mts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.js +7 -0
- package/Models/AnalyticsModels/Log.d.mts +2 -0
- package/Models/AnalyticsModels/Log.d.ts +2 -0
- package/Models/AnalyticsModels/Log.js +7 -0
- package/Models/AnalyticsModels/SecurityEvent.d.mts +8 -0
- package/Models/AnalyticsModels/SecurityEvent.d.ts +8 -0
- package/Models/AnalyticsModels/SecurityEvent.js +55 -0
- package/Models/AnalyticsModels/Span.d.mts +4 -0
- package/Models/AnalyticsModels/Span.d.ts +4 -0
- package/Models/AnalyticsModels/Span.js +63 -0
- package/Models/DatabaseModels/CustomNotificationChannel.d.mts +16 -0
- package/Models/DatabaseModels/CustomNotificationChannel.d.ts +16 -0
- package/Models/DatabaseModels/CustomNotificationChannel.js +337 -0
- package/Models/DatabaseModels/CustomNotificationChannel.mjs +2 -0
- package/Models/DatabaseModels/DashboardPlaylist.d.mts +16 -0
- package/Models/DatabaseModels/DashboardPlaylist.d.ts +16 -0
- package/Models/DatabaseModels/DashboardPlaylist.js +314 -0
- package/Models/DatabaseModels/DashboardPlaylist.mjs +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +14 -37
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.mts +1 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.ts +1 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +27 -3
- package/Models/DatabaseModels/DetectionRuleException.d.mts +25 -0
- package/Models/DatabaseModels/DetectionRuleException.d.ts +25 -0
- package/Models/DatabaseModels/DetectionRuleException.js +412 -0
- package/Models/DatabaseModels/DetectionRuleException.mjs +2 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +107 -0
- package/Models/DatabaseModels/Index.js +8 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +40 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.d.mts +21 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.d.ts +21 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.js +357 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.mjs +2 -0
- package/Models/DatabaseModels/TeamComplianceSetting.js +2 -2
- package/Models/DatabaseModels/TeamPermission.js +5 -7
- package/Models/DatabaseModels/UserNotificationRule.d.mts +3 -0
- package/Models/DatabaseModels/UserNotificationRule.d.ts +3 -0
- package/Models/DatabaseModels/UserNotificationRule.js +67 -0
- package/Models/DatabaseModels/UserNotificationSetting.d.mts +1 -0
- package/Models/DatabaseModels/UserNotificationSetting.d.ts +1 -0
- package/Models/DatabaseModels/UserNotificationSetting.js +26 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.d.mts +3 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.d.ts +3 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +53 -0
- package/Types/AI/AIChatPermissionMode.js +11 -5
- package/Types/AI/ResourceCardFacts.d.mts +11 -0
- package/Types/AI/ResourceCardFacts.d.ts +11 -0
- package/Types/AI/ResourceCardFacts.js +80 -0
- package/Types/AI/ResourceCardFacts.mjs +4 -0
- package/Types/AnalyticsDatabase/TableColumn.d.mts +4 -0
- package/Types/AnalyticsDatabase/TableColumn.d.ts +4 -0
- package/Types/AnalyticsDatabase/TableColumn.js +7 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.mts +2 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.ts +2 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.js +4 -0
- package/Types/Backup/BackupDestinationCatalog.d.mts +2 -0
- package/Types/Backup/BackupDestinationCatalog.d.ts +2 -0
- package/Types/Backup/BackupDestinationCatalog.js +8 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.d.mts +25 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.d.ts +25 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.js +86 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.mjs +6 -0
- package/Types/CallAndSMS/CallAndSmsProvider.d.mts +23 -0
- package/Types/CallAndSMS/CallAndSmsProvider.d.ts +23 -0
- package/Types/CallAndSMS/CallAndSmsProvider.js +107 -0
- package/Types/CallAndSMS/CallAndSmsProvider.mjs +7 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +2 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +2 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +4 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +95 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +95 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +236 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +16 -0
- package/Types/Dashboard/DashboardPlaylist.d.mts +21 -0
- package/Types/Dashboard/DashboardPlaylist.d.ts +21 -0
- package/Types/Dashboard/DashboardPlaylist.js +197 -0
- package/Types/Dashboard/DashboardPlaylist.mjs +19 -0
- package/Types/Database/TableColumn.d.mts +8 -0
- package/Types/Database/TableColumn.d.ts +8 -0
- package/Types/Database/TableColumn.js +69 -23
- package/Types/Database/TableColumn.mjs +1 -0
- package/Types/HeldPermissions.d.mts +2 -0
- package/Types/HeldPermissions.d.ts +2 -0
- package/Types/HeldPermissions.js +32 -8
- package/Types/Icon/IconProp.d.mts +3 -0
- package/Types/Icon/IconProp.d.ts +3 -0
- package/Types/Icon/IconProp.js +4 -0
- package/Types/JSONFunctions.js +16 -1
- package/Types/LlmObservability/LlmConnectionCatalog.d.mts +2 -0
- package/Types/LlmObservability/LlmConnectionCatalog.d.ts +2 -0
- package/Types/LlmObservability/LlmConnectionCatalog.js +8 -0
- package/Types/Monitor/MonitorType.js +5 -4
- package/Types/Monitor/TelemetryAlertRule.d.mts +111 -0
- package/Types/Monitor/TelemetryAlertRule.d.ts +111 -0
- package/Types/Monitor/TelemetryAlertRule.js +886 -0
- package/Types/Monitor/TelemetryAlertRule.mjs +5 -0
- package/Types/Monitor/TelemetryRulePreview.d.mts +57 -0
- package/Types/Monitor/TelemetryRulePreview.d.ts +57 -0
- package/Types/Monitor/TelemetryRulePreview.js +190 -0
- package/Types/Monitor/TelemetryRulePreview.mjs +6 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +23 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +23 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.js +105 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +9 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +3 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +3 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +23 -8
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.d.mts +47 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.d.ts +47 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.js +122 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.mjs +12 -0
- package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.js +10 -1
- package/Types/Permission.d.mts +10 -0
- package/Types/Permission.d.ts +10 -0
- package/Types/Permission.js +83 -19
- package/Types/ProviderLogo/ProviderLogo.d.mts +87 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +87 -0
- package/Types/ProviderLogo/ProviderLogo.js +215 -0
- package/Types/ProviderLogo/ProviderLogo.mjs +6 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.d.mts +3 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.d.ts +3 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.js +32 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.mjs +4 -0
- package/Types/RollingTime/RollingTimeUtil.js +20 -10
- package/Types/Runbook/RunbookTriggerType.d.mts +2 -1
- package/Types/Runbook/RunbookTriggerType.d.ts +2 -1
- package/Types/Runbook/RunbookTriggerType.js +5 -1
- package/Types/SecurityCase/SecurityCaseContext.d.mts +188 -0
- package/Types/SecurityCase/SecurityCaseContext.d.ts +188 -0
- package/Types/SecurityCase/SecurityCaseContext.js +165 -0
- package/Types/SecurityCase/SecurityCaseContext.mjs +30 -0
- package/Types/SecurityCase/SecurityEntityRisk.d.mts +11 -0
- package/Types/SecurityCase/SecurityEntityRisk.d.ts +11 -0
- package/Types/SecurityCase/SecurityEntityRisk.js +9 -1
- package/Types/SecurityCase/SecurityEntityRisk.mjs +1 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +9 -0
- package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.d.mts +2 -0
- package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.d.ts +2 -0
- package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.js +5 -0
- package/Types/SecurityEvent/DetectionRetrohunt.d.mts +38 -0
- package/Types/SecurityEvent/DetectionRetrohunt.d.ts +38 -0
- package/Types/SecurityEvent/DetectionRetrohunt.js +147 -0
- package/Types/SecurityEvent/DetectionRetrohunt.mjs +10 -0
- package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +5 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +5 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.js +42 -0
- package/Types/SecurityEvent/DetectionRuleException.d.mts +65 -0
- package/Types/SecurityEvent/DetectionRuleException.d.ts +65 -0
- package/Types/SecurityEvent/DetectionRuleException.js +441 -0
- package/Types/SecurityEvent/DetectionRuleException.mjs +24 -0
- package/Types/SecurityEvent/DetectionRuleLibrary.js +330 -0
- package/Types/SecurityEvent/NormalizedSecurityEvent.d.mts +5 -0
- package/Types/SecurityEvent/NormalizedSecurityEvent.d.ts +5 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.d.mts +31 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.d.ts +31 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.js +81 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.mjs +8 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.d.mts +28 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.d.ts +28 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.js +78 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.mjs +6 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.d.mts +39 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.d.ts +39 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.js +127 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.mjs +12 -0
- package/Types/SecurityEvent/TurnOnRecommended.d.mts +2 -0
- package/Types/SecurityEvent/TurnOnRecommended.d.ts +2 -0
- package/Types/SecurityEvent/TurnOnRecommended.js +7 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +7 -1
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +7 -1
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +46 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.mjs +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +10 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +10 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +37 -1
- package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.js +17 -0
- package/Types/Team/ComplianceNotificationChannel.d.mts +2 -1
- package/Types/Team/ComplianceNotificationChannel.d.ts +2 -1
- package/Types/Team/ComplianceNotificationChannel.js +10 -1
- package/Types/Team/ComplianceRule.d.mts +8 -3
- package/Types/Team/ComplianceRule.d.ts +8 -3
- package/Types/Team/ComplianceRule.js +34 -22
- package/Types/Team/TeamComplianceStatus.d.mts +1 -0
- package/Types/Team/TeamComplianceStatus.d.ts +1 -0
- package/Types/Telemetry/OpenTelemetryGuides.d.mts +52 -0
- package/Types/Telemetry/OpenTelemetryGuides.d.ts +52 -0
- package/Types/Telemetry/OpenTelemetryGuides.js +419 -0
- package/Types/Telemetry/OpenTelemetryGuides.mjs +17 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.mts +1 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.ts +1 -0
- package/Types/Telemetry/TraceHealth.d.mts +24 -0
- package/Types/Telemetry/TraceHealth.d.ts +24 -0
- package/Types/Telemetry/TraceHealth.js +97 -0
- package/Types/Telemetry/TraceHealth.mjs +4 -0
- package/Types/Telemetry/TraceSpanType.d.mts +90 -0
- package/Types/Telemetry/TraceSpanType.d.ts +90 -0
- package/Types/Telemetry/TraceSpanType.js +238 -0
- package/Types/Telemetry/TraceSpanType.mjs +19 -0
- package/Types/Theme/ThemePreference.d.mts +26 -0
- package/Types/Theme/ThemePreference.d.ts +26 -0
- package/Types/Theme/ThemePreference.js +104 -0
- package/Types/Theme/ThemePreference.mjs +12 -0
- package/Types/Workflow/Component.d.mts +3 -0
- package/Types/Workflow/Component.d.ts +3 -0
- package/Types/Workflow/Components/Discord.js +2 -0
- package/Types/Workflow/Components/Mattermost.js +2 -0
- package/Types/Workflow/Components/MicrosoftTeams.js +2 -0
- package/Types/Workflow/Components/Slack.js +2 -0
- package/Types/Workflow/Components/Telegram.js +2 -0
- package/Types/Workflow/Components.js +6 -0
- package/Types/Workflow/Templates.js +5 -3
- package/Utils/ColorContrast.d.mts +0 -3
- package/Utils/ColorContrast.d.ts +0 -3
- package/Utils/ColorContrast.js +3 -41
- package/Utils/ColorContrast.mjs +0 -2
- package/Utils/NameInitials.d.mts +5 -0
- package/Utils/NameInitials.d.ts +5 -0
- package/Utils/NameInitials.js +92 -0
- package/Utils/NameInitials.mjs +6 -0
- package/Utils/OldestKeyCursor.d.mts +7 -0
- package/Utils/OldestKeyCursor.d.ts +7 -0
- package/Utils/OldestKeyCursor.js +68 -0
- package/Utils/OldestKeyCursor.mjs +2 -0
- package/Utils/Schema/OpenApiMetadataRegistry.d.mts +4 -0
- package/Utils/Schema/OpenApiMetadataRegistry.d.ts +4 -0
- package/Utils/Schema/OpenApiMetadataRegistry.js +20 -0
- package/Utils/Schema/OpenApiMetadataRegistry.mjs +2 -0
- package/Utils/Schema/Zod.js +6 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.d.mts +41 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.d.ts +41 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.js +215 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.mjs +6 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.d.mts +46 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.d.ts +46 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.js +327 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.mjs +17 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +5 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +5 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +22 -2
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +2 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +20 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +20 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +347 -31
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +11 -0
- package/Utils/SecurityEvent/RequestFollowUp.d.mts +4 -0
- package/Utils/SecurityEvent/RequestFollowUp.d.ts +4 -0
- package/Utils/SecurityEvent/RequestFollowUp.js +127 -0
- package/Utils/SecurityEvent/RequestFollowUp.mjs +3 -0
- package/Utils/SecurityEvent/RequestOutcome.d.mts +80 -0
- package/Utils/SecurityEvent/RequestOutcome.d.ts +80 -0
- package/Utils/SecurityEvent/RequestOutcome.js +371 -0
- package/Utils/SecurityEvent/RequestOutcome.mjs +18 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.d.mts +76 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.d.ts +76 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.js +348 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.mjs +15 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.d.mts +61 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.d.ts +61 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.js +260 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.mjs +17 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.d.mts +30 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.d.ts +30 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.js +134 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.mjs +8 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.d.mts +40 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.d.ts +40 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.js +190 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.mjs +6 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.mts +57 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.ts +57 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +491 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.mjs +27 -0
- package/Utils/Telemetry/EntrySpan.d.mts +8 -0
- package/Utils/Telemetry/EntrySpan.d.ts +8 -0
- package/Utils/Telemetry/EntrySpan.js +53 -0
- package/Utils/Telemetry/EntrySpan.mjs +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import ObjectID from "../ObjectID.mjs";
|
|
2
|
+
import RollingTime from "../RollingTime/RollingTime.mjs";
|
|
3
|
+
import { CriteriaAlert } from "./CriteriaAlert.mjs";
|
|
4
|
+
import { CheckOn, EvaluateOverTimeType, FilterType, MetricAnomalyDetectionOptions, NoDataPolicy } from "./CriteriaFilter.mjs";
|
|
5
|
+
import { CriteriaIncident } from "./CriteriaIncident.mjs";
|
|
6
|
+
import MonitorCriteria from "./MonitorCriteria.mjs";
|
|
7
|
+
import MonitorStep from "./MonitorStep.mjs";
|
|
8
|
+
import MonitorType from "./MonitorType.mjs";
|
|
9
|
+
export declare enum TelemetryAlertRuleAction {
|
|
10
|
+
Alert = "Alert",
|
|
11
|
+
Incident = "Incident",
|
|
12
|
+
AlertAndIncident = "AlertAndIncident",
|
|
13
|
+
StatusOnly = "StatusOnly"
|
|
14
|
+
}
|
|
15
|
+
export declare enum TelemetryAlertRuleRecovery {
|
|
16
|
+
DefaultStatus = "DefaultStatus",
|
|
17
|
+
Opposite = "Opposite",
|
|
18
|
+
OppositeWithMargin = "OppositeWithMargin",
|
|
19
|
+
Disjoint = "Disjoint"
|
|
20
|
+
}
|
|
21
|
+
export declare enum TelemetryAlertRuleShapeProblem {
|
|
22
|
+
NotARuleMonitorType = "NotARuleMonitorType",
|
|
23
|
+
NoCriteria = "NoCriteria",
|
|
24
|
+
SeveralRules = "SeveralRules",
|
|
25
|
+
DisabledRule = "DisabledRule",
|
|
26
|
+
SeveralFilters = "SeveralFilters",
|
|
27
|
+
OtherCheck = "OtherCheck",
|
|
28
|
+
UnsupportedCondition = "UnsupportedCondition",
|
|
29
|
+
SeveralIncidentsOrAlerts = "SeveralIncidentsOrAlerts",
|
|
30
|
+
GroupedIncidents = "GroupedIncidents",
|
|
31
|
+
UnknownMetric = "UnknownMetric"
|
|
32
|
+
}
|
|
33
|
+
export interface TelemetryAlertRule {
|
|
34
|
+
filterType: FilterType;
|
|
35
|
+
threshold: number | undefined;
|
|
36
|
+
windowInSeconds: number | undefined;
|
|
37
|
+
rollingTime: RollingTime | undefined;
|
|
38
|
+
metricAlias: string | undefined;
|
|
39
|
+
metricAggregationType: EvaluateOverTimeType | undefined;
|
|
40
|
+
onNoDataPolicy: NoDataPolicy | undefined;
|
|
41
|
+
thresholdUnit: string | undefined;
|
|
42
|
+
anomalyDetection: MetricAnomalyDetectionOptions | undefined;
|
|
43
|
+
action: TelemetryAlertRuleAction;
|
|
44
|
+
monitorStatusId: ObjectID | undefined;
|
|
45
|
+
incident: CriteriaIncident | undefined;
|
|
46
|
+
alert: CriteriaAlert | undefined;
|
|
47
|
+
name: string;
|
|
48
|
+
ruleCriteriaId: string;
|
|
49
|
+
recovery: TelemetryAlertRuleRecovery;
|
|
50
|
+
}
|
|
51
|
+
export interface TelemetryAlertRuleReadResult {
|
|
52
|
+
rule: TelemetryAlertRule | null;
|
|
53
|
+
problem: TelemetryAlertRuleShapeProblem | null;
|
|
54
|
+
}
|
|
55
|
+
export default class TelemetryAlertRuleUtil {
|
|
56
|
+
static readonly RULE_MONITOR_TYPES: ReadonlyArray<MonitorType>;
|
|
57
|
+
static isRuleMonitorType(monitorType: MonitorType | undefined): boolean;
|
|
58
|
+
static getMeasureCheckOn(monitorType: MonitorType): CheckOn | null;
|
|
59
|
+
static isCountMonitorType(monitorType: MonitorType): boolean;
|
|
60
|
+
static supportsAnomaly(monitorType: MonitorType): boolean;
|
|
61
|
+
static getComparisons(data: {
|
|
62
|
+
monitorType: MonitorType;
|
|
63
|
+
current?: FilterType | undefined;
|
|
64
|
+
}): Array<FilterType>;
|
|
65
|
+
static isAnomaly(filterType: FilterType | undefined): boolean;
|
|
66
|
+
static getWindowInSeconds(data: {
|
|
67
|
+
monitorType: MonitorType;
|
|
68
|
+
monitorStep: MonitorStep;
|
|
69
|
+
}): number | undefined;
|
|
70
|
+
static getRollingTime(monitorStep: MonitorStep): RollingTime;
|
|
71
|
+
static getMetricAliases(monitorStep: MonitorStep): Array<string>;
|
|
72
|
+
static read(data: {
|
|
73
|
+
monitorType: MonitorType;
|
|
74
|
+
monitorStep: MonitorStep;
|
|
75
|
+
defaultMonitorStatusId: ObjectID | undefined;
|
|
76
|
+
}): TelemetryAlertRuleReadResult;
|
|
77
|
+
static write(data: {
|
|
78
|
+
monitorType: MonitorType;
|
|
79
|
+
monitorStep: MonitorStep;
|
|
80
|
+
rule: TelemetryAlertRule;
|
|
81
|
+
}): MonitorStep;
|
|
82
|
+
static buildCriteria(data: {
|
|
83
|
+
monitorType: MonitorType;
|
|
84
|
+
rule: TelemetryAlertRule;
|
|
85
|
+
}): MonitorCriteria;
|
|
86
|
+
static writeWindow(data: {
|
|
87
|
+
monitorType: MonitorType;
|
|
88
|
+
monitorStep: MonitorStep;
|
|
89
|
+
rule: Pick<TelemetryAlertRule, "windowInSeconds" | "rollingTime">;
|
|
90
|
+
}): void;
|
|
91
|
+
static matches(data: {
|
|
92
|
+
filterType: FilterType;
|
|
93
|
+
threshold: number;
|
|
94
|
+
value: number;
|
|
95
|
+
}): boolean;
|
|
96
|
+
private static isReadableComparison;
|
|
97
|
+
private static getRuleInstanceProblem;
|
|
98
|
+
private static isRecoveryCandidate;
|
|
99
|
+
private static getRecoveryKind;
|
|
100
|
+
private static compareFilterSets;
|
|
101
|
+
private static getAction;
|
|
102
|
+
private static newRuleInstance;
|
|
103
|
+
private static buildRuleFilter;
|
|
104
|
+
private static buildRecoveryFilter;
|
|
105
|
+
private static getOppositeFilterType;
|
|
106
|
+
private static applyRuleToInstance;
|
|
107
|
+
private static isSameComparison;
|
|
108
|
+
static toNumber(value: unknown): number | undefined;
|
|
109
|
+
private static isSameNumber;
|
|
110
|
+
private static setOrDelete;
|
|
111
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import ObjectID from "../ObjectID";
|
|
2
|
+
import RollingTime from "../RollingTime/RollingTime";
|
|
3
|
+
import { CriteriaAlert } from "./CriteriaAlert";
|
|
4
|
+
import { CheckOn, EvaluateOverTimeType, FilterType, MetricAnomalyDetectionOptions, NoDataPolicy } from "./CriteriaFilter";
|
|
5
|
+
import { CriteriaIncident } from "./CriteriaIncident";
|
|
6
|
+
import MonitorCriteria from "./MonitorCriteria";
|
|
7
|
+
import MonitorStep from "./MonitorStep";
|
|
8
|
+
import MonitorType from "./MonitorType";
|
|
9
|
+
export declare enum TelemetryAlertRuleAction {
|
|
10
|
+
Alert = "Alert",
|
|
11
|
+
Incident = "Incident",
|
|
12
|
+
AlertAndIncident = "AlertAndIncident",
|
|
13
|
+
StatusOnly = "StatusOnly"
|
|
14
|
+
}
|
|
15
|
+
export declare enum TelemetryAlertRuleRecovery {
|
|
16
|
+
DefaultStatus = "DefaultStatus",
|
|
17
|
+
Opposite = "Opposite",
|
|
18
|
+
OppositeWithMargin = "OppositeWithMargin",
|
|
19
|
+
Disjoint = "Disjoint"
|
|
20
|
+
}
|
|
21
|
+
export declare enum TelemetryAlertRuleShapeProblem {
|
|
22
|
+
NotARuleMonitorType = "NotARuleMonitorType",
|
|
23
|
+
NoCriteria = "NoCriteria",
|
|
24
|
+
SeveralRules = "SeveralRules",
|
|
25
|
+
DisabledRule = "DisabledRule",
|
|
26
|
+
SeveralFilters = "SeveralFilters",
|
|
27
|
+
OtherCheck = "OtherCheck",
|
|
28
|
+
UnsupportedCondition = "UnsupportedCondition",
|
|
29
|
+
SeveralIncidentsOrAlerts = "SeveralIncidentsOrAlerts",
|
|
30
|
+
GroupedIncidents = "GroupedIncidents",
|
|
31
|
+
UnknownMetric = "UnknownMetric"
|
|
32
|
+
}
|
|
33
|
+
export interface TelemetryAlertRule {
|
|
34
|
+
filterType: FilterType;
|
|
35
|
+
threshold: number | undefined;
|
|
36
|
+
windowInSeconds: number | undefined;
|
|
37
|
+
rollingTime: RollingTime | undefined;
|
|
38
|
+
metricAlias: string | undefined;
|
|
39
|
+
metricAggregationType: EvaluateOverTimeType | undefined;
|
|
40
|
+
onNoDataPolicy: NoDataPolicy | undefined;
|
|
41
|
+
thresholdUnit: string | undefined;
|
|
42
|
+
anomalyDetection: MetricAnomalyDetectionOptions | undefined;
|
|
43
|
+
action: TelemetryAlertRuleAction;
|
|
44
|
+
monitorStatusId: ObjectID | undefined;
|
|
45
|
+
incident: CriteriaIncident | undefined;
|
|
46
|
+
alert: CriteriaAlert | undefined;
|
|
47
|
+
name: string;
|
|
48
|
+
ruleCriteriaId: string;
|
|
49
|
+
recovery: TelemetryAlertRuleRecovery;
|
|
50
|
+
}
|
|
51
|
+
export interface TelemetryAlertRuleReadResult {
|
|
52
|
+
rule: TelemetryAlertRule | null;
|
|
53
|
+
problem: TelemetryAlertRuleShapeProblem | null;
|
|
54
|
+
}
|
|
55
|
+
export default class TelemetryAlertRuleUtil {
|
|
56
|
+
static readonly RULE_MONITOR_TYPES: ReadonlyArray<MonitorType>;
|
|
57
|
+
static isRuleMonitorType(monitorType: MonitorType | undefined): boolean;
|
|
58
|
+
static getMeasureCheckOn(monitorType: MonitorType): CheckOn | null;
|
|
59
|
+
static isCountMonitorType(monitorType: MonitorType): boolean;
|
|
60
|
+
static supportsAnomaly(monitorType: MonitorType): boolean;
|
|
61
|
+
static getComparisons(data: {
|
|
62
|
+
monitorType: MonitorType;
|
|
63
|
+
current?: FilterType | undefined;
|
|
64
|
+
}): Array<FilterType>;
|
|
65
|
+
static isAnomaly(filterType: FilterType | undefined): boolean;
|
|
66
|
+
static getWindowInSeconds(data: {
|
|
67
|
+
monitorType: MonitorType;
|
|
68
|
+
monitorStep: MonitorStep;
|
|
69
|
+
}): number | undefined;
|
|
70
|
+
static getRollingTime(monitorStep: MonitorStep): RollingTime;
|
|
71
|
+
static getMetricAliases(monitorStep: MonitorStep): Array<string>;
|
|
72
|
+
static read(data: {
|
|
73
|
+
monitorType: MonitorType;
|
|
74
|
+
monitorStep: MonitorStep;
|
|
75
|
+
defaultMonitorStatusId: ObjectID | undefined;
|
|
76
|
+
}): TelemetryAlertRuleReadResult;
|
|
77
|
+
static write(data: {
|
|
78
|
+
monitorType: MonitorType;
|
|
79
|
+
monitorStep: MonitorStep;
|
|
80
|
+
rule: TelemetryAlertRule;
|
|
81
|
+
}): MonitorStep;
|
|
82
|
+
static buildCriteria(data: {
|
|
83
|
+
monitorType: MonitorType;
|
|
84
|
+
rule: TelemetryAlertRule;
|
|
85
|
+
}): MonitorCriteria;
|
|
86
|
+
static writeWindow(data: {
|
|
87
|
+
monitorType: MonitorType;
|
|
88
|
+
monitorStep: MonitorStep;
|
|
89
|
+
rule: Pick<TelemetryAlertRule, "windowInSeconds" | "rollingTime">;
|
|
90
|
+
}): void;
|
|
91
|
+
static matches(data: {
|
|
92
|
+
filterType: FilterType;
|
|
93
|
+
threshold: number;
|
|
94
|
+
value: number;
|
|
95
|
+
}): boolean;
|
|
96
|
+
private static isReadableComparison;
|
|
97
|
+
private static getRuleInstanceProblem;
|
|
98
|
+
private static isRecoveryCandidate;
|
|
99
|
+
private static getRecoveryKind;
|
|
100
|
+
private static compareFilterSets;
|
|
101
|
+
private static getAction;
|
|
102
|
+
private static newRuleInstance;
|
|
103
|
+
private static buildRuleFilter;
|
|
104
|
+
private static buildRecoveryFilter;
|
|
105
|
+
private static getOppositeFilterType;
|
|
106
|
+
private static applyRuleToInstance;
|
|
107
|
+
private static isSameComparison;
|
|
108
|
+
static toNumber(value: unknown): number | undefined;
|
|
109
|
+
private static isSameNumber;
|
|
110
|
+
private static setOrDelete;
|
|
111
|
+
}
|