@oneuptime/common 9.4.12 → 9.4.13
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/Incident.ts +77 -0
- package/Models/DatabaseModels/IncidentEpisode.ts +1223 -0
- package/Models/DatabaseModels/IncidentEpisodeFeed.ts +533 -0
- package/Models/DatabaseModels/IncidentEpisodeInternalNote.ts +456 -0
- package/Models/DatabaseModels/IncidentEpisodeMember.ts +587 -0
- package/Models/DatabaseModels/IncidentEpisodeOwnerTeam.ts +421 -0
- package/Models/DatabaseModels/IncidentEpisodeOwnerUser.ts +419 -0
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.ts +524 -0
- package/Models/DatabaseModels/IncidentGroupingRule.ts +1430 -0
- package/Models/DatabaseModels/Index.ts +18 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.ts +70 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.ts +59 -0
- package/Models/DatabaseModels/UserOnCallLog.ts +48 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.ts +49 -0
- package/Models/DatabaseModels/WorkspaceNotificationLog.ts +57 -0
- package/Server/API/IncidentEpisodeAPI.ts +150 -0
- package/Server/API/SlackAPI.ts +23 -0
- package/Server/API/UserOnCallLogTimelineAPI.ts +24 -4
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769626069479-MigrationName.ts +729 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769629928240-MigrationName.ts +261 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1769676117342-RenameEvaluateOverTimeInCriteriaFilter.ts +28 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
- package/Server/Services/BillingService.ts +1 -3
- package/Server/Services/CallService.ts +1 -0
- package/Server/Services/IncidentEpisodeFeedService.ts +94 -0
- package/Server/Services/IncidentEpisodeInternalNoteService.ts +71 -0
- package/Server/Services/IncidentEpisodeMemberService.ts +321 -0
- package/Server/Services/IncidentEpisodeOwnerTeamService.ts +10 -0
- package/Server/Services/IncidentEpisodeOwnerUserService.ts +10 -0
- package/Server/Services/IncidentEpisodeService.ts +1045 -0
- package/Server/Services/IncidentEpisodeStateTimelineService.ts +566 -0
- package/Server/Services/IncidentGroupingEngineService.ts +1047 -0
- package/Server/Services/IncidentGroupingRuleService.ts +14 -0
- package/Server/Services/IncidentService.ts +11 -0
- package/Server/Services/Index.ts +18 -0
- package/Server/Services/MailService.ts +1 -0
- package/Server/Services/MonitorService.ts +9 -0
- package/Server/Services/OnCallDutyPolicyEscalationRuleService.ts +18 -0
- package/Server/Services/OnCallDutyPolicyExecutionLogService.ts +64 -2
- package/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.ts +26 -1
- package/Server/Services/OnCallDutyPolicyService.ts +15 -0
- package/Server/Services/SmsService.ts +1 -0
- package/Server/Services/UserNotificationRuleService.ts +48 -2
- package/Server/Services/UserNotificationSettingService.ts +23 -0
- package/Server/Services/UserOnCallLogService.ts +41 -4
- package/Server/Services/WhatsAppService.ts +1 -0
- package/Server/Services/WorkspaceNotificationLogService.ts +16 -0
- package/Server/Services/WorkspaceNotificationRuleService.ts +116 -0
- package/Server/Utils/AI/IncidentEpisodeAIContextBuilder.ts +490 -0
- package/Server/Utils/Monitor/Criteria/APIRequestCriteria.ts +1 -1
- package/Server/Utils/Monitor/Criteria/CompareCriteria.ts +1 -1
- package/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.ts +1 -1
- package/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.ts +1 -1
- package/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.ts +2 -2
- package/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.ts +182 -0
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +13 -0
- package/Server/Utils/Monitor/MonitorCriteriaExpectationBuilder.ts +1 -1
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +37 -0
- package/Server/Utils/PushNotificationUtil.ts +31 -0
- package/Server/Utils/WhatsAppTemplateUtil.ts +14 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.ts +18 -0
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.ts +702 -0
- package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +20 -0
- package/Server/Utils/Workspace/Slack/Actions/ActionTypes.ts +11 -0
- package/Server/Utils/Workspace/Slack/Actions/IncidentEpisode.ts +918 -0
- package/Server/Utils/Workspace/Slack/Messages/IncidentEpisode.ts +120 -0
- package/Server/Utils/Workspace/WorkspaceMessages/IncidentEpisode.ts +74 -0
- package/Types/Email/EmailTemplateType.ts +6 -0
- package/Types/Monitor/CriteriaFilter.ts +24 -4
- package/Types/Monitor/MonitorCriteriaInstance.ts +67 -0
- package/Types/Monitor/MonitorStep.ts +37 -0
- package/Types/Monitor/MonitorStepSnmpMonitor.ts +102 -0
- package/Types/Monitor/MonitorType.ts +15 -2
- package/Types/Monitor/SnmpMonitor/SnmpAuthProtocol.ts +8 -0
- package/Types/Monitor/SnmpMonitor/SnmpDataType.ts +21 -0
- package/Types/Monitor/SnmpMonitor/SnmpMonitorResponse.ts +16 -0
- package/Types/Monitor/SnmpMonitor/SnmpOid.ts +60 -0
- package/Types/Monitor/SnmpMonitor/SnmpPrivProtocol.ts +7 -0
- package/Types/Monitor/SnmpMonitor/SnmpSecurityLevel.ts +7 -0
- package/Types/Monitor/SnmpMonitor/SnmpV3Auth.ts +12 -0
- package/Types/Monitor/SnmpMonitor/SnmpVersion.ts +7 -0
- package/Types/NotificationSetting/NotificationSettingEventType.ts +7 -0
- package/Types/Permission.ts +311 -0
- package/Types/Probe/ProbeMonitorResponse.ts +2 -0
- package/Types/UserNotification/UserNotificationEventType.ts +1 -0
- package/Types/WhatsApp/WhatsAppTemplates.ts +24 -0
- package/Types/Workspace/NotificationRules/EventType.ts +1 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.ts +38 -1
- package/Utils/Monitor/MonitorMetricType.ts +2 -1
- package/build/dist/Models/DatabaseModels/Incident.js +78 -0
- package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentEpisode.js +1250 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisode.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeFeed.js +555 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeFeed.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeInternalNote.js +467 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeInternalNote.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeMember.js +607 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeMember.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeOwnerTeam.js +437 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeOwnerUser.js +436 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +546 -0
- package/build/dist/Models/DatabaseModels/IncidentEpisodeStateTimeline.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentGroupingRule.js +1437 -0
- package/build/dist/Models/DatabaseModels/IncidentGroupingRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Index.js +16 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +69 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +58 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserOnCallLog.js +47 -0
- package/build/dist/Models/DatabaseModels/UserOnCallLog.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserOnCallLogTimeline.js +48 -0
- package/build/dist/Models/DatabaseModels/UserOnCallLogTimeline.js.map +1 -1
- package/build/dist/Models/DatabaseModels/WorkspaceNotificationLog.js +58 -0
- package/build/dist/Models/DatabaseModels/WorkspaceNotificationLog.js.map +1 -1
- package/build/dist/Server/API/IncidentEpisodeAPI.js +97 -0
- package/build/dist/Server/API/IncidentEpisodeAPI.js.map +1 -0
- package/build/dist/Server/API/SlackAPI.js +18 -0
- package/build/dist/Server/API/SlackAPI.js.map +1 -1
- package/build/dist/Server/API/UserOnCallLogTimelineAPI.js +30 -10
- package/build/dist/Server/API/UserOnCallLogTimelineAPI.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769626069479-MigrationName.js +256 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769626069479-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769629928240-MigrationName.js +96 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769629928240-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769676117342-RenameEvaluateOverTimeInCriteriaFilter.js +25 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1769676117342-RenameEvaluateOverTimeInCriteriaFilter.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Services/BillingService.js +1 -2
- package/build/dist/Server/Services/BillingService.js.map +1 -1
- package/build/dist/Server/Services/CallService.js.map +1 -1
- package/build/dist/Server/Services/IncidentEpisodeFeedService.js +83 -0
- package/build/dist/Server/Services/IncidentEpisodeFeedService.js.map +1 -0
- package/build/dist/Server/Services/IncidentEpisodeInternalNoteService.js +70 -0
- package/build/dist/Server/Services/IncidentEpisodeInternalNoteService.js.map +1 -0
- package/build/dist/Server/Services/IncidentEpisodeMemberService.js +298 -0
- package/build/dist/Server/Services/IncidentEpisodeMemberService.js.map +1 -0
- package/build/dist/Server/Services/IncidentEpisodeOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/IncidentEpisodeOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/IncidentEpisodeOwnerUserService.js +9 -0
- package/build/dist/Server/Services/IncidentEpisodeOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/IncidentEpisodeService.js +933 -0
- package/build/dist/Server/Services/IncidentEpisodeService.js.map +1 -0
- package/build/dist/Server/Services/IncidentEpisodeStateTimelineService.js +498 -0
- package/build/dist/Server/Services/IncidentEpisodeStateTimelineService.js.map +1 -0
- package/build/dist/Server/Services/IncidentGroupingEngineService.js +799 -0
- package/build/dist/Server/Services/IncidentGroupingEngineService.js.map +1 -0
- package/build/dist/Server/Services/IncidentGroupingRuleService.js +13 -0
- package/build/dist/Server/Services/IncidentGroupingRuleService.js.map +1 -0
- package/build/dist/Server/Services/IncidentService.js +10 -0
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +16 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/MailService.js.map +1 -1
- package/build/dist/Server/Services/MonitorService.js +9 -1
- package/build/dist/Server/Services/MonitorService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js +10 -0
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js +48 -2
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js +20 -1
- package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyService.js +8 -0
- package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -1
- package/build/dist/Server/Services/SmsService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationRuleService.js +39 -2
- package/build/dist/Server/Services/UserNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js +9 -0
- package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
- package/build/dist/Server/Services/UserOnCallLogService.js +35 -3
- package/build/dist/Server/Services/UserOnCallLogService.js.map +1 -1
- package/build/dist/Server/Services/WhatsAppService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceNotificationLogService.js +12 -0
- package/build/dist/Server/Services/WorkspaceNotificationLogService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js +95 -1
- package/build/dist/Server/Services/WorkspaceNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Utils/AI/IncidentEpisodeAIContextBuilder.js +402 -0
- package/build/dist/Server/Utils/AI/IncidentEpisodeAIContextBuilder.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/CompareCriteria.js +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.js +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.js +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.js +2 -2
- package/build/dist/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.js +135 -0
- package/build/dist/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +10 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaExpectationBuilder.js +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +26 -0
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/PushNotificationUtil.js +20 -0
- package/build/dist/Server/Utils/PushNotificationUtil.js.map +1 -1
- package/build/dist/Server/Utils/WhatsAppTemplateUtil.js +8 -0
- package/build/dist/Server/Utils/WhatsAppTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.js +17 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/ActionTypes.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.js +547 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +15 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js +10 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/ActionTypes.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Actions/IncidentEpisode.js +651 -0
- package/build/dist/Server/Utils/Workspace/Slack/Actions/IncidentEpisode.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/IncidentEpisode.js +100 -0
- package/build/dist/Server/Utils/Workspace/Slack/Messages/IncidentEpisode.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/IncidentEpisode.js +70 -0
- package/build/dist/Server/Utils/Workspace/WorkspaceMessages/IncidentEpisode.js.map +1 -0
- package/build/dist/Types/Email/EmailTemplateType.js +5 -0
- package/build/dist/Types/Email/EmailTemplateType.js.map +1 -1
- package/build/dist/Types/Monitor/CriteriaFilter.js +16 -3
- package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorCriteriaInstance.js +62 -0
- package/build/dist/Types/Monitor/MonitorCriteriaInstance.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStep.js +26 -0
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStepSnmpMonitor.js +77 -0
- package/build/dist/Types/Monitor/MonitorStepSnmpMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorType.js +13 -2
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpAuthProtocol.js +9 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpAuthProtocol.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpDataType.js +22 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpDataType.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpMonitorResponse.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpMonitorResponse.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpOid.js +55 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpOid.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpPrivProtocol.js +8 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpPrivProtocol.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpSecurityLevel.js +8 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpSecurityLevel.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpV3Auth.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpV3Auth.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVersion.js +8 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVersion.js.map +1 -0
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js +5 -0
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js.map +1 -1
- package/build/dist/Types/Permission.js +264 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/UserNotification/UserNotificationEventType.js +1 -0
- package/build/dist/Types/UserNotification/UserNotificationEventType.js.map +1 -1
- package/build/dist/Types/WhatsApp/WhatsAppTemplates.js +15 -0
- package/build/dist/Types/WhatsApp/WhatsAppTemplates.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/EventType.js +1 -0
- package/build/dist/Types/Workspace/NotificationRules/EventType.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js +33 -1
- package/build/dist/Types/Workspace/NotificationRules/NotificationRuleCondition.js.map +1 -1
- package/build/dist/Utils/Monitor/MonitorMetricType.js +2 -1
- package/build/dist/Utils/Monitor/MonitorMetricType.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export default interface SnmpOid {
|
|
2
|
+
oid: string;
|
|
3
|
+
name?: string | undefined;
|
|
4
|
+
description?: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class SnmpOidTemplates {
|
|
8
|
+
public static getCommonOids(): Array<SnmpOid> {
|
|
9
|
+
return [
|
|
10
|
+
// System MIB
|
|
11
|
+
{
|
|
12
|
+
oid: "1.3.6.1.2.1.1.1.0",
|
|
13
|
+
name: "sysDescr",
|
|
14
|
+
description: "System Description",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
oid: "1.3.6.1.2.1.1.3.0",
|
|
18
|
+
name: "sysUpTime",
|
|
19
|
+
description: "System Uptime (in ticks)",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
oid: "1.3.6.1.2.1.1.5.0",
|
|
23
|
+
name: "sysName",
|
|
24
|
+
description: "System Name",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
oid: "1.3.6.1.2.1.1.6.0",
|
|
28
|
+
name: "sysLocation",
|
|
29
|
+
description: "System Location",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
oid: "1.3.6.1.2.1.1.4.0",
|
|
33
|
+
name: "sysContact",
|
|
34
|
+
description: "System Contact",
|
|
35
|
+
},
|
|
36
|
+
// Interface MIB
|
|
37
|
+
{
|
|
38
|
+
oid: "1.3.6.1.2.1.2.1.0",
|
|
39
|
+
name: "ifNumber",
|
|
40
|
+
description: "Number of Network Interfaces",
|
|
41
|
+
},
|
|
42
|
+
// Host Resources MIB
|
|
43
|
+
{
|
|
44
|
+
oid: "1.3.6.1.2.1.25.1.1.0",
|
|
45
|
+
name: "hrSystemUptime",
|
|
46
|
+
description: "Host System Uptime",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
oid: "1.3.6.1.2.1.25.1.5.0",
|
|
50
|
+
name: "hrSystemNumUsers",
|
|
51
|
+
description: "Number of Users",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
oid: "1.3.6.1.2.1.25.1.6.0",
|
|
55
|
+
name: "hrSystemProcesses",
|
|
56
|
+
description: "Number of Running Processes",
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import SnmpAuthProtocol from "./SnmpAuthProtocol";
|
|
2
|
+
import SnmpPrivProtocol from "./SnmpPrivProtocol";
|
|
3
|
+
import SnmpSecurityLevel from "./SnmpSecurityLevel";
|
|
4
|
+
|
|
5
|
+
export default interface SnmpV3Auth {
|
|
6
|
+
securityLevel: SnmpSecurityLevel;
|
|
7
|
+
username: string;
|
|
8
|
+
authProtocol?: SnmpAuthProtocol | undefined;
|
|
9
|
+
authKey?: string | undefined;
|
|
10
|
+
privProtocol?: SnmpPrivProtocol | undefined;
|
|
11
|
+
privKey?: string | undefined;
|
|
12
|
+
}
|
|
@@ -19,6 +19,13 @@ enum NotificationSettingEventType {
|
|
|
19
19
|
SEND_ALERT_EPISODE_STATE_CHANGED_OWNER_NOTIFICATION = "Send alert episode state changed notification when I am the owner of the alert episode",
|
|
20
20
|
SEND_ALERT_EPISODE_OWNER_ADDED_NOTIFICATION = "Send notification when I am added as a owner to the alert episode",
|
|
21
21
|
|
|
22
|
+
// Incident Episodes
|
|
23
|
+
|
|
24
|
+
SEND_INCIDENT_EPISODE_CREATED_OWNER_NOTIFICATION = "Send incident episode created notification when I am the owner of the incident episode",
|
|
25
|
+
SEND_INCIDENT_EPISODE_NOTE_POSTED_OWNER_NOTIFICATION = "Send incident episode note posted notification when I am the owner of the incident episode",
|
|
26
|
+
SEND_INCIDENT_EPISODE_STATE_CHANGED_OWNER_NOTIFICATION = "Send incident episode state changed notification when I am the owner of the incident episode",
|
|
27
|
+
SEND_INCIDENT_EPISODE_OWNER_ADDED_NOTIFICATION = "Send notification when I am added as a owner to the incident episode",
|
|
28
|
+
|
|
22
29
|
// Monitors
|
|
23
30
|
SEND_MONITOR_OWNER_ADDED_NOTIFICATION = "Send notification when I am added as a owner to the monitor",
|
|
24
31
|
SEND_MONITOR_CREATED_OWNER_NOTIFICATION = "Send monitor created notification when I am the owner of the monitor",
|
package/Types/Permission.ts
CHANGED
|
@@ -748,6 +748,53 @@ enum Permission {
|
|
|
748
748
|
CreateAlertEpisodeFeed = "CreateAlertEpisodeFeed",
|
|
749
749
|
EditAlertEpisodeFeed = "EditAlertEpisodeFeed",
|
|
750
750
|
ReadAlertEpisodeFeed = "ReadAlertEpisodeFeed",
|
|
751
|
+
|
|
752
|
+
// Incident Episode Permissions
|
|
753
|
+
CreateIncidentEpisode = "CreateIncidentEpisode",
|
|
754
|
+
DeleteIncidentEpisode = "DeleteIncidentEpisode",
|
|
755
|
+
EditIncidentEpisode = "EditIncidentEpisode",
|
|
756
|
+
ReadIncidentEpisode = "ReadIncidentEpisode",
|
|
757
|
+
|
|
758
|
+
// Incident Episode Member Permissions
|
|
759
|
+
CreateIncidentEpisodeMember = "CreateIncidentEpisodeMember",
|
|
760
|
+
DeleteIncidentEpisodeMember = "DeleteIncidentEpisodeMember",
|
|
761
|
+
EditIncidentEpisodeMember = "EditIncidentEpisodeMember",
|
|
762
|
+
ReadIncidentEpisodeMember = "ReadIncidentEpisodeMember",
|
|
763
|
+
|
|
764
|
+
// Incident Episode State Timeline Permissions
|
|
765
|
+
CreateIncidentEpisodeStateTimeline = "CreateIncidentEpisodeStateTimeline",
|
|
766
|
+
DeleteIncidentEpisodeStateTimeline = "DeleteIncidentEpisodeStateTimeline",
|
|
767
|
+
EditIncidentEpisodeStateTimeline = "EditIncidentEpisodeStateTimeline",
|
|
768
|
+
ReadIncidentEpisodeStateTimeline = "ReadIncidentEpisodeStateTimeline",
|
|
769
|
+
|
|
770
|
+
// Incident Episode Owner User Permissions
|
|
771
|
+
CreateIncidentEpisodeOwnerUser = "CreateIncidentEpisodeOwnerUser",
|
|
772
|
+
DeleteIncidentEpisodeOwnerUser = "DeleteIncidentEpisodeOwnerUser",
|
|
773
|
+
EditIncidentEpisodeOwnerUser = "EditIncidentEpisodeOwnerUser",
|
|
774
|
+
ReadIncidentEpisodeOwnerUser = "ReadIncidentEpisodeOwnerUser",
|
|
775
|
+
|
|
776
|
+
// Incident Episode Owner Team Permissions
|
|
777
|
+
CreateIncidentEpisodeOwnerTeam = "CreateIncidentEpisodeOwnerTeam",
|
|
778
|
+
DeleteIncidentEpisodeOwnerTeam = "DeleteIncidentEpisodeOwnerTeam",
|
|
779
|
+
EditIncidentEpisodeOwnerTeam = "EditIncidentEpisodeOwnerTeam",
|
|
780
|
+
ReadIncidentEpisodeOwnerTeam = "ReadIncidentEpisodeOwnerTeam",
|
|
781
|
+
|
|
782
|
+
// Incident Episode Internal Note Permissions
|
|
783
|
+
CreateIncidentEpisodeInternalNote = "CreateIncidentEpisodeInternalNote",
|
|
784
|
+
DeleteIncidentEpisodeInternalNote = "DeleteIncidentEpisodeInternalNote",
|
|
785
|
+
EditIncidentEpisodeInternalNote = "EditIncidentEpisodeInternalNote",
|
|
786
|
+
ReadIncidentEpisodeInternalNote = "ReadIncidentEpisodeInternalNote",
|
|
787
|
+
|
|
788
|
+
// Incident Episode Feed Permissions
|
|
789
|
+
CreateIncidentEpisodeFeed = "CreateIncidentEpisodeFeed",
|
|
790
|
+
EditIncidentEpisodeFeed = "EditIncidentEpisodeFeed",
|
|
791
|
+
ReadIncidentEpisodeFeed = "ReadIncidentEpisodeFeed",
|
|
792
|
+
|
|
793
|
+
// Incident Grouping Rule Permissions
|
|
794
|
+
CreateIncidentGroupingRule = "CreateIncidentGroupingRule",
|
|
795
|
+
DeleteIncidentGroupingRule = "DeleteIncidentGroupingRule",
|
|
796
|
+
EditIncidentGroupingRule = "EditIncidentGroupingRule",
|
|
797
|
+
ReadIncidentGroupingRule = "ReadIncidentGroupingRule",
|
|
751
798
|
}
|
|
752
799
|
|
|
753
800
|
export class PermissionHelper {
|
|
@@ -5326,6 +5373,270 @@ export class PermissionHelper {
|
|
|
5326
5373
|
isAssignableToTenant: true,
|
|
5327
5374
|
isAccessControlPermission: false,
|
|
5328
5375
|
},
|
|
5376
|
+
|
|
5377
|
+
// Incident Episode Permissions
|
|
5378
|
+
{
|
|
5379
|
+
permission: Permission.CreateIncidentEpisode,
|
|
5380
|
+
title: "Create Incident Episode",
|
|
5381
|
+
description:
|
|
5382
|
+
"This permission can create Incident Episodes in this project.",
|
|
5383
|
+
isAssignableToTenant: true,
|
|
5384
|
+
isAccessControlPermission: true,
|
|
5385
|
+
},
|
|
5386
|
+
{
|
|
5387
|
+
permission: Permission.DeleteIncidentEpisode,
|
|
5388
|
+
title: "Delete Incident Episode",
|
|
5389
|
+
description:
|
|
5390
|
+
"This permission can delete Incident Episodes of this project.",
|
|
5391
|
+
isAssignableToTenant: true,
|
|
5392
|
+
isAccessControlPermission: true,
|
|
5393
|
+
},
|
|
5394
|
+
{
|
|
5395
|
+
permission: Permission.EditIncidentEpisode,
|
|
5396
|
+
title: "Edit Incident Episode",
|
|
5397
|
+
description:
|
|
5398
|
+
"This permission can edit Incident Episodes of this project.",
|
|
5399
|
+
isAssignableToTenant: true,
|
|
5400
|
+
isAccessControlPermission: true,
|
|
5401
|
+
},
|
|
5402
|
+
{
|
|
5403
|
+
permission: Permission.ReadIncidentEpisode,
|
|
5404
|
+
title: "Read Incident Episode",
|
|
5405
|
+
description:
|
|
5406
|
+
"This permission can read Incident Episodes of this project.",
|
|
5407
|
+
isAssignableToTenant: true,
|
|
5408
|
+
isAccessControlPermission: true,
|
|
5409
|
+
},
|
|
5410
|
+
|
|
5411
|
+
// Incident Episode Member Permissions
|
|
5412
|
+
{
|
|
5413
|
+
permission: Permission.CreateIncidentEpisodeMember,
|
|
5414
|
+
title: "Create Incident Episode Member",
|
|
5415
|
+
description:
|
|
5416
|
+
"This permission can add incidents to Incident Episodes in this project.",
|
|
5417
|
+
isAssignableToTenant: true,
|
|
5418
|
+
isAccessControlPermission: false,
|
|
5419
|
+
},
|
|
5420
|
+
{
|
|
5421
|
+
permission: Permission.DeleteIncidentEpisodeMember,
|
|
5422
|
+
title: "Delete Incident Episode Member",
|
|
5423
|
+
description:
|
|
5424
|
+
"This permission can remove incidents from Incident Episodes of this project.",
|
|
5425
|
+
isAssignableToTenant: true,
|
|
5426
|
+
isAccessControlPermission: false,
|
|
5427
|
+
},
|
|
5428
|
+
{
|
|
5429
|
+
permission: Permission.EditIncidentEpisodeMember,
|
|
5430
|
+
title: "Edit Incident Episode Member",
|
|
5431
|
+
description:
|
|
5432
|
+
"This permission can edit Incident Episode Members of this project.",
|
|
5433
|
+
isAssignableToTenant: true,
|
|
5434
|
+
isAccessControlPermission: false,
|
|
5435
|
+
},
|
|
5436
|
+
{
|
|
5437
|
+
permission: Permission.ReadIncidentEpisodeMember,
|
|
5438
|
+
title: "Read Incident Episode Member",
|
|
5439
|
+
description:
|
|
5440
|
+
"This permission can read Incident Episode Members of this project.",
|
|
5441
|
+
isAssignableToTenant: true,
|
|
5442
|
+
isAccessControlPermission: false,
|
|
5443
|
+
},
|
|
5444
|
+
|
|
5445
|
+
// Incident Episode State Timeline Permissions
|
|
5446
|
+
{
|
|
5447
|
+
permission: Permission.CreateIncidentEpisodeStateTimeline,
|
|
5448
|
+
title: "Create Incident Episode State Timeline",
|
|
5449
|
+
description:
|
|
5450
|
+
"This permission can create Incident Episode state history in this project.",
|
|
5451
|
+
isAssignableToTenant: true,
|
|
5452
|
+
isAccessControlPermission: false,
|
|
5453
|
+
},
|
|
5454
|
+
{
|
|
5455
|
+
permission: Permission.DeleteIncidentEpisodeStateTimeline,
|
|
5456
|
+
title: "Delete Incident Episode State Timeline",
|
|
5457
|
+
description:
|
|
5458
|
+
"This permission can delete Incident Episode state history of this project.",
|
|
5459
|
+
isAssignableToTenant: true,
|
|
5460
|
+
isAccessControlPermission: false,
|
|
5461
|
+
},
|
|
5462
|
+
{
|
|
5463
|
+
permission: Permission.EditIncidentEpisodeStateTimeline,
|
|
5464
|
+
title: "Edit Incident Episode State Timeline",
|
|
5465
|
+
description:
|
|
5466
|
+
"This permission can edit Incident Episode state history of this project.",
|
|
5467
|
+
isAssignableToTenant: true,
|
|
5468
|
+
isAccessControlPermission: false,
|
|
5469
|
+
},
|
|
5470
|
+
{
|
|
5471
|
+
permission: Permission.ReadIncidentEpisodeStateTimeline,
|
|
5472
|
+
title: "Read Incident Episode State Timeline",
|
|
5473
|
+
description:
|
|
5474
|
+
"This permission can read Incident Episode state history of this project.",
|
|
5475
|
+
isAssignableToTenant: true,
|
|
5476
|
+
isAccessControlPermission: false,
|
|
5477
|
+
},
|
|
5478
|
+
|
|
5479
|
+
// Incident Episode Owner User Permissions
|
|
5480
|
+
{
|
|
5481
|
+
permission: Permission.CreateIncidentEpisodeOwnerUser,
|
|
5482
|
+
title: "Create Incident Episode User Owner",
|
|
5483
|
+
description:
|
|
5484
|
+
"This permission can add user owners to Incident Episodes in this project.",
|
|
5485
|
+
isAssignableToTenant: true,
|
|
5486
|
+
isAccessControlPermission: false,
|
|
5487
|
+
},
|
|
5488
|
+
{
|
|
5489
|
+
permission: Permission.DeleteIncidentEpisodeOwnerUser,
|
|
5490
|
+
title: "Delete Incident Episode User Owner",
|
|
5491
|
+
description:
|
|
5492
|
+
"This permission can remove user owners from Incident Episodes of this project.",
|
|
5493
|
+
isAssignableToTenant: true,
|
|
5494
|
+
isAccessControlPermission: false,
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
permission: Permission.EditIncidentEpisodeOwnerUser,
|
|
5498
|
+
title: "Edit Incident Episode User Owner",
|
|
5499
|
+
description:
|
|
5500
|
+
"This permission can edit Incident Episode user owners of this project.",
|
|
5501
|
+
isAssignableToTenant: true,
|
|
5502
|
+
isAccessControlPermission: false,
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
permission: Permission.ReadIncidentEpisodeOwnerUser,
|
|
5506
|
+
title: "Read Incident Episode User Owner",
|
|
5507
|
+
description:
|
|
5508
|
+
"This permission can read Incident Episode user owners of this project.",
|
|
5509
|
+
isAssignableToTenant: true,
|
|
5510
|
+
isAccessControlPermission: false,
|
|
5511
|
+
},
|
|
5512
|
+
|
|
5513
|
+
// Incident Episode Owner Team Permissions
|
|
5514
|
+
{
|
|
5515
|
+
permission: Permission.CreateIncidentEpisodeOwnerTeam,
|
|
5516
|
+
title: "Create Incident Episode Team Owner",
|
|
5517
|
+
description:
|
|
5518
|
+
"This permission can add team owners to Incident Episodes in this project.",
|
|
5519
|
+
isAssignableToTenant: true,
|
|
5520
|
+
isAccessControlPermission: false,
|
|
5521
|
+
},
|
|
5522
|
+
{
|
|
5523
|
+
permission: Permission.DeleteIncidentEpisodeOwnerTeam,
|
|
5524
|
+
title: "Delete Incident Episode Team Owner",
|
|
5525
|
+
description:
|
|
5526
|
+
"This permission can remove team owners from Incident Episodes of this project.",
|
|
5527
|
+
isAssignableToTenant: true,
|
|
5528
|
+
isAccessControlPermission: false,
|
|
5529
|
+
},
|
|
5530
|
+
{
|
|
5531
|
+
permission: Permission.EditIncidentEpisodeOwnerTeam,
|
|
5532
|
+
title: "Edit Incident Episode Team Owner",
|
|
5533
|
+
description:
|
|
5534
|
+
"This permission can edit Incident Episode team owners of this project.",
|
|
5535
|
+
isAssignableToTenant: true,
|
|
5536
|
+
isAccessControlPermission: false,
|
|
5537
|
+
},
|
|
5538
|
+
{
|
|
5539
|
+
permission: Permission.ReadIncidentEpisodeOwnerTeam,
|
|
5540
|
+
title: "Read Incident Episode Team Owner",
|
|
5541
|
+
description:
|
|
5542
|
+
"This permission can read Incident Episode team owners of this project.",
|
|
5543
|
+
isAssignableToTenant: true,
|
|
5544
|
+
isAccessControlPermission: false,
|
|
5545
|
+
},
|
|
5546
|
+
|
|
5547
|
+
// Incident Episode Internal Note Permissions
|
|
5548
|
+
{
|
|
5549
|
+
permission: Permission.CreateIncidentEpisodeInternalNote,
|
|
5550
|
+
title: "Create Incident Episode Internal Note",
|
|
5551
|
+
description:
|
|
5552
|
+
"This permission can create Incident Episode internal notes in this project.",
|
|
5553
|
+
isAssignableToTenant: true,
|
|
5554
|
+
isAccessControlPermission: false,
|
|
5555
|
+
},
|
|
5556
|
+
{
|
|
5557
|
+
permission: Permission.DeleteIncidentEpisodeInternalNote,
|
|
5558
|
+
title: "Delete Incident Episode Internal Note",
|
|
5559
|
+
description:
|
|
5560
|
+
"This permission can delete Incident Episode internal notes of this project.",
|
|
5561
|
+
isAssignableToTenant: true,
|
|
5562
|
+
isAccessControlPermission: false,
|
|
5563
|
+
},
|
|
5564
|
+
{
|
|
5565
|
+
permission: Permission.EditIncidentEpisodeInternalNote,
|
|
5566
|
+
title: "Edit Incident Episode Internal Note",
|
|
5567
|
+
description:
|
|
5568
|
+
"This permission can edit Incident Episode internal notes of this project.",
|
|
5569
|
+
isAssignableToTenant: true,
|
|
5570
|
+
isAccessControlPermission: false,
|
|
5571
|
+
},
|
|
5572
|
+
{
|
|
5573
|
+
permission: Permission.ReadIncidentEpisodeInternalNote,
|
|
5574
|
+
title: "Read Incident Episode Internal Note",
|
|
5575
|
+
description:
|
|
5576
|
+
"This permission can read Incident Episode internal notes of this project.",
|
|
5577
|
+
isAssignableToTenant: true,
|
|
5578
|
+
isAccessControlPermission: false,
|
|
5579
|
+
},
|
|
5580
|
+
|
|
5581
|
+
// Incident Episode Feed Permissions
|
|
5582
|
+
{
|
|
5583
|
+
permission: Permission.CreateIncidentEpisodeFeed,
|
|
5584
|
+
title: "Create Incident Episode Feed",
|
|
5585
|
+
description:
|
|
5586
|
+
"This permission can create Incident Episode feed items in this project.",
|
|
5587
|
+
isAssignableToTenant: true,
|
|
5588
|
+
isAccessControlPermission: false,
|
|
5589
|
+
},
|
|
5590
|
+
{
|
|
5591
|
+
permission: Permission.EditIncidentEpisodeFeed,
|
|
5592
|
+
title: "Edit Incident Episode Feed",
|
|
5593
|
+
description:
|
|
5594
|
+
"This permission can edit Incident Episode feed items of this project.",
|
|
5595
|
+
isAssignableToTenant: true,
|
|
5596
|
+
isAccessControlPermission: false,
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
permission: Permission.ReadIncidentEpisodeFeed,
|
|
5600
|
+
title: "Read Incident Episode Feed",
|
|
5601
|
+
description:
|
|
5602
|
+
"This permission can read Incident Episode feed items of this project.",
|
|
5603
|
+
isAssignableToTenant: true,
|
|
5604
|
+
isAccessControlPermission: false,
|
|
5605
|
+
},
|
|
5606
|
+
|
|
5607
|
+
// Incident Grouping Rule Permissions
|
|
5608
|
+
{
|
|
5609
|
+
permission: Permission.CreateIncidentGroupingRule,
|
|
5610
|
+
title: "Create Incident Grouping Rule",
|
|
5611
|
+
description:
|
|
5612
|
+
"This permission can create Incident Grouping Rules in this project.",
|
|
5613
|
+
isAssignableToTenant: true,
|
|
5614
|
+
isAccessControlPermission: false,
|
|
5615
|
+
},
|
|
5616
|
+
{
|
|
5617
|
+
permission: Permission.DeleteIncidentGroupingRule,
|
|
5618
|
+
title: "Delete Incident Grouping Rule",
|
|
5619
|
+
description:
|
|
5620
|
+
"This permission can delete Incident Grouping Rules of this project.",
|
|
5621
|
+
isAssignableToTenant: true,
|
|
5622
|
+
isAccessControlPermission: false,
|
|
5623
|
+
},
|
|
5624
|
+
{
|
|
5625
|
+
permission: Permission.EditIncidentGroupingRule,
|
|
5626
|
+
title: "Edit Incident Grouping Rule",
|
|
5627
|
+
description:
|
|
5628
|
+
"This permission can edit Incident Grouping Rules of this project.",
|
|
5629
|
+
isAssignableToTenant: true,
|
|
5630
|
+
isAccessControlPermission: false,
|
|
5631
|
+
},
|
|
5632
|
+
{
|
|
5633
|
+
permission: Permission.ReadIncidentGroupingRule,
|
|
5634
|
+
title: "Read Incident Grouping Rule",
|
|
5635
|
+
description:
|
|
5636
|
+
"This permission can read Incident Grouping Rules of this project.",
|
|
5637
|
+
isAssignableToTenant: true,
|
|
5638
|
+
isAccessControlPermission: false,
|
|
5639
|
+
},
|
|
5329
5640
|
];
|
|
5330
5641
|
|
|
5331
5642
|
return permissions;
|
|
@@ -6,6 +6,7 @@ import { JSONObject } from "../JSON";
|
|
|
6
6
|
import CustomCodeMonitorResponse from "../Monitor/CustomCodeMonitor/CustomCodeMonitorResponse";
|
|
7
7
|
import SslMonitorResponse from "../Monitor/SSLMonitor/SslMonitorResponse";
|
|
8
8
|
import SyntheticMonitorResponse from "../Monitor/SyntheticMonitors/SyntheticMonitorResponse";
|
|
9
|
+
import SnmpMonitorResponse from "../Monitor/SnmpMonitor/SnmpMonitorResponse";
|
|
9
10
|
import MonitorEvaluationSummary from "../Monitor/MonitorEvaluationSummary";
|
|
10
11
|
import ObjectID from "../ObjectID";
|
|
11
12
|
import Port from "../Port";
|
|
@@ -28,6 +29,7 @@ export default interface ProbeMonitorResponse {
|
|
|
28
29
|
sslResponse?: SslMonitorResponse | undefined;
|
|
29
30
|
syntheticMonitorResponse?: Array<SyntheticMonitorResponse> | undefined;
|
|
30
31
|
customCodeMonitorResponse?: CustomCodeMonitorResponse | undefined;
|
|
32
|
+
snmpResponse?: SnmpMonitorResponse | undefined;
|
|
31
33
|
monitoredAt: Date;
|
|
32
34
|
isTimeout?: boolean | undefined;
|
|
33
35
|
ingestedAt?: Date | undefined;
|
|
@@ -2,6 +2,7 @@ type TemplateIdsMap = {
|
|
|
2
2
|
readonly AlertCreated: "oneuptime_created_alert";
|
|
3
3
|
readonly AlertEpisodeCreated: "oneuptime_created_alert_episode";
|
|
4
4
|
readonly IncidentCreated: "oneuptime_created_incident";
|
|
5
|
+
readonly IncidentEpisodeCreated: "oneuptime_created_incident_episode";
|
|
5
6
|
readonly VerificationCode: "oneuptime_verification_code";
|
|
6
7
|
readonly TestNotification: "oneuptime_test_notification";
|
|
7
8
|
readonly IncidentCreatedOwnerNotification: "oneuptime_incident_created_owner_notification";
|
|
@@ -16,6 +17,10 @@ type TemplateIdsMap = {
|
|
|
16
17
|
readonly AlertEpisodeNotePostedOwnerNotification: "oneuptime_alert_episode_note_posted_owner_notification";
|
|
17
18
|
readonly AlertEpisodeStateChangedOwnerNotification: "oneuptime_alert_episode_state_changed_owner_notification";
|
|
18
19
|
readonly AlertEpisodeOwnerAddedNotification: "oneuptime_alert_episode_owner_added_notification";
|
|
20
|
+
readonly IncidentEpisodeCreatedOwnerNotification: "oneuptime_incident_episode_created_owner_notification";
|
|
21
|
+
readonly IncidentEpisodeNotePostedOwnerNotification: "oneuptime_incident_episode_note_posted_owner_notification";
|
|
22
|
+
readonly IncidentEpisodeStateChangedOwnerNotification: "oneuptime_incident_episode_state_changed_owner_notification";
|
|
23
|
+
readonly IncidentEpisodeOwnerAddedNotification: "oneuptime_incident_episode_owner_added_notification";
|
|
19
24
|
readonly MonitorOwnerAddedNotification: "oneuptime_monitor_owner_added_notification";
|
|
20
25
|
readonly MonitorCreatedOwnerNotification: "oneuptime_monitor_created_owner_notification";
|
|
21
26
|
readonly MonitorStatusChangedOwnerNotification: "oneuptime_monitor_status_changed_owner_notification";
|
|
@@ -43,6 +48,7 @@ const templateIds: TemplateIdsMap = {
|
|
|
43
48
|
AlertCreated: "oneuptime_created_alert",
|
|
44
49
|
AlertEpisodeCreated: "oneuptime_created_alert_episode",
|
|
45
50
|
IncidentCreated: "oneuptime_created_incident",
|
|
51
|
+
IncidentEpisodeCreated: "oneuptime_created_incident_episode",
|
|
46
52
|
VerificationCode: "oneuptime_verification_code",
|
|
47
53
|
TestNotification: "oneuptime_test_notification",
|
|
48
54
|
IncidentCreatedOwnerNotification:
|
|
@@ -66,6 +72,14 @@ const templateIds: TemplateIdsMap = {
|
|
|
66
72
|
"oneuptime_alert_episode_state_changed_owner_notification",
|
|
67
73
|
AlertEpisodeOwnerAddedNotification:
|
|
68
74
|
"oneuptime_alert_episode_owner_added_notification",
|
|
75
|
+
IncidentEpisodeCreatedOwnerNotification:
|
|
76
|
+
"oneuptime_incident_episode_created_owner_notification",
|
|
77
|
+
IncidentEpisodeNotePostedOwnerNotification:
|
|
78
|
+
"oneuptime_incident_episode_note_posted_owner_notification",
|
|
79
|
+
IncidentEpisodeStateChangedOwnerNotification:
|
|
80
|
+
"oneuptime_incident_episode_state_changed_owner_notification",
|
|
81
|
+
IncidentEpisodeOwnerAddedNotification:
|
|
82
|
+
"oneuptime_incident_episode_owner_added_notification",
|
|
69
83
|
MonitorOwnerAddedNotification: "oneuptime_monitor_owner_added_notification",
|
|
70
84
|
MonitorCreatedOwnerNotification:
|
|
71
85
|
"oneuptime_monitor_created_owner_notification",
|
|
@@ -123,6 +137,7 @@ export const WhatsAppTemplateMessages: WhatsAppTemplateMessagesDefinition = {
|
|
|
123
137
|
[WhatsAppTemplateIds.AlertCreated]: `A new alert #{{alert_number}} ({{alert_title}}) has been created for project {{project_name}}. To acknowledge this alert, open {{acknowledge_url}} to respond. For more information, please check out this alert {{alert_link}} on the OneUptime dashboard.`,
|
|
124
138
|
[WhatsAppTemplateIds.AlertEpisodeCreated]: `A new alert episode #{{episode_number}} ({{episode_title}}) has been created for project {{project_name}}. To acknowledge this alert episode, open {{acknowledge_url}} to respond. For more information, please check out this alert episode {{episode_link}} on the OneUptime dashboard.`,
|
|
125
139
|
[WhatsAppTemplateIds.IncidentCreated]: `A new incident #{{incident_number}} ({{incident_title}}) has been created for project {{project_name}}. To acknowledge this incident, open {{acknowledge_url}} to respond. For more information, please check out this incident {{incident_link}} on the OneUptime dashboard.`,
|
|
140
|
+
[WhatsAppTemplateIds.IncidentEpisodeCreated]: `A new incident episode #{{episode_number}} ({{episode_title}}) has been created for project {{project_name}}. To acknowledge this incident episode, open {{acknowledge_url}} to respond. For more information, please check out this incident episode {{episode_link}} on the OneUptime dashboard.`,
|
|
126
141
|
[WhatsAppTemplateIds.VerificationCode]: `{{1}} is your verification code. For your security, do not share this code.`,
|
|
127
142
|
[WhatsAppTemplateIds.TestNotification]: `This is a WhatsApp test message from OneUptime to verify your integration. No action is required.`,
|
|
128
143
|
[WhatsAppTemplateIds.IncidentCreatedOwnerNotification]: `Incident #{{incident_number}} ({{incident_title}}) has been created for project {{project_name}}. View incident details using {{incident_link}} on the OneUptime dashboard for complete context.`,
|
|
@@ -137,6 +152,10 @@ export const WhatsAppTemplateMessages: WhatsAppTemplateMessagesDefinition = {
|
|
|
137
152
|
[WhatsAppTemplateIds.AlertEpisodeNotePostedOwnerNotification]: `A new note was posted on alert episode #{{episode_number}} ({{episode_title}}). Review the alert episode using {{episode_link}} on the OneUptime dashboard for updates.`,
|
|
138
153
|
[WhatsAppTemplateIds.AlertEpisodeStateChangedOwnerNotification]: `Alert Episode #{{episode_number}} ({{episode_title}}) state changed to {{episode_state}}. Track the alert episode status using {{episode_link}} on the OneUptime dashboard.`,
|
|
139
154
|
[WhatsAppTemplateIds.AlertEpisodeOwnerAddedNotification]: `You have been added as an owner of alert episode #{{episode_number}} ({{episode_title}}). Manage the alert episode using {{episode_link}} on the OneUptime dashboard.`,
|
|
155
|
+
[WhatsAppTemplateIds.IncidentEpisodeCreatedOwnerNotification]: `Incident Episode #{{episode_number}} ({{episode_title}}) has been created for project {{project_name}}. View incident episode details using {{episode_link}} on the OneUptime dashboard.`,
|
|
156
|
+
[WhatsAppTemplateIds.IncidentEpisodeNotePostedOwnerNotification]: `A new note was posted on incident episode #{{episode_number}} ({{episode_title}}). Review the incident episode using {{episode_link}} on the OneUptime dashboard for updates.`,
|
|
157
|
+
[WhatsAppTemplateIds.IncidentEpisodeStateChangedOwnerNotification]: `Incident Episode #{{episode_number}} ({{episode_title}}) state changed to {{episode_state}}. Track the incident episode status using {{episode_link}} on the OneUptime dashboard.`,
|
|
158
|
+
[WhatsAppTemplateIds.IncidentEpisodeOwnerAddedNotification]: `You have been added as an owner of incident episode #{{episode_number}} ({{episode_title}}). Manage the incident episode using {{episode_link}} on the OneUptime dashboard.`,
|
|
140
159
|
[WhatsAppTemplateIds.MonitorOwnerAddedNotification]: `You have been added as an owner of monitor {{monitor_name}}. Manage the monitor using {{monitor_link}} on the OneUptime dashboard to keep things running.`,
|
|
141
160
|
[WhatsAppTemplateIds.MonitorCreatedOwnerNotification]: `Monitor {{monitor_name}} has been created. Check monitor {{monitor_link}} on the OneUptime dashboard `,
|
|
142
161
|
[WhatsAppTemplateIds.MonitorStatusChangedOwnerNotification]: `Monitor {{monitor_name}} status changed to {{monitor_status}}. Check the monitor status using {{monitor_link}} on the OneUptime dashboard to stay informed.`,
|
|
@@ -164,6 +183,7 @@ export const WhatsAppTemplateLanguage: Record<WhatsAppTemplateId, string> = {
|
|
|
164
183
|
[WhatsAppTemplateIds.AlertCreated]: "en",
|
|
165
184
|
[WhatsAppTemplateIds.AlertEpisodeCreated]: "en",
|
|
166
185
|
[WhatsAppTemplateIds.IncidentCreated]: "en",
|
|
186
|
+
[WhatsAppTemplateIds.IncidentEpisodeCreated]: "en",
|
|
167
187
|
[WhatsAppTemplateIds.VerificationCode]: "en",
|
|
168
188
|
[WhatsAppTemplateIds.TestNotification]: "en",
|
|
169
189
|
[WhatsAppTemplateIds.IncidentCreatedOwnerNotification]: "en",
|
|
@@ -178,6 +198,10 @@ export const WhatsAppTemplateLanguage: Record<WhatsAppTemplateId, string> = {
|
|
|
178
198
|
[WhatsAppTemplateIds.AlertEpisodeNotePostedOwnerNotification]: "en",
|
|
179
199
|
[WhatsAppTemplateIds.AlertEpisodeStateChangedOwnerNotification]: "en",
|
|
180
200
|
[WhatsAppTemplateIds.AlertEpisodeOwnerAddedNotification]: "en",
|
|
201
|
+
[WhatsAppTemplateIds.IncidentEpisodeCreatedOwnerNotification]: "en",
|
|
202
|
+
[WhatsAppTemplateIds.IncidentEpisodeNotePostedOwnerNotification]: "en",
|
|
203
|
+
[WhatsAppTemplateIds.IncidentEpisodeStateChangedOwnerNotification]: "en",
|
|
204
|
+
[WhatsAppTemplateIds.IncidentEpisodeOwnerAddedNotification]: "en",
|
|
181
205
|
[WhatsAppTemplateIds.MonitorOwnerAddedNotification]: "en",
|
|
182
206
|
[WhatsAppTemplateIds.MonitorCreatedOwnerNotification]: "en",
|
|
183
207
|
[WhatsAppTemplateIds.MonitorStatusChangedOwnerNotification]: "en",
|