@oneuptime/common 14.1.0 → 14.2.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/DatabaseModels/Alert.d.mts +1 -0
- package/Models/DatabaseModels/Alert.d.ts +1 -0
- package/Models/DatabaseModels/Alert.js +34 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +62 -0
- package/Models/DatabaseModels/Incident.d.mts +1 -0
- package/Models/DatabaseModels/Incident.d.ts +1 -0
- package/Models/DatabaseModels/Incident.js +35 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.mts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.ts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.js +591 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.mjs +3 -0
- package/Models/DatabaseModels/Index.js +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +1 -1
- package/Types/AI/AIActionWords.d.mts +3 -1
- package/Types/AI/AIActionWords.d.ts +3 -1
- package/Types/AI/AIActionWords.js +70 -1
- package/Types/AI/AIActionWords.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AIReadTableWords.d.mts +192 -0
- package/Types/AI/AIReadTableWords.d.ts +192 -0
- package/Types/AI/AIReadTableWords.js +368 -0
- package/Types/AI/AIReadTableWords.mjs +18 -0
- package/Types/AI/AiRunRefusal.d.mts +3 -0
- package/Types/AI/AiRunRefusal.d.ts +3 -0
- package/Types/AI/AiRunRefusal.js +22 -1
- package/Types/AI/ResourceAiAccessPermissions.js +7 -18
- package/Types/AuditLog/AuditLogActionLabel.js +19 -9
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.js +123 -16
- package/Types/Cloud/CloudResourceHealth.d.mts +30 -1
- package/Types/Cloud/CloudResourceHealth.d.ts +30 -1
- package/Types/Cloud/CloudResourceHealth.js +405 -13
- package/Types/Cloud/CloudResourceHealth.mjs +28 -0
- package/Types/DataObservability/DataCheckRefusals.d.mts +32 -0
- package/Types/DataObservability/DataCheckRefusals.d.ts +32 -0
- package/Types/DataObservability/DataCheckRefusals.js +77 -0
- package/Types/DataObservability/DataCheckRefusals.mjs +8 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
- package/Types/Date.d.mts +2 -0
- package/Types/Date.d.ts +2 -0
- package/Types/Date.js +22 -0
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +8 -5
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Exception/EgressGuardException.js +1 -1
- package/Types/Exception/ErrorMessageRule.d.mts +1 -0
- package/Types/Exception/ErrorMessageRule.d.ts +1 -0
- package/Types/Exception/ErrorMessageRule.js +67 -13
- package/Types/Exception/ErrorMessageRule.mjs +1 -0
- package/Types/Exception/ExceptionMessages.d.mts +2 -0
- package/Types/Exception/ExceptionMessages.d.ts +2 -0
- package/Types/Exception/ExceptionMessages.js +2 -0
- package/Types/Incident/PostmortemActionItemStatus.d.mts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.d.ts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.js +74 -0
- package/Types/Incident/PostmortemActionItemStatus.mjs +5 -0
- package/Types/JSONFunctions.js +10 -3
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -0
- package/Types/MeaningKeys.d.mts +4 -0
- package/Types/MeaningKeys.d.ts +4 -0
- package/Types/MeaningKeys.js +74 -0
- package/Types/MeaningKeys.mjs +5 -0
- package/Types/Monitor/WhoIsTold.d.mts +3 -0
- package/Types/Monitor/WhoIsTold.d.ts +3 -0
- package/Types/Monitor/WhoIsTold.js +63 -13
- package/Types/NoBreakSpaces.d.mts +16 -0
- package/Types/NoBreakSpaces.d.ts +16 -0
- package/Types/NoBreakSpaces.js +419 -0
- package/Types/NoBreakSpaces.mjs +9 -0
- package/Types/NotificationRule/PagingLadder.d.mts +12 -0
- package/Types/NotificationRule/PagingLadder.d.ts +12 -0
- package/Types/NotificationRule/PagingLadder.js +159 -11
- package/Types/NotificationRule/PagingLadder.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.mts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +42 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +4 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.js +21 -20
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +125 -1
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +12 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
- package/Types/OpenStack/OpenStackCapacity.js +12 -5
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +64 -8
- package/Types/Product/ProductUsage.js +2 -1
- package/Types/Product/ProjectProductsAnswer.js +2 -1
- package/Types/ResourceAiAgent/AiResourceType.d.mts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.d.ts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.js +12 -0
- package/Types/Rum/ProductAnalyticsEventReads.js +10 -1
- package/Types/Rum/ProductAnalyticsEvents.js +13 -1
- package/Types/Rum/SessionReplayCustomEvents.d.mts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.d.ts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.js +12 -0
- package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
- package/Types/SetupHealth/SetupHealth.d.mts +1 -0
- package/Types/SetupHealth/SetupHealth.d.ts +1 -0
- package/Types/SetupHealth/SetupHealth.js +13 -5
- package/Types/StatusPage/DefaultStatusNames.d.mts +11 -3
- package/Types/StatusPage/DefaultStatusNames.d.ts +11 -3
- package/Types/StatusPage/DefaultStatusNames.js +74 -28
- package/Types/StatusPage/DefaultStatusNames.mjs +9 -2
- package/Types/StatusPage/StateChangeNoteMessage.d.mts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.d.ts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.js +16 -13
- package/Types/Telemetry/TelemetryIngestionKeyType.js +7 -6
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +100 -19
- package/Types/Translator.mjs +1 -0
- package/Types/UserSession/SessionLength.d.mts +33 -0
- package/Types/UserSession/SessionLength.d.ts +33 -0
- package/Types/UserSession/SessionLength.js +134 -5
- package/Types/UserSession/SessionLength.mjs +5 -0
- package/Types/Workflow/WorkflowStatus.js +21 -10
- package/Utils/AI/InvestigationReport.js +2 -2
- package/Utils/API.d.mts +0 -11
- package/Utils/API.d.ts +0 -11
- package/Utils/API.js +0 -432
- package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +2 -2
- package/Utils/AiRemediation/VerifiedFixRunbook.d.mts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.d.ts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.js +231 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.mjs +10 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +11 -2
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.js +5 -3
- package/Utils/DefaultRecordNames.d.mts +6 -0
- package/Utils/DefaultRecordNames.d.ts +6 -0
- package/Utils/DefaultRecordNames.js +122 -0
- package/Utils/DefaultRecordNames.mjs +6 -0
- package/Utils/Grok/Grok.js +7 -4
- package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +107 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +10 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.mts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.ts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.js +118 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.mjs +12 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.mts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.ts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.js +544 -0
- package/Utils/Incident/PostmortemNoteActionItems.mjs +7 -0
- package/Utils/LookupTable.d.mts +3 -0
- package/Utils/LookupTable.d.ts +3 -0
- package/Utils/LookupTable.js +61 -0
- package/Utils/LookupTable.mjs +3 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +101 -1
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +2 -0
- package/Utils/Markdown/OverLongText.js +296 -2
- package/Utils/Markdown/SlowMarkdown.d.mts +1 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +1 -0
- package/Utils/Markdown/SlowMarkdown.js +354 -4
- package/Utils/Markdown/SlowMarkdown.mjs +1 -0
- package/Utils/Metrics/MetricFormulaEvaluator.js +10 -4
- package/Utils/Metrics/MetricSeriesFingerprint.js +13 -4
- package/Utils/Metrics/MetricSeriesScope.d.mts +5 -0
- package/Utils/Metrics/MetricSeriesScope.d.ts +5 -0
- package/Utils/Metrics/MetricSeriesScope.js +5 -1
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +3 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +3 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +100 -11
- package/Utils/Monitor/ProbeAgreementRule.d.mts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.d.ts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.js +58 -0
- package/Utils/Monitor/ProbeAgreementRule.mjs +3 -0
- package/Utils/Monitor/ProbeFailureReading.d.mts +4 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +4 -0
- package/Utils/Monitor/ProbeFailureReading.js +30 -1
- package/Utils/Monitor/ProbeFailureReading.mjs +1 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.mts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.ts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.js +252 -0
- package/Utils/Monitor/RequestFailureDescriptions.mjs +6 -0
- package/Utils/PromQL/PromQLEngine.js +18 -9
- package/Utils/PromQL/PromQLFunctionEvaluators.js +114 -58
- package/Utils/PromQL/PromQLLabelOrder.d.mts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.d.ts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.js +212 -0
- package/Utils/PromQL/PromQLLabelOrder.mjs +6 -0
- package/Utils/PromQL/PromQLLabels.js +4 -3
- package/Utils/PromQL/PromQLMetricNames.js +8 -2
- package/Utils/PromQL/PromQLParser.js +11 -6
- package/Utils/PromQL/PromQLRegex.d.mts +11 -0
- package/Utils/PromQL/PromQLRegex.d.ts +11 -0
- package/Utils/PromQL/PromQLRegex.js +990 -50
- package/Utils/PromQL/PromQLRegex.mjs +3 -0
- package/Utils/PromQL/PrometheusResponse.js +3 -1
- package/Utils/PromQL/RE2CharacterClass.d.mts +24 -0
- package/Utils/PromQL/RE2CharacterClass.d.ts +24 -0
- package/Utils/PromQL/RE2CharacterClass.js +532 -0
- package/Utils/PromQL/RE2CharacterClass.mjs +16 -0
- package/Utils/RequestFailedDetailsUtil.d.mts +15 -0
- package/Utils/RequestFailedDetailsUtil.d.ts +15 -0
- package/Utils/RequestFailedDetailsUtil.js +452 -0
- package/Utils/RequestFailedDetailsUtil.mjs +2 -0
- package/Utils/Rum/UrlScrubber.d.mts +1 -1
- package/Utils/Rum/UrlScrubber.d.ts +1 -1
- package/Utils/Rum/UrlScrubber.js +10 -4
- package/Utils/Rum/UserFlow.js +22 -4
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.mts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.js +99 -17
- package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +3 -0
- package/Utils/Sms/OnCallPageSms.d.mts +2 -0
- package/Utils/Sms/OnCallPageSms.d.ts +2 -0
- package/Utils/Sms/OnCallPageSms.js +3 -1
- package/Utils/StateListType.d.mts +11 -0
- package/Utils/StateListType.d.ts +11 -0
- package/Utils/StateListType.js +21 -0
- package/Utils/StateListType.mjs +2 -0
- package/Utils/StateOrder.d.mts +8 -11
- package/Utils/StateOrder.d.ts +8 -11
- package/Utils/StateOrder.js +49 -84
- package/Utils/StateOrder.mjs +2 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.mts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.ts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.js +25 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.mjs +2 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.mts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.ts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.js +39 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.mjs +2 -0
- package/Utils/Syslog/SyslogMessageParser.js +16 -6
- package/Utils/Telemetry/HeartbeatAvailability.js +16 -21
- package/Utils/ValueFormatter.d.mts +1 -0
- package/Utils/ValueFormatter.d.ts +1 -0
- package/Utils/ValueFormatter.js +258 -18
- package/package.json +1 -1
|
@@ -80,6 +80,7 @@ export default class Alert extends BaseModel {
|
|
|
80
80
|
aiInvestigationWaitUntil?: Date;
|
|
81
81
|
groupingWaitKey?: string;
|
|
82
82
|
isOwnerNotifiedOfAlertCreation?: boolean;
|
|
83
|
+
createdNotificationHeldAt?: Date;
|
|
83
84
|
rootCause?: string;
|
|
84
85
|
createdStateLog?: JSONObject;
|
|
85
86
|
createdCriteriaId?: string;
|
|
@@ -80,6 +80,7 @@ export default class Alert extends BaseModel {
|
|
|
80
80
|
aiInvestigationWaitUntil?: Date;
|
|
81
81
|
groupingWaitKey?: string;
|
|
82
82
|
isOwnerNotifiedOfAlertCreation?: boolean;
|
|
83
|
+
createdNotificationHeldAt?: Date;
|
|
83
84
|
rootCause?: string;
|
|
84
85
|
createdStateLog?: JSONObject;
|
|
85
86
|
createdCriteriaId?: string;
|
|
@@ -146,6 +146,17 @@ let Alert = class Alert extends DatabaseBaseModel_1.default {
|
|
|
146
146
|
*/
|
|
147
147
|
this.groupingWaitKey = undefined;
|
|
148
148
|
this.isOwnerNotifiedOfAlertCreation = undefined;
|
|
149
|
+
/*
|
|
150
|
+
* While the owners' "Alert Created" notification is held for the alert's
|
|
151
|
+
* owners (CreatedNotificationHold): when the hold began, as the alert was
|
|
152
|
+
* written. Cleared when the hold is let go - every owner its create adds
|
|
153
|
+
* is in - and when the Created job takes it. A hold nobody lets go,
|
|
154
|
+
* because the process that made the alert stopped, ends by itself: the
|
|
155
|
+
* job takes it once it is old enough. Null for every other alert.
|
|
156
|
+
* Written by the create's hook - which is why it is computed: no
|
|
157
|
+
* caller's create is refused for it - and by nobody else.
|
|
158
|
+
*/
|
|
159
|
+
this.createdNotificationHeldAt = undefined;
|
|
149
160
|
this.rootCause = undefined;
|
|
150
161
|
this.createdStateLog = undefined;
|
|
151
162
|
this.createdCriteriaId = undefined;
|
|
@@ -2168,6 +2179,19 @@ __decorate([
|
|
|
2168
2179
|
}),
|
|
2169
2180
|
__metadata("design:type", Boolean)
|
|
2170
2181
|
], Alert.prototype, "isOwnerNotifiedOfAlertCreation", void 0);
|
|
2182
|
+
__decorate([
|
|
2183
|
+
(0, ColumnAccessControl_1.default)({ create: [], read: [], update: [] }),
|
|
2184
|
+
(0, TableColumn_1.default)({
|
|
2185
|
+
required: false,
|
|
2186
|
+
computed: true,
|
|
2187
|
+
hideColumnInDocumentation: true,
|
|
2188
|
+
type: TableColumnType_1.default.Date,
|
|
2189
|
+
title: "Created Notification Held At",
|
|
2190
|
+
description: "Internal: while the owners' Alert Created notification waits for every owner the alert's create adds, when it started waiting.",
|
|
2191
|
+
}),
|
|
2192
|
+
(0, typeorm_1.Column)({ type: ColumnType_1.default.Date, nullable: true }),
|
|
2193
|
+
__metadata("design:type", Date)
|
|
2194
|
+
], Alert.prototype, "createdNotificationHeldAt", void 0);
|
|
2171
2195
|
__decorate([
|
|
2172
2196
|
(0, ColumnAccessControl_1.default)({
|
|
2173
2197
|
create: [
|
|
@@ -2978,5 +3002,15 @@ Alert = __decorate([
|
|
|
2978
3002
|
(0, typeorm_1.Index)(["groupingWaitKey", "createdAt"], {
|
|
2979
3003
|
where: '"groupingWaitKey" IS NOT NULL AND "deletedAt" IS NULL',
|
|
2980
3004
|
})
|
|
3005
|
+
/*
|
|
3006
|
+
* The alerts whose owners' "Alert Created" notification is held for their
|
|
3007
|
+
* owners (CreatedNotificationHold): the few being created at any moment, so
|
|
3008
|
+
* the index holds only them, and the Created job's read of a hold nobody
|
|
3009
|
+
* let go (createdNotificationHeldAt <= then) implies its predicate.
|
|
3010
|
+
*/
|
|
3011
|
+
,
|
|
3012
|
+
(0, typeorm_1.Index)(["createdNotificationHeldAt"], {
|
|
3013
|
+
where: '"createdNotificationHeldAt" IS NOT NULL AND "deletedAt" IS NULL',
|
|
3014
|
+
})
|
|
2981
3015
|
], Alert);
|
|
2982
3016
|
exports.default = Alert;
|
|
@@ -31,6 +31,8 @@ export default class AutoRemediationSuggestion extends BaseModel {
|
|
|
31
31
|
runbook?: Runbook;
|
|
32
32
|
runbookId?: ObjectID;
|
|
33
33
|
runbookNameSnapshot?: string;
|
|
34
|
+
savedAsRunbook?: Runbook;
|
|
35
|
+
savedAsRunbookId?: ObjectID;
|
|
34
36
|
runbookTrackRecord?: JSONObject;
|
|
35
37
|
status?: AutoRemediationSuggestionStatus;
|
|
36
38
|
executionMode?: AutoRemediationExecutionMode;
|
|
@@ -31,6 +31,8 @@ export default class AutoRemediationSuggestion extends BaseModel {
|
|
|
31
31
|
runbook?: Runbook;
|
|
32
32
|
runbookId?: ObjectID;
|
|
33
33
|
runbookNameSnapshot?: string;
|
|
34
|
+
savedAsRunbook?: Runbook;
|
|
35
|
+
savedAsRunbookId?: ObjectID;
|
|
34
36
|
runbookTrackRecord?: JSONObject;
|
|
35
37
|
status?: AutoRemediationSuggestionStatus;
|
|
36
38
|
executionMode?: AutoRemediationExecutionMode;
|
|
@@ -81,6 +81,15 @@ let AutoRemediationSuggestion = class AutoRemediationSuggestion extends Database
|
|
|
81
81
|
this.runbook = undefined;
|
|
82
82
|
this.runbookId = undefined;
|
|
83
83
|
this.runbookNameSnapshot = undefined;
|
|
84
|
+
/*
|
|
85
|
+
* The runbook a verified fix was saved as (issue #6801): written by
|
|
86
|
+
* OneUptime from the commands the fix ran, turned off until someone
|
|
87
|
+
* reviews it (VerifiedFixRunbook). Set once, by Save as Runbook on the
|
|
88
|
+
* fix; cleared when that runbook is deleted, so the fix can be saved
|
|
89
|
+
* again.
|
|
90
|
+
*/
|
|
91
|
+
this.savedAsRunbook = undefined;
|
|
92
|
+
this.savedAsRunbookId = undefined;
|
|
84
93
|
/*
|
|
85
94
|
* How the proposed runbook went the last times OneUptime AI ran it as a
|
|
86
95
|
* fix for other incidents and alerts of the project, when it was proposed
|
|
@@ -559,6 +568,59 @@ __decorate([
|
|
|
559
568
|
}),
|
|
560
569
|
__metadata("design:type", String)
|
|
561
570
|
], AutoRemediationSuggestion.prototype, "runbookNameSnapshot", void 0);
|
|
571
|
+
__decorate([
|
|
572
|
+
(0, ColumnAccessControl_1.default)({
|
|
573
|
+
create: [],
|
|
574
|
+
read: [
|
|
575
|
+
Permission_1.default.ProjectOwner,
|
|
576
|
+
Permission_1.default.ProjectAdmin,
|
|
577
|
+
Permission_1.default.ProjectMember,
|
|
578
|
+
],
|
|
579
|
+
update: [],
|
|
580
|
+
}),
|
|
581
|
+
(0, TableColumn_1.default)({
|
|
582
|
+
manyToOneRelationColumn: "savedAsRunbookId",
|
|
583
|
+
type: TableColumnType_1.default.Entity,
|
|
584
|
+
modelType: Runbook_1.default,
|
|
585
|
+
title: "Saved As Runbook",
|
|
586
|
+
description: "The runbook this fix was saved as once it was verified: written from the commands that ran, and off until someone reviews it.",
|
|
587
|
+
}),
|
|
588
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
589
|
+
return Runbook_1.default;
|
|
590
|
+
}, {
|
|
591
|
+
eager: false,
|
|
592
|
+
nullable: true,
|
|
593
|
+
onDelete: "SET NULL",
|
|
594
|
+
orphanedRowAction: "nullify",
|
|
595
|
+
}),
|
|
596
|
+
(0, typeorm_1.JoinColumn)({ name: "savedAsRunbookId" }),
|
|
597
|
+
__metadata("design:type", Runbook_1.default)
|
|
598
|
+
], AutoRemediationSuggestion.prototype, "savedAsRunbook", void 0);
|
|
599
|
+
__decorate([
|
|
600
|
+
(0, ColumnAccessControl_1.default)({
|
|
601
|
+
create: [],
|
|
602
|
+
read: [
|
|
603
|
+
Permission_1.default.ProjectOwner,
|
|
604
|
+
Permission_1.default.ProjectAdmin,
|
|
605
|
+
Permission_1.default.ProjectMember,
|
|
606
|
+
],
|
|
607
|
+
update: [],
|
|
608
|
+
}),
|
|
609
|
+
(0, typeorm_1.Index)(),
|
|
610
|
+
(0, TableColumn_1.default)({
|
|
611
|
+
type: TableColumnType_1.default.ObjectID,
|
|
612
|
+
required: false,
|
|
613
|
+
canReadOnRelationQuery: true,
|
|
614
|
+
title: "Saved As Runbook ID",
|
|
615
|
+
description: "ID of the runbook this fix was saved as. Empty until someone saves the verified fix as a runbook.",
|
|
616
|
+
}),
|
|
617
|
+
(0, typeorm_1.Column)({
|
|
618
|
+
type: ColumnType_1.default.ObjectID,
|
|
619
|
+
nullable: true,
|
|
620
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
621
|
+
}),
|
|
622
|
+
__metadata("design:type", ObjectID_1.default)
|
|
623
|
+
], AutoRemediationSuggestion.prototype, "savedAsRunbookId", void 0);
|
|
562
624
|
__decorate([
|
|
563
625
|
(0, ColumnAccessControl_1.default)({
|
|
564
626
|
create: [],
|
|
@@ -92,6 +92,7 @@ export default class Incident extends BaseModel {
|
|
|
92
92
|
aiInvestigationWaitUntil?: Date;
|
|
93
93
|
groupingWaitKey?: string;
|
|
94
94
|
isOwnerNotifiedOfResourceCreation?: boolean;
|
|
95
|
+
createdNotificationHeldAt?: Date;
|
|
95
96
|
rootCause?: string;
|
|
96
97
|
postmortemNote?: string;
|
|
97
98
|
showPostmortemOnStatusPage?: boolean;
|
|
@@ -92,6 +92,7 @@ export default class Incident extends BaseModel {
|
|
|
92
92
|
aiInvestigationWaitUntil?: Date;
|
|
93
93
|
groupingWaitKey?: string;
|
|
94
94
|
isOwnerNotifiedOfResourceCreation?: boolean;
|
|
95
|
+
createdNotificationHeldAt?: Date;
|
|
95
96
|
rootCause?: string;
|
|
96
97
|
postmortemNote?: string;
|
|
97
98
|
showPostmortemOnStatusPage?: boolean;
|
|
@@ -184,6 +184,17 @@ let Incident = class Incident extends DatabaseBaseModel_1.default {
|
|
|
184
184
|
*/
|
|
185
185
|
this.groupingWaitKey = undefined;
|
|
186
186
|
this.isOwnerNotifiedOfResourceCreation = undefined;
|
|
187
|
+
/*
|
|
188
|
+
* While the owners' "Incident Created" notification is held for the
|
|
189
|
+
* incident's owners (CreatedNotificationHold): when the hold began, as
|
|
190
|
+
* the incident was written. Cleared when the hold is let go - every owner
|
|
191
|
+
* its create adds is in - and when the Created job takes it. A hold
|
|
192
|
+
* nobody lets go, because the process that made the incident stopped,
|
|
193
|
+
* ends by itself: the job takes it once it is old enough. Null for every
|
|
194
|
+
* other incident. Written by the create's hook - which is why it is
|
|
195
|
+
* computed: no caller's create is refused for it - and by nobody else.
|
|
196
|
+
*/
|
|
197
|
+
this.createdNotificationHeldAt = undefined;
|
|
187
198
|
this.rootCause = undefined;
|
|
188
199
|
this.postmortemNote = undefined;
|
|
189
200
|
this.showPostmortemOnStatusPage = undefined;
|
|
@@ -2603,6 +2614,19 @@ __decorate([
|
|
|
2603
2614
|
}),
|
|
2604
2615
|
__metadata("design:type", Boolean)
|
|
2605
2616
|
], Incident.prototype, "isOwnerNotifiedOfResourceCreation", void 0);
|
|
2617
|
+
__decorate([
|
|
2618
|
+
(0, ColumnAccessControl_1.default)({ create: [], read: [], update: [] }),
|
|
2619
|
+
(0, TableColumn_1.default)({
|
|
2620
|
+
required: false,
|
|
2621
|
+
computed: true,
|
|
2622
|
+
hideColumnInDocumentation: true,
|
|
2623
|
+
type: TableColumnType_1.default.Date,
|
|
2624
|
+
title: "Created Notification Held At",
|
|
2625
|
+
description: "Internal: while the owners' Incident Created notification waits for every owner the incident's create adds, when it started waiting.",
|
|
2626
|
+
}),
|
|
2627
|
+
(0, typeorm_1.Column)({ type: ColumnType_1.default.Date, nullable: true }),
|
|
2628
|
+
__metadata("design:type", Date)
|
|
2629
|
+
], Incident.prototype, "createdNotificationHeldAt", void 0);
|
|
2606
2630
|
__decorate([
|
|
2607
2631
|
(0, ColumnAccessControl_1.default)({
|
|
2608
2632
|
create: [
|
|
@@ -3955,5 +3979,16 @@ Incident = __decorate([
|
|
|
3955
3979
|
(0, typeorm_1.Index)(["groupingWaitKey", "createdAt"], {
|
|
3956
3980
|
where: '"groupingWaitKey" IS NOT NULL AND "deletedAt" IS NULL',
|
|
3957
3981
|
})
|
|
3982
|
+
/*
|
|
3983
|
+
* The incidents whose owners' "Incident Created" notification is held for
|
|
3984
|
+
* their owners (CreatedNotificationHold): the few being created at any
|
|
3985
|
+
* moment, so the index holds only them, and the Created job's read of a
|
|
3986
|
+
* hold nobody let go (createdNotificationHeldAt <= then) implies its
|
|
3987
|
+
* predicate.
|
|
3988
|
+
*/
|
|
3989
|
+
,
|
|
3990
|
+
(0, typeorm_1.Index)(["createdNotificationHeldAt"], {
|
|
3991
|
+
where: '"createdNotificationHeldAt" IS NOT NULL AND "deletedAt" IS NULL',
|
|
3992
|
+
})
|
|
3958
3993
|
], Incident);
|
|
3959
3994
|
exports.default = Incident;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Incident from "./Incident.mjs";
|
|
2
|
+
import Monitor from "./Monitor.mjs";
|
|
3
|
+
import Project from "./Project.mjs";
|
|
4
|
+
import User from "./User.mjs";
|
|
5
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
6
|
+
import PostmortemActionItemStatus from "../../Types/Incident/PostmortemActionItemStatus.mjs";
|
|
7
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
8
|
+
import Permission from "../../Types/Permission.mjs";
|
|
9
|
+
export declare const POSTMORTEM_ACTION_ITEM_UPDATE_PERMISSIONS: Array<Permission>;
|
|
10
|
+
export default class IncidentPostmortemActionItem extends BaseModel {
|
|
11
|
+
project?: Project;
|
|
12
|
+
projectId?: ObjectID;
|
|
13
|
+
incident?: Incident;
|
|
14
|
+
incidentId?: ObjectID;
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
status?: PostmortemActionItemStatus;
|
|
18
|
+
ownerUser?: User;
|
|
19
|
+
ownerUserId?: ObjectID;
|
|
20
|
+
dueDate?: Date;
|
|
21
|
+
closedAt?: Date;
|
|
22
|
+
closedByUser?: User;
|
|
23
|
+
closedByUserId?: ObjectID;
|
|
24
|
+
codeTaskId?: ObjectID;
|
|
25
|
+
monitor?: Monitor;
|
|
26
|
+
monitorId?: ObjectID;
|
|
27
|
+
createdByUser?: User;
|
|
28
|
+
createdByUserId?: ObjectID;
|
|
29
|
+
deletedByUser?: User;
|
|
30
|
+
deletedByUserId?: ObjectID;
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Incident from "./Incident";
|
|
2
|
+
import Monitor from "./Monitor";
|
|
3
|
+
import Project from "./Project";
|
|
4
|
+
import User from "./User";
|
|
5
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
6
|
+
import PostmortemActionItemStatus from "../../Types/Incident/PostmortemActionItemStatus";
|
|
7
|
+
import ObjectID from "../../Types/ObjectID";
|
|
8
|
+
import Permission from "../../Types/Permission";
|
|
9
|
+
export declare const POSTMORTEM_ACTION_ITEM_UPDATE_PERMISSIONS: Array<Permission>;
|
|
10
|
+
export default class IncidentPostmortemActionItem extends BaseModel {
|
|
11
|
+
project?: Project;
|
|
12
|
+
projectId?: ObjectID;
|
|
13
|
+
incident?: Incident;
|
|
14
|
+
incidentId?: ObjectID;
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
status?: PostmortemActionItemStatus;
|
|
18
|
+
ownerUser?: User;
|
|
19
|
+
ownerUserId?: ObjectID;
|
|
20
|
+
dueDate?: Date;
|
|
21
|
+
closedAt?: Date;
|
|
22
|
+
closedByUser?: User;
|
|
23
|
+
closedByUserId?: ObjectID;
|
|
24
|
+
codeTaskId?: ObjectID;
|
|
25
|
+
monitor?: Monitor;
|
|
26
|
+
monitorId?: ObjectID;
|
|
27
|
+
createdByUser?: User;
|
|
28
|
+
createdByUserId?: ObjectID;
|
|
29
|
+
deletedByUser?: User;
|
|
30
|
+
deletedByUserId?: ObjectID;
|
|
31
|
+
}
|