@oneuptime/common 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/AIAgent.js +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.mts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.ts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +62 -0
- package/Models/DatabaseModels/AIRun.d.mts +2 -0
- package/Models/DatabaseModels/AIRun.d.ts +2 -0
- package/Models/DatabaseModels/AIRun.js +63 -0
- package/Models/DatabaseModels/CustomNotificationChannel.js +17 -9
- package/Models/DatabaseModels/DataProduct.js +3 -2
- package/Models/DatabaseModels/GlobalConfig.js +1 -1
- package/Models/DatabaseModels/IoTDeviceCredential.js +3 -1
- package/Models/DatabaseModels/Monitor.d.mts +4 -0
- package/Models/DatabaseModels/Monitor.d.ts +4 -0
- package/Models/DatabaseModels/Monitor.js +108 -5
- package/Models/DatabaseModels/NetworkDevice.js +43 -17
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +38 -15
- package/Models/DatabaseModels/NetworkSnmpCredentialProfile.js +4 -4
- package/Models/DatabaseModels/OpenStackProjectNotice.js +29 -10
- package/Models/DatabaseModels/Probe.js +2 -0
- package/Models/DatabaseModels/ProjectSCIM.d.mts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.d.ts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.js +21 -9
- package/Models/DatabaseModels/Runbook.js +3 -2
- package/Models/DatabaseModels/Runner.js +2 -0
- package/Models/DatabaseModels/StatusPage.js +3 -2
- package/Models/DatabaseModels/StatusPageSCIM.d.mts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.d.ts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.js +17 -8
- package/Models/DatabaseModels/StatusPageSubscriber.js +35 -15
- package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +36 -1
- package/Models/DatabaseModels/UserWebhook.js +25 -17
- package/Models/DatabaseModels/WebhookLog.js +12 -2
- package/Models/DatabaseModels/Workflow.d.mts +3 -0
- package/Models/DatabaseModels/Workflow.d.ts +3 -0
- package/Models/DatabaseModels/Workflow.js +70 -1
- package/Server/Services/DatabaseService.d.mts +21 -1
- package/Server/Services/DatabaseService.d.ts +21 -1
- package/Types/AI/AIActionWords.js +1 -1
- package/Types/AI/CarriedRecords.d.mts +35 -0
- package/Types/AI/CarriedRecords.d.ts +35 -0
- package/Types/AI/CarriedRecords.js +211 -0
- package/Types/AI/CarriedRecords.mjs +3 -0
- package/Types/Accounts/SetPasswordLink.d.mts +6 -0
- package/Types/Accounts/SetPasswordLink.d.ts +6 -0
- package/Types/Accounts/SetPasswordLink.js +47 -0
- package/Types/Accounts/SetPasswordLink.mjs +7 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +1 -1
- package/Types/CodeRepository/ProductionReview.d.mts +5 -0
- package/Types/CodeRepository/ProductionReview.d.ts +5 -0
- package/Types/CodeRepository/ProductionReview.js +108 -0
- package/Types/Database/DatabaseProperty.d.mts +1 -0
- package/Types/Database/DatabaseProperty.d.ts +1 -0
- package/Types/Database/DatabaseProperty.js +27 -0
- package/Types/Database/EncryptedValue.d.mts +2 -0
- package/Types/Database/EncryptedValue.d.ts +2 -0
- package/Types/Database/EncryptedValue.js +27 -0
- package/Types/Database/EncryptedValue.mjs +3 -0
- package/Types/Database/TableColumn.d.mts +3 -0
- package/Types/Database/TableColumn.d.ts +3 -0
- package/Types/Docs/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -0
- package/Types/Email/EmailSendFailure.d.mts +20 -0
- package/Types/Email/EmailSendFailure.d.ts +20 -0
- package/Types/Email/EmailSendFailure.js +244 -0
- package/Types/Email/EmailSendFailure.mjs +3 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +5 -0
- package/Types/Runner/RunnerCodeFixCapability.d.mts +3 -1
- package/Types/Runner/RunnerCodeFixCapability.d.ts +3 -1
- package/Types/Runner/RunnerCodeFixCapability.js +19 -1
- package/Types/Runner/RunnerCodeFixCapability.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.js +2 -2
- package/Types/ServerSending/ServerSendingStatus.d.mts +23 -2
- package/Types/ServerSending/ServerSendingStatus.d.ts +23 -2
- package/Types/ServerSending/ServerSendingStatus.js +208 -10
- package/Types/ServerSending/ServerSendingStatus.mjs +3 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +5 -0
- package/Types/StatusPage/StatusPageMagicLink.js +1 -1
- package/Types/StatusPage/StatusPageSignInMessages.d.mts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.d.ts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.js +16 -0
- package/Types/StatusPage/StatusPageSignInMessages.mjs +4 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.mts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.ts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.js +63 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.mjs +8 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.mts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.ts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.js +91 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.mjs +10 -0
- package/Types/Workspace/ConnectCallback.d.mts +2 -1
- package/Types/Workspace/ConnectCallback.d.ts +2 -1
- package/Types/Workspace/ConnectCallback.js +8 -0
- package/Utils/AiRemediation/DeclaredCodeChange.d.mts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.d.ts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.js +6 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +1 -1
- package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +22 -5
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +1 -0
- package/Utils/LookupTable.d.mts +1 -0
- package/Utils/LookupTable.d.ts +1 -0
- package/Utils/LookupTable.js +19 -0
- package/Utils/LookupTable.mjs +1 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +5 -5
- package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.js +19 -99
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +6 -6
- package/Utils/Monitor/MonitorRowStatus.js +2 -2
- package/Utils/Monitor/MonitorTypeFamily.d.mts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.d.ts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.js +105 -0
- package/Utils/Monitor/MonitorTypeFamily.mjs +3 -0
- package/Utils/Monitor/StoredCheckEvidence.d.mts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.d.ts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.js +53 -0
- package/Utils/Monitor/StoredCheckEvidence.mjs +5 -0
- package/Utils/NetworkDiscovery/SnmpScanConfigUtil.js +11 -4
- package/Utils/Project/ProjectBilling.d.mts +1 -0
- package/Utils/Project/ProjectBilling.d.ts +1 -0
- package/Utils/Project/ProjectBilling.js +9 -1
- package/Utils/Project/ProjectBilling.mjs +1 -0
- package/Utils/StatusPage/HistoryWindow.d.mts +3 -0
- package/Utils/StatusPage/HistoryWindow.d.ts +3 -0
- package/Utils/StatusPage/HistoryWindow.js +24 -0
- package/Utils/StatusPage/HistoryWindow.mjs +4 -0
- package/Utils/Suggestions/CodeFixSuggestion.d.mts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.d.ts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.js +9 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +24 -3
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.js +16 -4
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.mts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.ts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.js +17 -5
- package/Utils/Suggestions/TelemetryAiFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +16 -7
- package/Utils/WebhookAddressMask.d.mts +9 -0
- package/Utils/WebhookAddressMask.d.ts +9 -0
- package/Utils/WebhookAddressMask.js +66 -0
- package/Utils/WebhookAddressMask.mjs +2 -0
- package/package.json +1 -1
|
@@ -127,10 +127,18 @@ var ConnectProviderNotice;
|
|
|
127
127
|
* ours. Nothing was connected; the page offers to connect the installation.
|
|
128
128
|
*/
|
|
129
129
|
ConnectProviderNotice["GitHubInstalled"] = "github-installed";
|
|
130
|
+
/*
|
|
131
|
+
* Zoom: OneUptime was added to a Zoom account from Zoom itself - the
|
|
132
|
+
* authorization link the Zoom App Marketplace gives - so Zoom sent the
|
|
133
|
+
* browser back with no state of ours. Nothing was connected; the Video
|
|
134
|
+
* Calls page offers to connect Zoom.
|
|
135
|
+
*/
|
|
136
|
+
ConnectProviderNotice["ZoomAdded"] = "zoom-added";
|
|
130
137
|
})(ConnectProviderNotice || (exports.ConnectProviderNotice = ConnectProviderNotice = {}));
|
|
131
138
|
// The provider each notice belongs to: a page shows only its own.
|
|
132
139
|
const PROVIDER_OF_NOTICE = {
|
|
133
140
|
[ConnectProviderNotice.GitHubInstalled]: ConnectProvider.GitHub,
|
|
141
|
+
[ConnectProviderNotice.ZoomAdded]: ConnectProvider.Zoom,
|
|
134
142
|
};
|
|
135
143
|
/*
|
|
136
144
|
* A video call connection a sign-in made or reconnected: the Video Calls
|
|
@@ -66,13 +66,16 @@ export interface DeclaredCodeOwnerJSON {
|
|
|
66
66
|
sentence: string;
|
|
67
67
|
target: DeclaredCodeTarget | null;
|
|
68
68
|
candidates: Array<DeclaredCodeOwnerCandidateJSON>;
|
|
69
|
+
privateRecord?: DeclaredCodePrivateRecord | undefined;
|
|
69
70
|
}
|
|
71
|
+
export type DeclaredCodePrivateRecord = "incident" | "alert";
|
|
70
72
|
export declare enum DeclaredCodeChangeState {
|
|
71
73
|
Writing = "writing",
|
|
72
74
|
Opened = "opened",
|
|
73
75
|
WaitingForYou = "waiting",
|
|
74
76
|
Ended = "ended",
|
|
75
|
-
Failed = "failed"
|
|
77
|
+
Failed = "failed",
|
|
78
|
+
Hidden = "hidden"
|
|
76
79
|
}
|
|
77
80
|
export interface DeclaredCodeChangeJSON {
|
|
78
81
|
sequence: number;
|
|
@@ -66,13 +66,16 @@ export interface DeclaredCodeOwnerJSON {
|
|
|
66
66
|
sentence: string;
|
|
67
67
|
target: DeclaredCodeTarget | null;
|
|
68
68
|
candidates: Array<DeclaredCodeOwnerCandidateJSON>;
|
|
69
|
+
privateRecord?: DeclaredCodePrivateRecord | undefined;
|
|
69
70
|
}
|
|
71
|
+
export type DeclaredCodePrivateRecord = "incident" | "alert";
|
|
70
72
|
export declare enum DeclaredCodeChangeState {
|
|
71
73
|
Writing = "writing",
|
|
72
74
|
Opened = "opened",
|
|
73
75
|
WaitingForYou = "waiting",
|
|
74
76
|
Ended = "ended",
|
|
75
|
-
Failed = "failed"
|
|
77
|
+
Failed = "failed",
|
|
78
|
+
Hidden = "hidden"
|
|
76
79
|
}
|
|
77
80
|
export interface DeclaredCodeChangeJSON {
|
|
78
81
|
sequence: number;
|
|
@@ -363,6 +363,12 @@ var DeclaredCodeChangeState;
|
|
|
363
363
|
DeclaredCodeChangeState["Ended"] = "ended";
|
|
364
364
|
// It failed or was stopped.
|
|
365
365
|
DeclaredCodeChangeState["Failed"] = "failed";
|
|
366
|
+
/*
|
|
367
|
+
* It is there, in a task the reader may not read: a reply carried a
|
|
368
|
+
* private incident or alert into it that they do not see. Nothing of how
|
|
369
|
+
* it stands: no task, repository or pull request is sent with it.
|
|
370
|
+
*/
|
|
371
|
+
DeclaredCodeChangeState["Hidden"] = "hidden";
|
|
366
372
|
})(DeclaredCodeChangeState || (exports.DeclaredCodeChangeState = DeclaredCodeChangeState = {}));
|
|
367
373
|
function readDeclaredCodeChangeTaskContext(value) {
|
|
368
374
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
@@ -64,7 +64,7 @@ const NotOperationalMonitorQuery_1 = __importDefault(require("../Monitor/NotOper
|
|
|
64
64
|
* a disabled SLO the same way (Utils/Slo/SloListWidgetFormat).
|
|
65
65
|
*
|
|
66
66
|
* A row says what the Monitors table's row says, from the one rule both
|
|
67
|
-
* read (Utils/Monitor/MonitorRowStatus): Disabled,
|
|
67
|
+
* read (Utils/Monitor/MonitorRowStatus): Disabled, No Probe Enabled or
|
|
68
68
|
* Probes Disconnected where nothing checks the monitor, and Waiting for
|
|
69
69
|
* data, No results yet or Paused where nothing has checked it yet and it
|
|
70
70
|
* is still in the operational status it was created in (issue #8899).
|
|
@@ -13,8 +13,10 @@ export interface ActionItemCodeTaskRequestInput {
|
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
incidentNumber?: string | null | undefined;
|
|
15
15
|
incidentTitle?: string | null | undefined;
|
|
16
|
+
incidentIsPrivate?: boolean | undefined;
|
|
16
17
|
instructions?: string | null | undefined;
|
|
17
18
|
}
|
|
19
|
+
export declare const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION: string;
|
|
18
20
|
export declare function parseActionItemCodeTaskKind(value: unknown): ActionItemCodeTaskKind | null;
|
|
19
21
|
export declare function buildActionItemCodeTaskRequest(input: ActionItemCodeTaskRequestInput): string;
|
|
20
22
|
export declare function getPostmortemContextNote(postmortemNote: string | null | undefined): string | null;
|
|
@@ -13,8 +13,10 @@ export interface ActionItemCodeTaskRequestInput {
|
|
|
13
13
|
description?: string | null | undefined;
|
|
14
14
|
incidentNumber?: string | null | undefined;
|
|
15
15
|
incidentTitle?: string | null | undefined;
|
|
16
|
+
incidentIsPrivate?: boolean | undefined;
|
|
16
17
|
instructions?: string | null | undefined;
|
|
17
18
|
}
|
|
19
|
+
export declare const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION: string;
|
|
18
20
|
export declare function parseActionItemCodeTaskKind(value: unknown): ActionItemCodeTaskKind | null;
|
|
19
21
|
export declare function buildActionItemCodeTaskRequest(input: ActionItemCodeTaskRequestInput): string;
|
|
20
22
|
export declare function getPostmortemContextNote(postmortemNote: string | null | undefined): string | null;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* Pure: the server builds the request with it, and the tests pin it.
|
|
24
24
|
*/
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.MAX_POSTMORTEM_IN_CONTEXT = exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = exports.MAX_ACTION_ITEM_REQUEST_LENGTH = exports.ALL_ACTION_ITEM_CODE_TASK_KINDS = exports.ActionItemCodeTaskKind = void 0;
|
|
26
|
+
exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = exports.MAX_POSTMORTEM_IN_CONTEXT = exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = exports.MAX_ACTION_ITEM_REQUEST_LENGTH = exports.ALL_ACTION_ITEM_CODE_TASK_KINDS = exports.ActionItemCodeTaskKind = void 0;
|
|
27
27
|
exports.parseActionItemCodeTaskKind = parseActionItemCodeTaskKind;
|
|
28
28
|
exports.buildActionItemCodeTaskRequest = buildActionItemCodeTaskRequest;
|
|
29
29
|
exports.getPostmortemContextNote = getPostmortemContextNote;
|
|
@@ -41,6 +41,11 @@ exports.MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = 3000;
|
|
|
41
41
|
exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = 3000;
|
|
42
42
|
// The most of the postmortem's note the request's context carries (CODE_TASK_LIMITS.maxNoteLength).
|
|
43
43
|
exports.MAX_POSTMORTEM_IN_CONTEXT = 4000;
|
|
44
|
+
/*
|
|
45
|
+
* What the request asks of the pull request for a private incident: the
|
|
46
|
+
* repository's readers are not the incident's.
|
|
47
|
+
*/
|
|
48
|
+
exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = "The incident is private, and everyone with access to this repository reads the pull request: leave the incident and its postmortem out of the pull request, its commit messages and the code's comments, and name the incident only by its number.";
|
|
44
49
|
// Reads a kind off the wire: anything else is null.
|
|
45
50
|
function parseActionItemCodeTaskKind(value) {
|
|
46
51
|
if (typeof value === "string" &&
|
|
@@ -55,10 +60,15 @@ function cut(text, maxLength) {
|
|
|
55
60
|
? `${trimmed.slice(0, maxLength - 1).trimEnd()}…`
|
|
56
61
|
: trimmed;
|
|
57
62
|
}
|
|
58
|
-
|
|
63
|
+
/*
|
|
64
|
+
* "incident #42: Checkout returns 503s", or as much of it as is known - a
|
|
65
|
+
* private incident by its number alone.
|
|
66
|
+
*/
|
|
59
67
|
function describeIncident(input) {
|
|
60
68
|
const number = (input.incidentNumber || "").trim();
|
|
61
|
-
const title =
|
|
69
|
+
const title = input.incidentIsPrivate
|
|
70
|
+
? ""
|
|
71
|
+
: (input.incidentTitle || "").trim();
|
|
62
72
|
if (number && title) {
|
|
63
73
|
return `incident ${number}: ${title}`;
|
|
64
74
|
}
|
|
@@ -83,10 +93,17 @@ function buildActionItemCodeTaskRequest(input) {
|
|
|
83
93
|
}
|
|
84
94
|
lines.push("");
|
|
85
95
|
if (input.kind === ActionItemCodeTaskKind.Test) {
|
|
86
|
-
lines.push("Write an automated test that would have caught this incident before it reached production: it should fail on the code as it was when the incident happened, and pass once the problem is fixed. If the code is already fixed, the test should pass now and guard against the problem coming back.", "Use the repository's own test framework and conventions, put the test where the repository keeps its tests, and change no code besides the test unless the test cannot run without it.",
|
|
96
|
+
lines.push("Write an automated test that would have caught this incident before it reached production: it should fail on the code as it was when the incident happened, and pass once the problem is fixed. If the code is already fixed, the test should pass now and guard against the problem coming back.", "Use the repository's own test framework and conventions, put the test where the repository keeps its tests, and change no code besides the test unless the test cannot run without it.", input.incidentIsPrivate
|
|
97
|
+
? "Open a pull request with the test."
|
|
98
|
+
: "Open a pull request with the test, and say in it which incident it guards against.");
|
|
87
99
|
}
|
|
88
100
|
else {
|
|
89
|
-
lines.push("Make the change this action item asks for in this repository, and open a pull request with it for review.",
|
|
101
|
+
lines.push("Make the change this action item asks for in this repository, and open a pull request with it for review.", input.incidentIsPrivate
|
|
102
|
+
? "Keep the change to what the action item needs, and add or update tests that cover it."
|
|
103
|
+
: "Keep the change to what the action item needs, add or update tests that cover it, and say in the pull request which incident it is for.");
|
|
104
|
+
}
|
|
105
|
+
if (input.incidentIsPrivate) {
|
|
106
|
+
lines.push(exports.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION);
|
|
90
107
|
}
|
|
91
108
|
const instructions = cut(input.instructions || "", exports.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH);
|
|
92
109
|
if (instructions) {
|
|
@@ -5,6 +5,7 @@ export const MAX_ACTION_ITEM_DESCRIPTION_IN_REQUEST = commonJsModule.MAX_ACTION_
|
|
|
5
5
|
export const MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH = commonJsModule.MAX_ACTION_ITEM_INSTRUCTIONS_LENGTH;
|
|
6
6
|
export const MAX_ACTION_ITEM_REQUEST_LENGTH = commonJsModule.MAX_ACTION_ITEM_REQUEST_LENGTH;
|
|
7
7
|
export const MAX_POSTMORTEM_IN_CONTEXT = commonJsModule.MAX_POSTMORTEM_IN_CONTEXT;
|
|
8
|
+
export const PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION = commonJsModule.PRIVATE_INCIDENT_PULL_REQUEST_INSTRUCTION;
|
|
8
9
|
export const buildActionItemCodeTaskRequest = commonJsModule.buildActionItemCodeTaskRequest;
|
|
9
10
|
export const getPostmortemContextNote = commonJsModule.getPostmortemContextNote;
|
|
10
11
|
export const parseActionItemCodeTaskKind = commonJsModule.parseActionItemCodeTaskKind;
|
package/Utils/LookupTable.d.mts
CHANGED
|
@@ -2,5 +2,6 @@ export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): Re
|
|
|
2
2
|
export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
|
|
3
3
|
export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
|
|
4
4
|
export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
|
|
5
|
+
export declare function mergeOwnValues<T>(first?: Readonly<Record<string, T>> | null, second?: Readonly<Record<string, T>> | null, third?: Readonly<Record<string, T>> | null): Record<string, T>;
|
|
5
6
|
export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
|
|
6
7
|
export default lookupTable;
|
package/Utils/LookupTable.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): Re
|
|
|
2
2
|
export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
|
|
3
3
|
export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
|
|
4
4
|
export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
|
|
5
|
+
export declare function mergeOwnValues<T>(first?: Readonly<Record<string, T>> | null, second?: Readonly<Record<string, T>> | null, third?: Readonly<Record<string, T>> | null): Record<string, T>;
|
|
5
6
|
export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
|
|
6
7
|
export default lookupTable;
|
package/Utils/LookupTable.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.lookupTable = lookupTable;
|
|
|
4
4
|
exports.readOwnValue = readOwnValue;
|
|
5
5
|
exports.writeOwnValue = writeOwnValue;
|
|
6
6
|
exports.assignOwnValues = assignOwnValues;
|
|
7
|
+
exports.mergeOwnValues = mergeOwnValues;
|
|
7
8
|
exports.copyOwnValues = copyOwnValues;
|
|
8
9
|
/*
|
|
9
10
|
* A TABLE READ BY TEXT FROM OUTSIDE ONEUPTIME.
|
|
@@ -97,6 +98,24 @@ function assignOwnValues(target, ...sources) {
|
|
|
97
98
|
}
|
|
98
99
|
return target;
|
|
99
100
|
}
|
|
101
|
+
/*
|
|
102
|
+
* Up to three records merged into a new plain object: exactly what
|
|
103
|
+
* assignOwnValues({}, first, second, third) gives - every own key of each,
|
|
104
|
+
* "__proto__" included, a later record's value winning, keys in the same
|
|
105
|
+
* order - for the attribute map of every log, span and metric point ingest
|
|
106
|
+
* stores (its resource's, its own, its scope's).
|
|
107
|
+
*
|
|
108
|
+
* By object spread, which the servers' ES2018 target leaves to the
|
|
109
|
+
* language: CopyDataProperties defines each key, so "__proto__" stays a key
|
|
110
|
+
* (Tests/Dependencies/TypeScriptTargets pins the targets, and
|
|
111
|
+
* Tests/Utils/LookupTableOwnKeys this function). It is also how V8 copies
|
|
112
|
+
* a map fastest: Object.assign stores key by key, and on ingest's many map
|
|
113
|
+
* shapes each store missed V8's inline caches - 3.7 µs to merge one
|
|
114
|
+
* record's 13 keys, against 0.17 µs by spread (#6086).
|
|
115
|
+
*/
|
|
116
|
+
function mergeOwnValues(first, second, third) {
|
|
117
|
+
return { ...first, ...second, ...third };
|
|
118
|
+
}
|
|
100
119
|
/*
|
|
101
120
|
* A new plain object with every own key of `record`, "__proto__" included:
|
|
102
121
|
* what `{ ...record }` gives on an ES2018 or later target, at any target.
|
package/Utils/LookupTable.mjs
CHANGED
|
@@ -3,5 +3,6 @@ export default commonJsModule.default;
|
|
|
3
3
|
export const assignOwnValues = commonJsModule.assignOwnValues;
|
|
4
4
|
export const copyOwnValues = commonJsModule.copyOwnValues;
|
|
5
5
|
export const lookupTable = commonJsModule.lookupTable;
|
|
6
|
+
export const mergeOwnValues = commonJsModule.mergeOwnValues;
|
|
6
7
|
export const readOwnValue = commonJsModule.readOwnValue;
|
|
7
8
|
export const writeOwnValue = commonJsModule.writeOwnValue;
|
|
@@ -34,16 +34,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const MonitorCheckScheduleUtil_1 = __importStar(require("./MonitorCheckScheduleUtil"));
|
|
37
|
-
const
|
|
37
|
+
const MonitorTypeFamily_1 = __importStar(require("./MonitorTypeFamily"));
|
|
38
38
|
/*
|
|
39
39
|
* The families whose first result has a time it is due by: run on a
|
|
40
40
|
* schedule the page can see (getCheckFreshness). A pushed or event-driven
|
|
41
41
|
* monitor waits for its first signal however long it takes.
|
|
42
42
|
*/
|
|
43
43
|
const FAMILIES_WITH_A_FIRST_CHECK_DUE = [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
MonitorTypeFamily_1.MonitorOverviewFamily.ProbeCheck,
|
|
45
|
+
MonitorTypeFamily_1.MonitorOverviewFamily.TelemetrySignal,
|
|
46
|
+
MonitorTypeFamily_1.MonitorOverviewFamily.Infrastructure,
|
|
47
47
|
];
|
|
48
48
|
class MonitorFirstCheckOverdue {
|
|
49
49
|
/*
|
|
@@ -60,7 +60,7 @@ class MonitorFirstCheckOverdue {
|
|
|
60
60
|
}
|
|
61
61
|
let family;
|
|
62
62
|
try {
|
|
63
|
-
family =
|
|
63
|
+
family = MonitorTypeFamily_1.default.getFamily(data.monitor.monitorType);
|
|
64
64
|
}
|
|
65
65
|
catch (_a) {
|
|
66
66
|
return false;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import MonitorMetricType from "../../Types/Monitor/MonitorMetricType.mjs";
|
|
2
2
|
import MonitorType from "../../Types/Monitor/MonitorType.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Heartbeat = "Heartbeat",
|
|
6
|
-
Agent = "Agent",
|
|
7
|
-
TelemetrySignal = "TelemetrySignal",
|
|
8
|
-
Infrastructure = "Infrastructure",
|
|
9
|
-
NetworkDevice = "NetworkDevice",
|
|
10
|
-
ProbeStatus = "ProbeStatus",
|
|
11
|
-
Manual = "Manual"
|
|
12
|
-
}
|
|
3
|
+
import { MonitorOverviewFamily } from "./MonitorTypeFamily.mjs";
|
|
4
|
+
export { MonitorOverviewFamily };
|
|
13
5
|
export declare enum MonitorOverviewSetupKind {
|
|
14
6
|
HeartbeatUrl = "HeartbeatUrl",
|
|
15
7
|
InboundEmail = "InboundEmail",
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import MonitorMetricType from "../../Types/Monitor/MonitorMetricType";
|
|
2
2
|
import MonitorType from "../../Types/Monitor/MonitorType";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Heartbeat = "Heartbeat",
|
|
6
|
-
Agent = "Agent",
|
|
7
|
-
TelemetrySignal = "TelemetrySignal",
|
|
8
|
-
Infrastructure = "Infrastructure",
|
|
9
|
-
NetworkDevice = "NetworkDevice",
|
|
10
|
-
ProbeStatus = "ProbeStatus",
|
|
11
|
-
Manual = "Manual"
|
|
12
|
-
}
|
|
3
|
+
import { MonitorOverviewFamily } from "./MonitorTypeFamily";
|
|
4
|
+
export { MonitorOverviewFamily };
|
|
13
5
|
export declare enum MonitorOverviewSetupKind {
|
|
14
6
|
HeartbeatUrl = "HeartbeatUrl",
|
|
15
7
|
InboundEmail = "InboundEmail",
|
|
@@ -37,37 +37,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MonitorOverviewSetupKind = exports.MonitorOverviewFamily = void 0;
|
|
40
|
-
const BadDataException_1 = __importDefault(require("../../Types/Exception/BadDataException"));
|
|
41
40
|
const MonitorMetricType_1 = __importDefault(require("../../Types/Monitor/MonitorMetricType"));
|
|
42
41
|
const MonitorType_1 = __importStar(require("../../Types/Monitor/MonitorType"));
|
|
43
42
|
const MonitorMetricType_2 = __importDefault(require("./MonitorMetricType"));
|
|
43
|
+
const MonitorTypeFamily_1 = __importStar(require("./MonitorTypeFamily"));
|
|
44
|
+
Object.defineProperty(exports, "MonitorOverviewFamily", { enumerable: true, get: function () { return MonitorTypeFamily_1.MonitorOverviewFamily; } });
|
|
44
45
|
const Translator_1 = require("../../Types/Translator");
|
|
45
|
-
/*
|
|
46
|
-
* The monitor overview groups the 35 monitor types into eight families that
|
|
47
|
-
* behave alike on the page: where the "last checked" time comes from, which
|
|
48
|
-
* facts the hero shows, which cards appear. Everything type-specific on the
|
|
49
|
-
* overview goes through this one switch, so a new MonitorType fails to
|
|
50
|
-
* compile here until somebody decides how its overview should look.
|
|
51
|
-
*/
|
|
52
|
-
var MonitorOverviewFamily;
|
|
53
|
-
(function (MonitorOverviewFamily) {
|
|
54
|
-
// Run by probes on a schedule.
|
|
55
|
-
MonitorOverviewFamily["ProbeCheck"] = "ProbeCheck";
|
|
56
|
-
// Pushed to us: heartbeat requests and inbound email.
|
|
57
|
-
MonitorOverviewFamily["Heartbeat"] = "Heartbeat";
|
|
58
|
-
// Pushed by the server agent.
|
|
59
|
-
MonitorOverviewFamily["Agent"] = "Agent";
|
|
60
|
-
// Criteria evaluated by a worker over telemetry.
|
|
61
|
-
MonitorOverviewFamily["TelemetrySignal"] = "TelemetrySignal";
|
|
62
|
-
// Criteria evaluated by a worker over infrastructure metrics.
|
|
63
|
-
MonitorOverviewFamily["Infrastructure"] = "Infrastructure";
|
|
64
|
-
// Evaluated on every device poll and matching trap.
|
|
65
|
-
MonitorOverviewFamily["NetworkDevice"] = "NetworkDevice";
|
|
66
|
-
// Evaluated every minute from the connection status of the probes it watches.
|
|
67
|
-
MonitorOverviewFamily["ProbeStatus"] = "ProbeStatus";
|
|
68
|
-
// No checks at all; people set the status.
|
|
69
|
-
MonitorOverviewFamily["Manual"] = "Manual";
|
|
70
|
-
})(MonitorOverviewFamily || (exports.MonitorOverviewFamily = MonitorOverviewFamily = {}));
|
|
71
46
|
var MonitorOverviewSetupKind;
|
|
72
47
|
(function (MonitorOverviewSetupKind) {
|
|
73
48
|
MonitorOverviewSetupKind["HeartbeatUrl"] = "HeartbeatUrl";
|
|
@@ -75,64 +50,9 @@ var MonitorOverviewSetupKind;
|
|
|
75
50
|
MonitorOverviewSetupKind["ServerAgent"] = "ServerAgent";
|
|
76
51
|
})(MonitorOverviewSetupKind || (exports.MonitorOverviewSetupKind = MonitorOverviewSetupKind = {}));
|
|
77
52
|
class MonitorOverviewFamilyUtil {
|
|
53
|
+
// The family a type belongs to, by MonitorTypeFamily's switch.
|
|
78
54
|
static getFamily(monitorType) {
|
|
79
|
-
|
|
80
|
-
case MonitorType_1.default.API:
|
|
81
|
-
case MonitorType_1.default.Website:
|
|
82
|
-
case MonitorType_1.default.IP:
|
|
83
|
-
case MonitorType_1.default.Ping:
|
|
84
|
-
case MonitorType_1.default.Port:
|
|
85
|
-
case MonitorType_1.default.SSLCertificate:
|
|
86
|
-
case MonitorType_1.default.SyntheticMonitor:
|
|
87
|
-
case MonitorType_1.default.CustomJavaScriptCode:
|
|
88
|
-
case MonitorType_1.default.DNS:
|
|
89
|
-
case MonitorType_1.default.DNSSEC:
|
|
90
|
-
case MonitorType_1.default.NTP:
|
|
91
|
-
case MonitorType_1.default.Domain:
|
|
92
|
-
case MonitorType_1.default.SQLQuery:
|
|
93
|
-
case MonitorType_1.default.Database:
|
|
94
|
-
case MonitorType_1.default.ExternalStatusPage:
|
|
95
|
-
return MonitorOverviewFamily.ProbeCheck;
|
|
96
|
-
case MonitorType_1.default.IncomingRequest:
|
|
97
|
-
case MonitorType_1.default.IncomingEmail:
|
|
98
|
-
return MonitorOverviewFamily.Heartbeat;
|
|
99
|
-
case MonitorType_1.default.Server:
|
|
100
|
-
return MonitorOverviewFamily.Agent;
|
|
101
|
-
case MonitorType_1.default.Logs:
|
|
102
|
-
case MonitorType_1.default.Metrics:
|
|
103
|
-
case MonitorType_1.default.Traces:
|
|
104
|
-
case MonitorType_1.default.Exceptions:
|
|
105
|
-
case MonitorType_1.default.Profiles:
|
|
106
|
-
case MonitorType_1.default.SecurityEvents:
|
|
107
|
-
case MonitorType_1.default.Llm:
|
|
108
|
-
return MonitorOverviewFamily.TelemetrySignal;
|
|
109
|
-
case MonitorType_1.default.Kubernetes:
|
|
110
|
-
case MonitorType_1.default.Docker:
|
|
111
|
-
case MonitorType_1.default.Host:
|
|
112
|
-
case MonitorType_1.default.Podman:
|
|
113
|
-
case MonitorType_1.default.DockerSwarm:
|
|
114
|
-
case MonitorType_1.default.Proxmox:
|
|
115
|
-
case MonitorType_1.default.OpenStack:
|
|
116
|
-
case MonitorType_1.default.VMware:
|
|
117
|
-
case MonitorType_1.default.Ceph:
|
|
118
|
-
case MonitorType_1.default.StorageArray:
|
|
119
|
-
case MonitorType_1.default.IoTDevice:
|
|
120
|
-
return MonitorOverviewFamily.Infrastructure;
|
|
121
|
-
case MonitorType_1.default.NetworkDevice:
|
|
122
|
-
return MonitorOverviewFamily.NetworkDevice;
|
|
123
|
-
case MonitorType_1.default.ProbeStatus:
|
|
124
|
-
return MonitorOverviewFamily.ProbeStatus;
|
|
125
|
-
case MonitorType_1.default.Manual:
|
|
126
|
-
return MonitorOverviewFamily.Manual;
|
|
127
|
-
default: {
|
|
128
|
-
/*
|
|
129
|
-
* Compile-time guard: a MonitorType added without a case above makes
|
|
130
|
-
* this assignment a type error.
|
|
131
|
-
*/
|
|
132
|
-
const unhandled = monitorType;
|
|
133
|
-
throw new BadDataException_1.default(`Monitor type ${String(unhandled)} has no overview family.`);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
55
|
+
return MonitorTypeFamily_1.default.getFamily(monitorType);
|
|
136
56
|
}
|
|
137
57
|
static getLayout(monitorType) {
|
|
138
58
|
const family = MonitorOverviewFamilyUtil.getFamily(monitorType);
|
|
@@ -154,7 +74,7 @@ class MonitorOverviewFamilyUtil {
|
|
|
154
74
|
* a series the probe actually writes.
|
|
155
75
|
*/
|
|
156
76
|
static getResponseTimeMetric(monitorType, family) {
|
|
157
|
-
if (family !== MonitorOverviewFamily.ProbeCheck) {
|
|
77
|
+
if (family !== MonitorTypeFamily_1.MonitorOverviewFamily.ProbeCheck) {
|
|
158
78
|
return null;
|
|
159
79
|
}
|
|
160
80
|
const metrics = MonitorMetricType_2.default.getMonitorMetricTypesByMonitorType(monitorType);
|
|
@@ -179,10 +99,10 @@ class MonitorOverviewFamilyUtil {
|
|
|
179
99
|
}
|
|
180
100
|
}
|
|
181
101
|
static getEvaluationPolicy(family) {
|
|
182
|
-
if (family === MonitorOverviewFamily.ProbeCheck) {
|
|
102
|
+
if (family === MonitorTypeFamily_1.MonitorOverviewFamily.ProbeCheck) {
|
|
183
103
|
return "PerProbe";
|
|
184
104
|
}
|
|
185
|
-
if (family === MonitorOverviewFamily.Manual) {
|
|
105
|
+
if (family === MonitorTypeFamily_1.MonitorOverviewFamily.Manual) {
|
|
186
106
|
return "None";
|
|
187
107
|
}
|
|
188
108
|
return "Latest";
|
|
@@ -201,12 +121,12 @@ class MonitorOverviewFamilyUtil {
|
|
|
201
121
|
}
|
|
202
122
|
static getSideCard(family) {
|
|
203
123
|
switch (family) {
|
|
204
|
-
case MonitorOverviewFamily.ProbeCheck:
|
|
124
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.ProbeCheck:
|
|
205
125
|
return "probes";
|
|
206
|
-
case MonitorOverviewFamily.Heartbeat:
|
|
207
|
-
case MonitorOverviewFamily.Agent:
|
|
126
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.Heartbeat:
|
|
127
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.Agent:
|
|
208
128
|
return "connection";
|
|
209
|
-
case MonitorOverviewFamily.Manual:
|
|
129
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.Manual:
|
|
210
130
|
return "manual";
|
|
211
131
|
default:
|
|
212
132
|
return null;
|
|
@@ -214,22 +134,22 @@ class MonitorOverviewFamilyUtil {
|
|
|
214
134
|
}
|
|
215
135
|
static getSummaryDescription(monitorType, family) {
|
|
216
136
|
switch (family) {
|
|
217
|
-
case MonitorOverviewFamily.ProbeCheck:
|
|
137
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.ProbeCheck:
|
|
218
138
|
return (0, Translator_1.translationKey)("What each probe saw on its most recent check.");
|
|
219
|
-
case MonitorOverviewFamily.Heartbeat:
|
|
139
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.Heartbeat:
|
|
220
140
|
return monitorType === MonitorType_1.default.IncomingEmail
|
|
221
141
|
? (0, Translator_1.translationKey)("The most recent email and how the criteria judged it.")
|
|
222
142
|
: (0, Translator_1.translationKey)("The most recent request and how the criteria judged it.");
|
|
223
|
-
case MonitorOverviewFamily.Agent:
|
|
143
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.Agent:
|
|
224
144
|
return (0, Translator_1.translationKey)("What the agent sent in its most recent report.");
|
|
225
|
-
case MonitorOverviewFamily.TelemetrySignal:
|
|
226
|
-
case MonitorOverviewFamily.Infrastructure:
|
|
145
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.TelemetrySignal:
|
|
146
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.Infrastructure:
|
|
227
147
|
return (0, Translator_1.translationKey)("How the criteria judged the data on the most recent evaluation.");
|
|
228
|
-
case MonitorOverviewFamily.NetworkDevice:
|
|
148
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.NetworkDevice:
|
|
229
149
|
return (0, Translator_1.translationKey)("How this monitor is evaluated.");
|
|
230
|
-
case MonitorOverviewFamily.ProbeStatus:
|
|
150
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.ProbeStatus:
|
|
231
151
|
return (0, Translator_1.translationKey)("Each probe this monitor watches, as the latest evaluation found it.");
|
|
232
|
-
case MonitorOverviewFamily.Manual:
|
|
152
|
+
case MonitorTypeFamily_1.MonitorOverviewFamily.Manual:
|
|
233
153
|
// Nothing is evaluated, so there is nothing to summarise.
|
|
234
154
|
return null;
|
|
235
155
|
default:
|
|
@@ -17,7 +17,7 @@ export declare enum MonitorOverviewRunState {
|
|
|
17
17
|
Overdue = "Overdue",
|
|
18
18
|
Running = "Running"
|
|
19
19
|
}
|
|
20
|
-
export type MonitorOverviewTone = "good" | "warning" | "danger" | "info" | "neutral";
|
|
20
|
+
export type MonitorOverviewTone = "good" | "warning" | "danger" | "info" | "neutral" | "paused";
|
|
21
21
|
export type MonitorOverviewLinkKey = "settings" | "probes" | "criteria" | "documentation" | "statusTimeline" | "incidents" | "alerts" | "metrics" | "owners" | "networkDevice";
|
|
22
22
|
export type MonitorOverviewActionKey = "turnMonitoringOn";
|
|
23
23
|
export interface MonitorOverviewLinkCallToAction {
|
|
@@ -17,7 +17,7 @@ export declare enum MonitorOverviewRunState {
|
|
|
17
17
|
Overdue = "Overdue",
|
|
18
18
|
Running = "Running"
|
|
19
19
|
}
|
|
20
|
-
export type MonitorOverviewTone = "good" | "warning" | "danger" | "info" | "neutral";
|
|
20
|
+
export type MonitorOverviewTone = "good" | "warning" | "danger" | "info" | "neutral" | "paused";
|
|
21
21
|
export type MonitorOverviewLinkKey = "settings" | "probes" | "criteria" | "documentation" | "statusTimeline" | "incidents" | "alerts" | "metrics" | "owners" | "networkDevice";
|
|
22
22
|
export type MonitorOverviewActionKey = "turnMonitoringOn";
|
|
23
23
|
export interface MonitorOverviewLinkCallToAction {
|
|
@@ -781,7 +781,7 @@ class MonitorOverviewPresentationUtil {
|
|
|
781
781
|
*/
|
|
782
782
|
if (context.isNoProbeEnabled) {
|
|
783
783
|
secondaryBadges.push({
|
|
784
|
-
text: t.translateTemplate("
|
|
784
|
+
text: t.translateTemplate("No Probe Enabled"),
|
|
785
785
|
tone: "danger",
|
|
786
786
|
});
|
|
787
787
|
}
|
|
@@ -799,7 +799,7 @@ class MonitorOverviewPresentationUtil {
|
|
|
799
799
|
if (input.pause.isArchived) {
|
|
800
800
|
return {
|
|
801
801
|
tone: "neutral",
|
|
802
|
-
badge: { text: t.translateTemplate("Archived"), tone: "
|
|
802
|
+
badge: { text: t.translateTemplate("Archived"), tone: "paused" },
|
|
803
803
|
secondaryBadges: secondaryBadges,
|
|
804
804
|
headline: {
|
|
805
805
|
text: t.translateTemplate("Monitoring is off because it is archived"),
|
|
@@ -819,7 +819,7 @@ class MonitorOverviewPresentationUtil {
|
|
|
819
819
|
if (input.pause.isDisabled) {
|
|
820
820
|
return {
|
|
821
821
|
tone: "neutral",
|
|
822
|
-
badge: { text: t.translateTemplate("Disabled"), tone: "
|
|
822
|
+
badge: { text: t.translateTemplate("Disabled"), tone: "paused" },
|
|
823
823
|
secondaryBadges: secondaryBadges,
|
|
824
824
|
headline: { text: t.translateTemplate("Monitoring is turned off") },
|
|
825
825
|
explanation: t.translateTemplate(PAUSED_EXPLANATION.disabled),
|
|
@@ -833,7 +833,7 @@ class MonitorOverviewPresentationUtil {
|
|
|
833
833
|
if (input.pause.byManualIncident) {
|
|
834
834
|
return {
|
|
835
835
|
tone: "neutral",
|
|
836
|
-
badge: { text: t.translateTemplate("Paused"), tone: "
|
|
836
|
+
badge: { text: t.translateTemplate("Paused"), tone: "paused" },
|
|
837
837
|
secondaryBadges: secondaryBadges,
|
|
838
838
|
headline: {
|
|
839
839
|
text: t.translateTemplate("Monitoring is paused by an incident"),
|
|
@@ -848,7 +848,7 @@ class MonitorOverviewPresentationUtil {
|
|
|
848
848
|
}
|
|
849
849
|
return {
|
|
850
850
|
tone: "neutral",
|
|
851
|
-
badge: { text: t.translateTemplate("Paused"), tone: "
|
|
851
|
+
badge: { text: t.translateTemplate("Paused"), tone: "paused" },
|
|
852
852
|
secondaryBadges: secondaryBadges,
|
|
853
853
|
headline: {
|
|
854
854
|
text: t.translateTemplate("Monitoring is paused for scheduled maintenance"),
|
|
@@ -997,7 +997,7 @@ class MonitorOverviewPresentationUtil {
|
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
999
|
const badge = {
|
|
1000
|
-
text: t.translateTemplate("
|
|
1000
|
+
text: t.translateTemplate("No Probe Enabled"),
|
|
1001
1001
|
tone: "danger",
|
|
1002
1002
|
};
|
|
1003
1003
|
const manageProbes = {
|
|
@@ -23,7 +23,7 @@ const MonitoringOff_1 = __importDefault(require("./MonitoringOff"));
|
|
|
23
23
|
* Archived page.
|
|
24
24
|
* - Disabled: someone turned its monitoring off, so the status it holds is
|
|
25
25
|
* only what its last check saw (Utils/Monitor/MonitoringOff).
|
|
26
|
-
* -
|
|
26
|
+
* - No Probe Enabled, Probes Disconnected: no probe checks it.
|
|
27
27
|
* - Nothing has checked it yet (Utils/Monitor/MonitorFirstCheck, issue
|
|
28
28
|
* #8899), and it is still in the operational status it was created in:
|
|
29
29
|
* - Paused, while an incident declared by hand or a maintenance event
|
|
@@ -59,7 +59,7 @@ var MonitorRowStatusKind;
|
|
|
59
59
|
exports.MONITOR_ROW_STATUS_WORDS = {
|
|
60
60
|
[MonitorRowStatusKind.Archived]: (0, Translator_1.translationKey)("Archived"),
|
|
61
61
|
[MonitorRowStatusKind.MonitoringOff]: (0, Translator_1.translationKey)("Disabled"),
|
|
62
|
-
[MonitorRowStatusKind.NoProbeEnabled]: (0, Translator_1.translationKey)("
|
|
62
|
+
[MonitorRowStatusKind.NoProbeEnabled]: (0, Translator_1.translationKey)("No Probe Enabled"),
|
|
63
63
|
[MonitorRowStatusKind.ProbesDisconnected]: (0, Translator_1.translationKey)("Probes Disconnected"),
|
|
64
64
|
[MonitorRowStatusKind.PausedBeforeFirstCheck]: (0, Translator_1.translationKey)("Paused"),
|
|
65
65
|
[MonitorRowStatusKind.NoResultsYet]: (0, Translator_1.translationKey)("No results yet"),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import MonitorType from "../../Types/Monitor/MonitorType.mjs";
|
|
2
|
+
export declare enum MonitorOverviewFamily {
|
|
3
|
+
ProbeCheck = "ProbeCheck",
|
|
4
|
+
Heartbeat = "Heartbeat",
|
|
5
|
+
Agent = "Agent",
|
|
6
|
+
TelemetrySignal = "TelemetrySignal",
|
|
7
|
+
Infrastructure = "Infrastructure",
|
|
8
|
+
NetworkDevice = "NetworkDevice",
|
|
9
|
+
ProbeStatus = "ProbeStatus",
|
|
10
|
+
Manual = "Manual"
|
|
11
|
+
}
|
|
12
|
+
export default class MonitorTypeFamily {
|
|
13
|
+
static getFamily(monitorType: MonitorType): MonitorOverviewFamily;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import MonitorType from "../../Types/Monitor/MonitorType";
|
|
2
|
+
export declare enum MonitorOverviewFamily {
|
|
3
|
+
ProbeCheck = "ProbeCheck",
|
|
4
|
+
Heartbeat = "Heartbeat",
|
|
5
|
+
Agent = "Agent",
|
|
6
|
+
TelemetrySignal = "TelemetrySignal",
|
|
7
|
+
Infrastructure = "Infrastructure",
|
|
8
|
+
NetworkDevice = "NetworkDevice",
|
|
9
|
+
ProbeStatus = "ProbeStatus",
|
|
10
|
+
Manual = "Manual"
|
|
11
|
+
}
|
|
12
|
+
export default class MonitorTypeFamily {
|
|
13
|
+
static getFamily(monitorType: MonitorType): MonitorOverviewFamily;
|
|
14
|
+
}
|