-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,053 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
namespace LogicMonitor.Api.Alerts; | ||
|
||
/// <summary> | ||
/// An Escalation chain creation DTO | ||
/// </summary> | ||
public class EscalationChainCreationDto : CreationDto<EscalationChain> | ||
{ | ||
/// <summary> | ||
/// The LogicMonitor Name | ||
/// </summary> | ||
[DataMember(Name = "name")] | ||
public string Name { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The LogicMonitor Description | ||
/// </summary> | ||
[DataMember(Name = "description")] | ||
public string Description { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Whether throttling is enabled | ||
/// </summary> | ||
[DataMember(Name = "enableThrottling")] | ||
public bool EnableThrottling { get; set; } | ||
|
||
/// <summary> | ||
/// The throttling period in seconds | ||
/// </summary> | ||
[DataMember(Name = "throttlingPeriod")] | ||
public int ThrottlingPeriodMinutes { get; set; } | ||
|
||
/// <summary> | ||
/// The alert count for throttling | ||
/// </summary> | ||
[DataMember(Name = "throttlingAlerts")] | ||
public int ThrottlingAlertCount { get; set; } | ||
|
||
/// <summary> | ||
/// Whether in alerting | ||
/// </summary> | ||
[DataMember(Name = "inAlerting")] | ||
public bool InAlerting { get; set; } | ||
|
||
/// <summary> | ||
/// The cc destinations | ||
/// </summary> | ||
[DataMember(Name = "ccdestination")] | ||
public List<Destination> CcDestination { get; set; } = []; | ||
|
||
/// <summary> | ||
/// The CC destinations | ||
/// </summary> | ||
[DataMember(Name = "ccDestinations")] | ||
public List<Destination> CcDestinations { get; set; } = []; | ||
|
||
/// <summary> | ||
/// The destinations | ||
/// </summary> | ||
[DataMember(Name = "destination")] | ||
public List<Destination> Destination { get; set; } = []; | ||
|
||
/// <summary> | ||
/// The destinations | ||
/// </summary> | ||
[DataMember(Name = "destinations")] | ||
public List<Destination> Destinations { get; set; } = []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
namespace LogicMonitor.Api.Settings; | ||
|
||
/// <summary> | ||
/// A LogicMonitor alert rule creation DTO | ||
/// </summary> | ||
[DataContract] | ||
public class AlertRuleCreationDto : CreationDto<AlertRule> | ||
{ | ||
/// <summary> | ||
/// The LogicMonitor Name | ||
/// </summary> | ||
[DataMember(Name = "name")] | ||
public string Name { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The LogicMonitor Description | ||
/// </summary> | ||
[DataMember(Name = "description")] | ||
public string Description { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The priority | ||
/// </summary> | ||
[DataMember(Name = "priority")] | ||
public int Priority { get; set; } | ||
|
||
/// <summary> | ||
/// The level (as a string) | ||
/// </summary> | ||
[DataMember(Name = "levelStr")] | ||
public string LevelString { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The device filter | ||
/// </summary> | ||
[DataMember(Name = "devices")] | ||
public List<string> Devices { get; set; } = []; | ||
|
||
/// <summary> | ||
/// The device group filter | ||
/// </summary> | ||
[DataMember(Name = "deviceGroups")] | ||
public List<string> DeviceGroups { get; set; } = []; | ||
|
||
/// <summary> | ||
/// The affected DataSource name filter | ||
/// </summary> | ||
[DataMember(Name = "datasource")] | ||
public string DataSourceName { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The data source instance name filter | ||
/// </summary> | ||
[DataMember(Name = "instance")] | ||
public string DataSourceInstanceName { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The datapoint filter | ||
/// </summary> | ||
[DataMember(Name = "datapoint")] | ||
public string DataPoint { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The escalation chain interval in minutes | ||
/// </summary> | ||
[DataMember(Name = "escalationInterval")] | ||
public int EscalationChainIntervalMinutes { get; set; } | ||
|
||
/// <summary> | ||
/// The Escalating Chain Id | ||
/// </summary> | ||
[DataMember(Name = "escalatingChainId")] | ||
public int EscalationChainId { get; set; } | ||
|
||
/// <summary> | ||
/// The Escalation Chain | ||
/// </summary> | ||
[DataMember(Name = "escalatingChain")] | ||
public EscalationChain EscalationChain { get; set; } = new(); | ||
|
||
/// <summary> | ||
/// The resource property filters list | ||
/// </summary> | ||
[DataMember(Name = "resourceProperties")] | ||
public List<DeviceProperty> ResourceProperties { get; set; } = []; | ||
|
||
/// <summary> | ||
/// send anomaly suppressed alert | ||
/// </summary> | ||
[DataMember(Name = "sendAnomalySuppressedAlert")] | ||
public bool SendAnomalySuppressedAlert { get; set; } | ||
|
||
/// <summary> | ||
/// Whether to suppress Alert clears | ||
/// </summary> | ||
[DataMember(Name = "suppressAlertClear")] | ||
public bool SuppressAlertClear { get; set; } | ||
|
||
/// <summary> | ||
/// Whether to suppress Alert ack sdts | ||
/// </summary> | ||
[DataMember(Name = "suppressAlertAckSdt")] | ||
public bool SuppressAlertAckSdt { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
LogicMonitor.Api/Settings/AutoTaskIntegrationCreationDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
namespace LogicMonitor.Api.Settings; | ||
|
||
/// <summary> | ||
/// AutoTask Integration Creation Dto | ||
/// </summary> | ||
[DataContract] | ||
public class AutoTaskIntegrationCreationDto : IntegrationCreationDto<AutoTaskIntegration> | ||
{ | ||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public AutoTaskIntegrationCreationDto() : base("autotask") | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// The zone | ||
/// </summary> | ||
[DataMember(Name = "zone")] | ||
public int Zone { get; set; } | ||
|
||
/// <summary> | ||
/// The accountId | ||
/// </summary> | ||
[DataMember(Name = "accountId")] | ||
public int AccountId { get; set; } | ||
|
||
/// <summary> | ||
/// The dueDateTime | ||
/// </summary> | ||
[DataMember(Name = "dueDateTime")] | ||
public string DueDateTime { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The queueId | ||
/// </summary> | ||
[DataMember(Name = "queueId")] | ||
public int QueueId { get; set; } | ||
|
||
/// <summary> | ||
/// The warnPriority | ||
/// </summary> | ||
[DataMember(Name = "warnPriority")] | ||
public int WarnPriority { get; set; } | ||
|
||
/// <summary> | ||
/// The errorPriority | ||
/// </summary> | ||
[DataMember(Name = "errorPriority")] | ||
public int ErrorPriority { get; set; } | ||
|
||
/// <summary> | ||
/// The criticalPriority | ||
/// </summary> | ||
[DataMember(Name = "criticalPriority")] | ||
public int CriticalPriority { get; set; } | ||
|
||
/// <summary> | ||
/// The statusNewTicket | ||
/// </summary> | ||
[DataMember(Name = "statusNewTicket")] | ||
public int StatusNewTicket { get; set; } | ||
|
||
/// <summary> | ||
/// The statusUpdateTicket | ||
/// </summary> | ||
[DataMember(Name = "statusUpdateTicket")] | ||
public int StatusUpdateTicket { get; set; } | ||
|
||
/// <summary> | ||
/// The statusCloseTicket | ||
/// </summary> | ||
[DataMember(Name = "statusCloseTicket")] | ||
public int StatusCloseTicket { get; set; } | ||
|
||
/// <summary> | ||
/// The statusAckTicket | ||
/// </summary> | ||
[DataMember(Name = "statusAckTicket")] | ||
public int StatusAckTicket { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
namespace LogicMonitor.Api.Settings; | ||
|
||
/// <summary> | ||
/// Email Integration Creation Dto | ||
/// </summary> | ||
[DataContract] | ||
public class EmailIntegrationCreationDto : IntegrationCreationDto<EmailIntegration> | ||
{ | ||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public EmailIntegrationCreationDto() : base("http") | ||
{ | ||
} | ||
/// <summary> | ||
/// The sender | ||
/// </summary> | ||
[DataMember(Name = "sender")] | ||
public string Sender { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The receivers | ||
/// </summary> | ||
[DataMember(Name = "receivers")] | ||
public string Receivers { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The subject | ||
/// </summary> | ||
[DataMember(Name = "subject")] | ||
public string Subject { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The body | ||
/// </summary> | ||
[DataMember(Name = "body")] | ||
public string Body { get; set; } = string.Empty; | ||
} |
Oops, something went wrong.