@oneuptime/common 14.0.109 → 14.0.110
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/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/Alert.js +2 -2
- package/Models/DatabaseModels/AlertEpisode.js +2 -2
- package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
- package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertSeverity.js +13 -4
- package/Models/DatabaseModels/AlertState.js +1 -1
- package/Models/DatabaseModels/CallLog.js +12 -12
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +12 -12
- package/Models/DatabaseModels/FormSubmission.js +2 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
- package/Models/DatabaseModels/GlobalConfig.js +28 -0
- package/Models/DatabaseModels/Incident.js +2 -2
- package/Models/DatabaseModels/IncidentEpisode.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
- package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentSeverity.js +13 -4
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Monitor.js +3 -3
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +41 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +9 -6
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +14 -11
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
- package/Models/DatabaseModels/Project.d.mts +2 -0
- package/Models/DatabaseModels/Project.d.ts +2 -0
- package/Models/DatabaseModels/Project.js +96 -2
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/ScheduledMaintenance.js +6 -3
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +1 -1
- package/Models/DatabaseModels/Service.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
- package/Models/DatabaseModels/SmsLog.js +12 -12
- package/Models/DatabaseModels/StatusPage.js +5 -5
- package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
- package/Models/DatabaseModels/TelegramLog.js +12 -12
- package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
- package/Models/DatabaseModels/User.d.mts +4 -0
- package/Models/DatabaseModels/User.d.ts +4 -0
- package/Models/DatabaseModels/User.js +100 -0
- package/Models/DatabaseModels/UserOnCallLog.js +6 -6
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
- package/Models/DatabaseModels/WebhookLog.js +12 -12
- package/Models/DatabaseModels/WhatsAppLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AIChatTypes.js +5 -0
- package/Types/Analytics/ProductEvent.d.mts +6 -1
- package/Types/Analytics/ProductEvent.d.ts +6 -1
- package/Types/Analytics/ProductEvent.js +41 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +4 -2
- package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
- package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
- package/Types/Cloud/CloudResourceCatalog.js +33 -3
- package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
- package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.js +102 -65
- package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
- package/Types/Database/TableMetadata.d.mts +2 -0
- package/Types/Database/TableMetadata.d.ts +2 -0
- package/Types/Database/TableMetadata.js +6 -0
- package/Types/Date.d.mts +20 -1
- package/Types/Date.d.ts +20 -1
- package/Types/Date.js +42 -2
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +44 -2
- package/Types/DateLanguage.mjs +2 -0
- package/Types/DirectionArrow.d.mts +7 -0
- package/Types/DirectionArrow.d.ts +7 -0
- package/Types/DirectionArrow.js +88 -0
- package/Types/DirectionArrow.mjs +7 -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/Docs/RetiredNames.d.mts +11 -0
- package/Types/Docs/RetiredNames.d.ts +11 -0
- package/Types/Docs/RetiredNames.js +139 -0
- package/Types/Docs/RetiredNames.mjs +3 -0
- package/Types/Exception/RefusalWithValues.d.mts +7 -0
- package/Types/Exception/RefusalWithValues.d.ts +7 -0
- package/Types/Exception/RefusalWithValues.js +76 -0
- package/Types/Exception/RefusalWithValues.mjs +3 -0
- package/Types/Exception/UnexplainedError.d.mts +13 -0
- package/Types/Exception/UnexplainedError.d.ts +13 -0
- package/Types/Exception/UnexplainedError.js +53 -1
- package/Types/Exception/UnexplainedError.mjs +1 -0
- package/Types/File/FileSize.d.mts +4 -1
- package/Types/File/FileSize.d.ts +4 -1
- package/Types/File/FileSize.js +18 -17
- package/Types/HostCollector/HostCollector.d.mts +1 -0
- package/Types/HostCollector/HostCollector.d.ts +1 -0
- package/Types/HostCollector/HostCollector.js +26 -10
- package/Types/HostCollector/HostCollector.mjs +1 -0
- package/Types/Monitor/MonitorCriteria.js +2 -2
- package/Types/Monitor/MonitorStep.js +1 -1
- package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
- package/Types/Monitor/WhoIsTold.d.mts +3 -1
- package/Types/Monitor/WhoIsTold.d.ts +3 -1
- package/Types/Monitor/WhoIsTold.js +2 -1
- package/Types/NotificationRule/PagingLadder.d.mts +137 -0
- package/Types/NotificationRule/PagingLadder.d.ts +137 -0
- package/Types/NotificationRule/PagingLadder.js +682 -0
- package/Types/NotificationRule/PagingLadder.mjs +28 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
- package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +194 -193
- package/Types/Product/ProductCatalog.d.mts +10 -0
- package/Types/Product/ProductCatalog.d.ts +10 -0
- package/Types/Product/ProductCatalog.js +208 -0
- package/Types/Product/ProductCatalog.mjs +6 -0
- package/Types/Product/ProductOfTable.d.mts +3 -0
- package/Types/Product/ProductOfTable.d.ts +3 -0
- package/Types/Product/ProductOfTable.js +68 -0
- package/Types/Product/ProductOfTable.mjs +3 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
- package/Types/Product/ProjectProductsAnswer.js +35 -2
- package/Types/Product/ProjectProductsAnswer.mjs +1 -0
- package/Types/Product/ServerProducts.d.mts +65 -0
- package/Types/Product/ServerProducts.d.ts +65 -0
- package/Types/Product/ServerProducts.js +383 -0
- package/Types/Product/ServerProducts.mjs +26 -0
- package/Types/Product/ServerProductsAnswer.d.mts +21 -0
- package/Types/Product/ServerProductsAnswer.d.ts +21 -0
- package/Types/Product/ServerProductsAnswer.js +78 -0
- package/Types/Product/ServerProductsAnswer.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
- package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
- package/Types/ProductFeedback/ProductFeedback.js +8 -0
- package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
- package/Types/SampleProject/SampleProject.d.mts +54 -0
- package/Types/SampleProject/SampleProject.d.ts +54 -0
- package/Types/SampleProject/SampleProject.js +177 -0
- package/Types/SampleProject/SampleProject.mjs +22 -0
- package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
- package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
- package/Types/SampleProject/SampleProjectContent.js +397 -0
- package/Types/SampleProject/SampleProjectContent.mjs +18 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +6 -5
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +40 -2
- package/Types/Translator.mjs +1 -0
- package/Types/UsedBy/UsedBy.d.mts +103 -0
- package/Types/UsedBy/UsedBy.d.ts +103 -0
- package/Types/UsedBy/UsedBy.js +389 -0
- package/Types/UsedBy/UsedBy.mjs +20 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
- package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
- package/Types/UsedBy/UsedByServerProducts.js +48 -0
- package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
- package/Types/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/Templates.js +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +2 -0
- package/Utils/AI/MeaningMatch.d.mts +36 -0
- package/Utils/AI/MeaningMatch.d.ts +36 -0
- package/Utils/AI/MeaningMatch.js +535 -0
- package/Utils/AI/MeaningMatch.mjs +7 -0
- package/Utils/ArchivableValues.js +1 -1
- package/Utils/AuditLog/AuditLogValues.js +2 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
- package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
- package/Utils/DataSecurity/TextScanner.js +2 -2
- package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
- package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
- package/Utils/DeveloperDocs/CliCommands.js +2 -1
- package/Utils/DeveloperDocs/CliResources.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/MarkdownTableCell.js +2 -1
- package/Utils/Markdown/OverLongText.js +523 -5
- package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
- package/Utils/Markdown/SlowMarkdown.js +595 -11
- package/Utils/Markdown/SlowMarkdown.mjs +6 -0
- package/Utils/ModelApiName.d.mts +11 -0
- package/Utils/ModelApiName.d.ts +11 -0
- package/Utils/ModelApiName.js +72 -0
- package/Utils/ModelApiName.mjs +5 -0
- package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +8 -3
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
- package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
- package/Utils/OpenStack/OpenStackCheckName.js +2 -1
- package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
- package/Utils/OpenStack/OpenStackLogs.js +3 -2
- package/Utils/OpenStack/OpenStackTraces.js +2 -1
- package/Utils/Project/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
- package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
- package/Utils/ScheduledMaintenanceStart.js +9 -0
- package/Utils/Schema/ModelSchema.js +10 -1
- package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
- package/Utils/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -0
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import ProductKey from "../Product/ProductKey";
|
|
2
|
+
import { ProjectProductSettings } from "../Product/ProjectProducts";
|
|
3
|
+
export declare const SAMPLE_PROJECT_NAME: string;
|
|
4
|
+
export declare const SAMPLE_COMPANY_NAME: string;
|
|
5
|
+
export declare const SAMPLE_PROJECT_IDLE_DAYS: number;
|
|
6
|
+
export declare const SAMPLE_PROJECT_TELEMETRY_RETENTION_IN_DAYS: number;
|
|
7
|
+
export declare const SAMPLE_PROJECT_PRODUCTS: ReadonlyArray<ProductKey>;
|
|
8
|
+
export declare const getSampleProjectProductSettings: (now: Date) => ProjectProductSettings;
|
|
9
|
+
export declare const SAMPLE_PERSON_EMAIL_DOMAIN: string;
|
|
10
|
+
export interface SamplePerson {
|
|
11
|
+
handle: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const SAMPLE_PEOPLE: ReadonlyArray<SamplePerson>;
|
|
15
|
+
export declare const getSamplePersonEmail: (data: {
|
|
16
|
+
handle: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
}) => string;
|
|
19
|
+
export declare const isSamplePersonEmail: (email: unknown) => boolean;
|
|
20
|
+
export declare const SAMPLE_PROJECT_SENDS_NOTHING_MESSAGE: string;
|
|
21
|
+
export declare const getSampleProjectNotSentReason: (channel: string) => string;
|
|
22
|
+
export declare const SAMPLE_PERSON_NOT_SENT_REASON: string;
|
|
23
|
+
export declare const SAMPLE_PROJECT_REFUSALS: {
|
|
24
|
+
readonly testPage: string;
|
|
25
|
+
readonly monitor: string;
|
|
26
|
+
readonly telemetryIngestion: string;
|
|
27
|
+
readonly workflow: string;
|
|
28
|
+
readonly ai: string;
|
|
29
|
+
readonly workspace: string;
|
|
30
|
+
readonly statusPageDomain: string;
|
|
31
|
+
readonly member: string;
|
|
32
|
+
readonly samplePersonElsewhere: string;
|
|
33
|
+
readonly creationRestricted: string;
|
|
34
|
+
readonly notASample: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const SAMPLE_PROJECT_API_PATH: string;
|
|
37
|
+
export declare const SAMPLE_PROJECT_CREATE_ROUTE: string;
|
|
38
|
+
export declare const SAMPLE_PROJECT_DELETE_ROUTE: string;
|
|
39
|
+
export declare enum SampleProjectEntryPoint {
|
|
40
|
+
Welcome = "welcome",
|
|
41
|
+
Goals = "goals",
|
|
42
|
+
Home = "home"
|
|
43
|
+
}
|
|
44
|
+
export declare const SAMPLE_PROJECT_ENTRY_POINTS: ReadonlyArray<SampleProjectEntryPoint>;
|
|
45
|
+
export declare const isSampleProjectEntryPoint: (value: unknown) => value is SampleProjectEntryPoint;
|
|
46
|
+
export interface SampleProjectCreateAnswer {
|
|
47
|
+
projectId: string;
|
|
48
|
+
isNew: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare const isSampleProjectIdle: (data: {
|
|
51
|
+
lastActive: Date | null | undefined;
|
|
52
|
+
createdAt: Date | null | undefined;
|
|
53
|
+
now: Date;
|
|
54
|
+
}) => boolean;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isSampleProjectIdle = exports.isSampleProjectEntryPoint = exports.SAMPLE_PROJECT_ENTRY_POINTS = exports.SampleProjectEntryPoint = exports.SAMPLE_PROJECT_DELETE_ROUTE = exports.SAMPLE_PROJECT_CREATE_ROUTE = exports.SAMPLE_PROJECT_API_PATH = exports.SAMPLE_PROJECT_REFUSALS = exports.SAMPLE_PERSON_NOT_SENT_REASON = exports.getSampleProjectNotSentReason = exports.SAMPLE_PROJECT_SENDS_NOTHING_MESSAGE = exports.isSamplePersonEmail = exports.getSamplePersonEmail = exports.SAMPLE_PEOPLE = exports.SAMPLE_PERSON_EMAIL_DOMAIN = exports.getSampleProjectProductSettings = exports.SAMPLE_PROJECT_PRODUCTS = exports.SAMPLE_PROJECT_TELEMETRY_RETENTION_IN_DAYS = exports.SAMPLE_PROJECT_IDLE_DAYS = exports.SAMPLE_COMPANY_NAME = exports.SAMPLE_PROJECT_NAME = void 0;
|
|
7
|
+
const ProductKey_1 = __importDefault(require("../Product/ProductKey"));
|
|
8
|
+
const ProjectProducts_1 = require("../Product/ProjectProducts");
|
|
9
|
+
/*
|
|
10
|
+
* A SAMPLE PROJECT TO LOOK AROUND IN (issue #6808).
|
|
11
|
+
*
|
|
12
|
+
* A new project is empty, so it cannot show what an incident timeline, an
|
|
13
|
+
* on-call rotation or a trace looks like. One click makes a second project
|
|
14
|
+
* for the person, "Sample: Acme Shop", filled with made-up monitors,
|
|
15
|
+
* incidents, alerts, an on-call policy, a status page, a service with its
|
|
16
|
+
* logs, traces and metrics, an SLO and a dashboard, and opens it.
|
|
17
|
+
*
|
|
18
|
+
* It can never notify anyone or be seen by the public, and it is never
|
|
19
|
+
* billed (Project.isSampleProject, and every reader SampleProjectReadersGuard
|
|
20
|
+
* lists). Every page of it says what it is, with the way to delete it and
|
|
21
|
+
* back to the person's own project. It goes away when the person deletes
|
|
22
|
+
* it, and on OneUptime Cloud after SAMPLE_PROJECT_IDLE_DAYS without a visit.
|
|
23
|
+
* A self-hosted server makes it from this code: nothing is fetched from
|
|
24
|
+
* oneuptime.com.
|
|
25
|
+
*
|
|
26
|
+
* Pure: the server, the Dashboard and their tests read it.
|
|
27
|
+
*/
|
|
28
|
+
exports.SAMPLE_PROJECT_NAME = "Sample: Acme Shop";
|
|
29
|
+
// The made-up company the sample's monitors, status page and service belong to.
|
|
30
|
+
exports.SAMPLE_COMPANY_NAME = "Acme Shop";
|
|
31
|
+
/*
|
|
32
|
+
* On OneUptime Cloud, a sample nobody has opened for this many days is
|
|
33
|
+
* deleted (Project.lastActive, which every signed-in request moves on).
|
|
34
|
+
*/
|
|
35
|
+
exports.SAMPLE_PROJECT_IDLE_DAYS = 14;
|
|
36
|
+
/*
|
|
37
|
+
* How long the sample's logs, spans and metrics are kept: the sample's
|
|
38
|
+
* whole life on Cloud, and a day more. A self-hosted sample keeps its other
|
|
39
|
+
* records until it is deleted; its telemetry ages out after this.
|
|
40
|
+
*/
|
|
41
|
+
exports.SAMPLE_PROJECT_TELEMETRY_RETENTION_IN_DAYS = exports.SAMPLE_PROJECT_IDLE_DAYS + 1;
|
|
42
|
+
/*
|
|
43
|
+
* The products the sample has something in, and shows: Essentials, and the
|
|
44
|
+
* telemetry of its one service with the dashboard over it. Every other
|
|
45
|
+
* product is kept under More products (#6814), as a project's goals would
|
|
46
|
+
* leave it.
|
|
47
|
+
*/
|
|
48
|
+
exports.SAMPLE_PROJECT_PRODUCTS = [
|
|
49
|
+
...ProjectProducts_1.ESSENTIAL_PRODUCTS,
|
|
50
|
+
ProductKey_1.default.Logs,
|
|
51
|
+
ProductKey_1.default.Metrics,
|
|
52
|
+
ProductKey_1.default.Traces,
|
|
53
|
+
ProductKey_1.default.Services,
|
|
54
|
+
ProductKey_1.default.Dashboards,
|
|
55
|
+
];
|
|
56
|
+
// The sample's Project.productSettings: everything it has nothing in is hidden.
|
|
57
|
+
const getSampleProjectProductSettings = (now) => {
|
|
58
|
+
return {
|
|
59
|
+
hidden: ProjectProducts_1.HIDEABLE_PRODUCTS.filter((product) => {
|
|
60
|
+
return !exports.SAMPLE_PROJECT_PRODUCTS.includes(product);
|
|
61
|
+
}),
|
|
62
|
+
keptHiddenWithData: [],
|
|
63
|
+
/*
|
|
64
|
+
* As a member's choice: the sample's goals are never asked, and nothing
|
|
65
|
+
* may choose its menu again from them.
|
|
66
|
+
*/
|
|
67
|
+
chosenBy: ProjectProducts_1.ProjectProductsChosenBy.Member,
|
|
68
|
+
changedAt: now.toISOString(),
|
|
69
|
+
changedByUserId: null,
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
exports.getSampleProjectProductSettings = getSampleProjectProductSettings;
|
|
73
|
+
/*
|
|
74
|
+
* THE SAMPLE PEOPLE: who staffs the sample's on-call policy and owns its
|
|
75
|
+
* incidents. They are not real people and never can be (User.sampleProjectId):
|
|
76
|
+
* their addresses are on the .invalid domain, which RFC 2606 keeps from ever
|
|
77
|
+
* reaching a mailbox, and MailService refuses to send to it at all.
|
|
78
|
+
*/
|
|
79
|
+
exports.SAMPLE_PERSON_EMAIL_DOMAIN = "sample.invalid";
|
|
80
|
+
exports.SAMPLE_PEOPLE = [
|
|
81
|
+
{ handle: "maya.chen", name: "Maya Chen" },
|
|
82
|
+
{ handle: "sam.okafor", name: "Sam Okafor" },
|
|
83
|
+
{ handle: "lena.fischer", name: "Lena Fischer" },
|
|
84
|
+
{ handle: "diego.alvarez", name: "Diego Alvarez" },
|
|
85
|
+
];
|
|
86
|
+
/*
|
|
87
|
+
* A sample person's address: their handle, marked with their sample's id
|
|
88
|
+
* (every address on the server is unique), at the reserved domain.
|
|
89
|
+
*/
|
|
90
|
+
const getSamplePersonEmail = (data) => {
|
|
91
|
+
const mark = data.projectId.replace(/-/g, "").toLowerCase();
|
|
92
|
+
return `${data.handle}+${mark}@${exports.SAMPLE_PERSON_EMAIL_DOMAIN}`;
|
|
93
|
+
};
|
|
94
|
+
exports.getSamplePersonEmail = getSamplePersonEmail;
|
|
95
|
+
// Whether an address is a sample person's: nothing is ever sent to one.
|
|
96
|
+
const isSamplePersonEmail = (email) => {
|
|
97
|
+
if (email === null || email === undefined) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
const text = String(email).trim().toLowerCase();
|
|
101
|
+
return (text.endsWith(`@${exports.SAMPLE_PERSON_EMAIL_DOMAIN}`) ||
|
|
102
|
+
text.endsWith(`.${exports.SAMPLE_PERSON_EMAIL_DOMAIN}`));
|
|
103
|
+
};
|
|
104
|
+
exports.isSamplePersonEmail = isSamplePersonEmail;
|
|
105
|
+
/*
|
|
106
|
+
* WHAT A SENDER SAYS INSTEAD OF SENDING for a sample project: on the
|
|
107
|
+
* on-call timeline, in the logs, and to a caller that asked to send.
|
|
108
|
+
*/
|
|
109
|
+
exports.SAMPLE_PROJECT_SENDS_NOTHING_MESSAGE = "This is a sample project, so nothing is sent from it.";
|
|
110
|
+
const getSampleProjectNotSentReason = (channel) => {
|
|
111
|
+
return `${channel} not sent: ${exports.SAMPLE_PROJECT_SENDS_NOTHING_MESSAGE}`;
|
|
112
|
+
};
|
|
113
|
+
exports.getSampleProjectNotSentReason = getSampleProjectNotSentReason;
|
|
114
|
+
// What a sender says for a sample person's address.
|
|
115
|
+
exports.SAMPLE_PERSON_NOT_SENT_REASON = "Email not sent: this address belongs to a sample person, who is not real.";
|
|
116
|
+
/*
|
|
117
|
+
* WHAT A SAMPLE PROJECT REFUSES, and why: each is a sentence that says what
|
|
118
|
+
* to do instead.
|
|
119
|
+
*/
|
|
120
|
+
exports.SAMPLE_PROJECT_REFUSALS = {
|
|
121
|
+
testPage: "This is a sample project, so nothing is sent from it. Send a test page from your own project.",
|
|
122
|
+
monitor: "This is a sample project, so its monitors are never checked. Create this monitor in your own project.",
|
|
123
|
+
telemetryIngestion: "This is a sample project, so it takes no telemetry. Send your telemetry to your own project.",
|
|
124
|
+
workflow: "This is a sample project, so its workflows never run. Run this workflow in your own project.",
|
|
125
|
+
ai: "This is a sample project, so OneUptime AI does not work in it. Use OneUptime AI in your own project.",
|
|
126
|
+
workspace: "This is a sample project, so it cannot be connected to a workspace. Connect your own project instead.",
|
|
127
|
+
statusPageDomain: "This is a sample project, so its status page is never public and takes no custom domain. Add the domain to a status page in your own project.",
|
|
128
|
+
member: "This is a sample project, so nobody else can be invited to it. Invite your team to your own project.",
|
|
129
|
+
samplePersonElsewhere: "This person is a sample person, made up for a sample project, so they cannot join another project. Invite a real person instead.",
|
|
130
|
+
creationRestricted: "Only admins can create projects on this server, and a sample project is a project. Ask your server admin to add you to a project.",
|
|
131
|
+
notASample: "This project is not a sample project, so it is not deleted from here. Delete it from Project Settings.",
|
|
132
|
+
};
|
|
133
|
+
/*
|
|
134
|
+
* THE SAMPLE'S API (SampleProjectAPI).
|
|
135
|
+
*
|
|
136
|
+
* POST /sample-project/create makes the person's sample, or finds the one
|
|
137
|
+
* they have, and answers its id
|
|
138
|
+
* POST /sample-project/delete deletes the sample the request names
|
|
139
|
+
* (its project header)
|
|
140
|
+
*/
|
|
141
|
+
exports.SAMPLE_PROJECT_API_PATH = "/sample-project";
|
|
142
|
+
exports.SAMPLE_PROJECT_CREATE_ROUTE = `${exports.SAMPLE_PROJECT_API_PATH}/create`;
|
|
143
|
+
exports.SAMPLE_PROJECT_DELETE_ROUTE = `${exports.SAMPLE_PROJECT_API_PATH}/delete`;
|
|
144
|
+
// Where a sample was started from, as its event says (sample_project/started).
|
|
145
|
+
var SampleProjectEntryPoint;
|
|
146
|
+
(function (SampleProjectEntryPoint) {
|
|
147
|
+
// The "No projects" page a new account lands on.
|
|
148
|
+
SampleProjectEntryPoint["Welcome"] = "welcome";
|
|
149
|
+
// The goal question's "Just looking around" (#6803).
|
|
150
|
+
SampleProjectEntryPoint["Goals"] = "goals";
|
|
151
|
+
// Home, for a project with nothing in it yet.
|
|
152
|
+
SampleProjectEntryPoint["Home"] = "home";
|
|
153
|
+
})(SampleProjectEntryPoint || (exports.SampleProjectEntryPoint = SampleProjectEntryPoint = {}));
|
|
154
|
+
exports.SAMPLE_PROJECT_ENTRY_POINTS = [
|
|
155
|
+
SampleProjectEntryPoint.Welcome,
|
|
156
|
+
SampleProjectEntryPoint.Goals,
|
|
157
|
+
SampleProjectEntryPoint.Home,
|
|
158
|
+
];
|
|
159
|
+
const isSampleProjectEntryPoint = (value) => {
|
|
160
|
+
return (typeof value === "string" &&
|
|
161
|
+
exports.SAMPLE_PROJECT_ENTRY_POINTS.includes(value));
|
|
162
|
+
};
|
|
163
|
+
exports.isSampleProjectEntryPoint = isSampleProjectEntryPoint;
|
|
164
|
+
/*
|
|
165
|
+
* Whether a sample nobody has opened for SAMPLE_PROJECT_IDLE_DAYS is due to
|
|
166
|
+
* be deleted (OneUptime Cloud's job): its last visit (Project.lastActive),
|
|
167
|
+
* or when it was made if nobody has opened it since.
|
|
168
|
+
*/
|
|
169
|
+
const isSampleProjectIdle = (data) => {
|
|
170
|
+
const lastVisit = data.lastActive || data.createdAt;
|
|
171
|
+
if (!lastVisit) {
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
const idleForMs = data.now.getTime() - new Date(lastVisit).getTime();
|
|
175
|
+
return idleForMs >= exports.SAMPLE_PROJECT_IDLE_DAYS * 24 * 60 * 60 * 1000;
|
|
176
|
+
};
|
|
177
|
+
exports.isSampleProjectIdle = isSampleProjectIdle;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import commonJsModule from "./SampleProject.js";
|
|
2
|
+
export const SAMPLE_COMPANY_NAME = commonJsModule.SAMPLE_COMPANY_NAME;
|
|
3
|
+
export const SAMPLE_PEOPLE = commonJsModule.SAMPLE_PEOPLE;
|
|
4
|
+
export const SAMPLE_PERSON_EMAIL_DOMAIN = commonJsModule.SAMPLE_PERSON_EMAIL_DOMAIN;
|
|
5
|
+
export const SAMPLE_PERSON_NOT_SENT_REASON = commonJsModule.SAMPLE_PERSON_NOT_SENT_REASON;
|
|
6
|
+
export const SAMPLE_PROJECT_API_PATH = commonJsModule.SAMPLE_PROJECT_API_PATH;
|
|
7
|
+
export const SAMPLE_PROJECT_CREATE_ROUTE = commonJsModule.SAMPLE_PROJECT_CREATE_ROUTE;
|
|
8
|
+
export const SAMPLE_PROJECT_DELETE_ROUTE = commonJsModule.SAMPLE_PROJECT_DELETE_ROUTE;
|
|
9
|
+
export const SAMPLE_PROJECT_ENTRY_POINTS = commonJsModule.SAMPLE_PROJECT_ENTRY_POINTS;
|
|
10
|
+
export const SAMPLE_PROJECT_IDLE_DAYS = commonJsModule.SAMPLE_PROJECT_IDLE_DAYS;
|
|
11
|
+
export const SAMPLE_PROJECT_NAME = commonJsModule.SAMPLE_PROJECT_NAME;
|
|
12
|
+
export const SAMPLE_PROJECT_PRODUCTS = commonJsModule.SAMPLE_PROJECT_PRODUCTS;
|
|
13
|
+
export const SAMPLE_PROJECT_REFUSALS = commonJsModule.SAMPLE_PROJECT_REFUSALS;
|
|
14
|
+
export const SAMPLE_PROJECT_SENDS_NOTHING_MESSAGE = commonJsModule.SAMPLE_PROJECT_SENDS_NOTHING_MESSAGE;
|
|
15
|
+
export const SAMPLE_PROJECT_TELEMETRY_RETENTION_IN_DAYS = commonJsModule.SAMPLE_PROJECT_TELEMETRY_RETENTION_IN_DAYS;
|
|
16
|
+
export const SampleProjectEntryPoint = commonJsModule.SampleProjectEntryPoint;
|
|
17
|
+
export const getSamplePersonEmail = commonJsModule.getSamplePersonEmail;
|
|
18
|
+
export const getSampleProjectNotSentReason = commonJsModule.getSampleProjectNotSentReason;
|
|
19
|
+
export const getSampleProjectProductSettings = commonJsModule.getSampleProjectProductSettings;
|
|
20
|
+
export const isSamplePersonEmail = commonJsModule.isSamplePersonEmail;
|
|
21
|
+
export const isSampleProjectEntryPoint = commonJsModule.isSampleProjectEntryPoint;
|
|
22
|
+
export const isSampleProjectIdle = commonJsModule.isSampleProjectIdle;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import MonitorType from "../Monitor/MonitorType.mjs";
|
|
2
|
+
export declare const MINUTES_IN_A_DAY: number;
|
|
3
|
+
export declare const SAMPLE_MONITOR_HISTORY_DAYS: number;
|
|
4
|
+
export declare enum SampleMonitorStatus {
|
|
5
|
+
Operational = "Operational",
|
|
6
|
+
Degraded = "Degraded",
|
|
7
|
+
Offline = "Offline"
|
|
8
|
+
}
|
|
9
|
+
export interface SampleMonitorOutage {
|
|
10
|
+
status: SampleMonitorStatus;
|
|
11
|
+
startsMinutesAgo: number;
|
|
12
|
+
endsMinutesAgo: number | null;
|
|
13
|
+
rootCause: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SampleMonitor {
|
|
16
|
+
key: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
monitorType: MonitorType;
|
|
20
|
+
destination: string | null;
|
|
21
|
+
port: number | null;
|
|
22
|
+
outages: Array<SampleMonitorOutage>;
|
|
23
|
+
statusPageGroup: string | null;
|
|
24
|
+
}
|
|
25
|
+
export declare const SAMPLE_MONITORS: ReadonlyArray<SampleMonitor>;
|
|
26
|
+
export declare const SAMPLE_STATUS_PAGE_GROUPS: ReadonlyArray<string>;
|
|
27
|
+
export interface SampleStatusPage {
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly description: string;
|
|
30
|
+
readonly pageTitle: string;
|
|
31
|
+
readonly pageDescription: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const SAMPLE_STATUS_PAGE: SampleStatusPage;
|
|
34
|
+
export declare enum SampleIncidentState {
|
|
35
|
+
Identified = "Identified",
|
|
36
|
+
Acknowledged = "Acknowledged",
|
|
37
|
+
Resolved = "Resolved"
|
|
38
|
+
}
|
|
39
|
+
export declare enum SampleIncidentSeverity {
|
|
40
|
+
Critical = "Critical Incident",
|
|
41
|
+
Major = "Major Incident",
|
|
42
|
+
Minor = "Minor Incident"
|
|
43
|
+
}
|
|
44
|
+
export interface SampleNote {
|
|
45
|
+
minutesAgo: number;
|
|
46
|
+
authorHandle: string | null;
|
|
47
|
+
note: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SampleIncident {
|
|
50
|
+
key: string;
|
|
51
|
+
title: string;
|
|
52
|
+
description: string;
|
|
53
|
+
severity: SampleIncidentSeverity;
|
|
54
|
+
monitorKeys: Array<string>;
|
|
55
|
+
declaredMinutesAgo: number;
|
|
56
|
+
states: Array<{
|
|
57
|
+
state: SampleIncidentState;
|
|
58
|
+
minutesAgo: number;
|
|
59
|
+
}>;
|
|
60
|
+
internalNotes: Array<SampleNote>;
|
|
61
|
+
publicNotes: Array<SampleNote>;
|
|
62
|
+
rootCause: string | null;
|
|
63
|
+
postmortemNote: string | null;
|
|
64
|
+
isPagedByOnCall: boolean;
|
|
65
|
+
}
|
|
66
|
+
export declare const SAMPLE_INCIDENTS: ReadonlyArray<SampleIncident>;
|
|
67
|
+
export declare enum SampleAlertState {
|
|
68
|
+
Identified = "Identified",
|
|
69
|
+
Acknowledged = "Acknowledged",
|
|
70
|
+
Resolved = "Resolved"
|
|
71
|
+
}
|
|
72
|
+
export declare enum SampleAlertSeverity {
|
|
73
|
+
High = "High",
|
|
74
|
+
Low = "Low"
|
|
75
|
+
}
|
|
76
|
+
export interface SampleAlert {
|
|
77
|
+
key: string;
|
|
78
|
+
title: string;
|
|
79
|
+
description: string;
|
|
80
|
+
severity: SampleAlertSeverity;
|
|
81
|
+
monitorKey: string | null;
|
|
82
|
+
states: Array<{
|
|
83
|
+
state: SampleAlertState;
|
|
84
|
+
minutesAgo: number;
|
|
85
|
+
}>;
|
|
86
|
+
}
|
|
87
|
+
export declare const SAMPLE_ALERTS: ReadonlyArray<SampleAlert>;
|
|
88
|
+
export interface SampleOnCall {
|
|
89
|
+
readonly policyName: string;
|
|
90
|
+
readonly policyDescription: string;
|
|
91
|
+
readonly scheduleName: string;
|
|
92
|
+
readonly scheduleDescription: string;
|
|
93
|
+
readonly layerName: string;
|
|
94
|
+
readonly rotationHandles: ReadonlyArray<string>;
|
|
95
|
+
readonly firstLevelName: string;
|
|
96
|
+
readonly secondLevelName: string;
|
|
97
|
+
readonly secondLevelHandle: string;
|
|
98
|
+
readonly escalateAfterInMinutes: number;
|
|
99
|
+
readonly acknowledgedAfterMinutes: number;
|
|
100
|
+
}
|
|
101
|
+
export declare const SAMPLE_ON_CALL: SampleOnCall;
|
|
102
|
+
export interface SampleMaintenance {
|
|
103
|
+
readonly title: string;
|
|
104
|
+
readonly description: string;
|
|
105
|
+
readonly startsInMinutes: number;
|
|
106
|
+
readonly durationInMinutes: number;
|
|
107
|
+
readonly monitorKeys: ReadonlyArray<string>;
|
|
108
|
+
}
|
|
109
|
+
export declare const SAMPLE_MAINTENANCE: SampleMaintenance;
|
|
110
|
+
export interface SampleService {
|
|
111
|
+
readonly name: string;
|
|
112
|
+
readonly description: string;
|
|
113
|
+
}
|
|
114
|
+
export declare const SAMPLE_SERVICE: SampleService;
|
|
115
|
+
export interface SampleSlo {
|
|
116
|
+
readonly name: string;
|
|
117
|
+
readonly description: string;
|
|
118
|
+
readonly monitorKey: string;
|
|
119
|
+
readonly targetPercentage: number;
|
|
120
|
+
readonly windowDays: number;
|
|
121
|
+
}
|
|
122
|
+
export declare const SAMPLE_SLO: SampleSlo;
|
|
123
|
+
export interface SampleDashboard {
|
|
124
|
+
readonly name: string;
|
|
125
|
+
readonly description: string;
|
|
126
|
+
}
|
|
127
|
+
export declare const SAMPLE_DASHBOARD: SampleDashboard;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import MonitorType from "../Monitor/MonitorType";
|
|
2
|
+
export declare const MINUTES_IN_A_DAY: number;
|
|
3
|
+
export declare const SAMPLE_MONITOR_HISTORY_DAYS: number;
|
|
4
|
+
export declare enum SampleMonitorStatus {
|
|
5
|
+
Operational = "Operational",
|
|
6
|
+
Degraded = "Degraded",
|
|
7
|
+
Offline = "Offline"
|
|
8
|
+
}
|
|
9
|
+
export interface SampleMonitorOutage {
|
|
10
|
+
status: SampleMonitorStatus;
|
|
11
|
+
startsMinutesAgo: number;
|
|
12
|
+
endsMinutesAgo: number | null;
|
|
13
|
+
rootCause: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SampleMonitor {
|
|
16
|
+
key: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
monitorType: MonitorType;
|
|
20
|
+
destination: string | null;
|
|
21
|
+
port: number | null;
|
|
22
|
+
outages: Array<SampleMonitorOutage>;
|
|
23
|
+
statusPageGroup: string | null;
|
|
24
|
+
}
|
|
25
|
+
export declare const SAMPLE_MONITORS: ReadonlyArray<SampleMonitor>;
|
|
26
|
+
export declare const SAMPLE_STATUS_PAGE_GROUPS: ReadonlyArray<string>;
|
|
27
|
+
export interface SampleStatusPage {
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly description: string;
|
|
30
|
+
readonly pageTitle: string;
|
|
31
|
+
readonly pageDescription: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const SAMPLE_STATUS_PAGE: SampleStatusPage;
|
|
34
|
+
export declare enum SampleIncidentState {
|
|
35
|
+
Identified = "Identified",
|
|
36
|
+
Acknowledged = "Acknowledged",
|
|
37
|
+
Resolved = "Resolved"
|
|
38
|
+
}
|
|
39
|
+
export declare enum SampleIncidentSeverity {
|
|
40
|
+
Critical = "Critical Incident",
|
|
41
|
+
Major = "Major Incident",
|
|
42
|
+
Minor = "Minor Incident"
|
|
43
|
+
}
|
|
44
|
+
export interface SampleNote {
|
|
45
|
+
minutesAgo: number;
|
|
46
|
+
authorHandle: string | null;
|
|
47
|
+
note: string;
|
|
48
|
+
}
|
|
49
|
+
export interface SampleIncident {
|
|
50
|
+
key: string;
|
|
51
|
+
title: string;
|
|
52
|
+
description: string;
|
|
53
|
+
severity: SampleIncidentSeverity;
|
|
54
|
+
monitorKeys: Array<string>;
|
|
55
|
+
declaredMinutesAgo: number;
|
|
56
|
+
states: Array<{
|
|
57
|
+
state: SampleIncidentState;
|
|
58
|
+
minutesAgo: number;
|
|
59
|
+
}>;
|
|
60
|
+
internalNotes: Array<SampleNote>;
|
|
61
|
+
publicNotes: Array<SampleNote>;
|
|
62
|
+
rootCause: string | null;
|
|
63
|
+
postmortemNote: string | null;
|
|
64
|
+
isPagedByOnCall: boolean;
|
|
65
|
+
}
|
|
66
|
+
export declare const SAMPLE_INCIDENTS: ReadonlyArray<SampleIncident>;
|
|
67
|
+
export declare enum SampleAlertState {
|
|
68
|
+
Identified = "Identified",
|
|
69
|
+
Acknowledged = "Acknowledged",
|
|
70
|
+
Resolved = "Resolved"
|
|
71
|
+
}
|
|
72
|
+
export declare enum SampleAlertSeverity {
|
|
73
|
+
High = "High",
|
|
74
|
+
Low = "Low"
|
|
75
|
+
}
|
|
76
|
+
export interface SampleAlert {
|
|
77
|
+
key: string;
|
|
78
|
+
title: string;
|
|
79
|
+
description: string;
|
|
80
|
+
severity: SampleAlertSeverity;
|
|
81
|
+
monitorKey: string | null;
|
|
82
|
+
states: Array<{
|
|
83
|
+
state: SampleAlertState;
|
|
84
|
+
minutesAgo: number;
|
|
85
|
+
}>;
|
|
86
|
+
}
|
|
87
|
+
export declare const SAMPLE_ALERTS: ReadonlyArray<SampleAlert>;
|
|
88
|
+
export interface SampleOnCall {
|
|
89
|
+
readonly policyName: string;
|
|
90
|
+
readonly policyDescription: string;
|
|
91
|
+
readonly scheduleName: string;
|
|
92
|
+
readonly scheduleDescription: string;
|
|
93
|
+
readonly layerName: string;
|
|
94
|
+
readonly rotationHandles: ReadonlyArray<string>;
|
|
95
|
+
readonly firstLevelName: string;
|
|
96
|
+
readonly secondLevelName: string;
|
|
97
|
+
readonly secondLevelHandle: string;
|
|
98
|
+
readonly escalateAfterInMinutes: number;
|
|
99
|
+
readonly acknowledgedAfterMinutes: number;
|
|
100
|
+
}
|
|
101
|
+
export declare const SAMPLE_ON_CALL: SampleOnCall;
|
|
102
|
+
export interface SampleMaintenance {
|
|
103
|
+
readonly title: string;
|
|
104
|
+
readonly description: string;
|
|
105
|
+
readonly startsInMinutes: number;
|
|
106
|
+
readonly durationInMinutes: number;
|
|
107
|
+
readonly monitorKeys: ReadonlyArray<string>;
|
|
108
|
+
}
|
|
109
|
+
export declare const SAMPLE_MAINTENANCE: SampleMaintenance;
|
|
110
|
+
export interface SampleService {
|
|
111
|
+
readonly name: string;
|
|
112
|
+
readonly description: string;
|
|
113
|
+
}
|
|
114
|
+
export declare const SAMPLE_SERVICE: SampleService;
|
|
115
|
+
export interface SampleSlo {
|
|
116
|
+
readonly name: string;
|
|
117
|
+
readonly description: string;
|
|
118
|
+
readonly monitorKey: string;
|
|
119
|
+
readonly targetPercentage: number;
|
|
120
|
+
readonly windowDays: number;
|
|
121
|
+
}
|
|
122
|
+
export declare const SAMPLE_SLO: SampleSlo;
|
|
123
|
+
export interface SampleDashboard {
|
|
124
|
+
readonly name: string;
|
|
125
|
+
readonly description: string;
|
|
126
|
+
}
|
|
127
|
+
export declare const SAMPLE_DASHBOARD: SampleDashboard;
|