Skip to content

Commit

Permalink
Model fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnmbond committed May 21, 2024
1 parent 14bf085 commit 2c6e7f9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion LogicMonitor.Api/Alerts/Alert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public class Alert : IHasEndpoint
[DataMember(Name = "adAlertDesc")]
public string ActiveDiscoveryAlertDescription { get; set; } = string.Empty;

/// <summary>
/// The alert group entity value
/// </summary>
[DataMember(Name = "alertGroupEntityValue")]
public string AlertGroupEntityValue { get; set; } = string.Empty;

/// <summary>
/// The Alert type
/// </summary>
Expand All @@ -52,7 +58,7 @@ public class Alert : IHasEndpoint
/// Indicates dynamic threshold alert generation setting. expression is comma separated\n0 denotes OFF, 1 denotes ON, -1 denotes INVALID\n1,0,1 \u003d warn : ON error: OFF critical: ON\nEmpty value on this parameter means : 0,0,0
/// </summary>
[DataMember(Name = "enableAnomalyAlertGeneration")]
public string EnableAnomalyAlertGeneration { get; set; } = string.Empty; // STRING not a bool
public string EnableAnomalyAlertGeneration { get; set; } = string.Empty; // STRING not a bool

/// <summary>
/// Indicates anomaly detection alert suppression setting, expression is comma separated\n0 denotes OFF, 1 denotes ON, -1 denotes INVALID\n1,0,1 \u003d warn : ON error: OFF critical: ON\nEmpty value on this parameter means : 0,0,0
Expand Down
6 changes: 6 additions & 0 deletions LogicMonitor.Api/Functions/AppliesToResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ public class AppliesToResponse
/// </summary>
[DataMember(Name = "currentMatches")]
public List<AppliesToMatch> CurrentMatches { get; set; } = [];

/// <summary>
/// The warn message
/// </summary>
[DataMember(Name = "warnMessage")]
public string? WarnMessage { get; set; }
}
6 changes: 6 additions & 0 deletions LogicMonitor.Api/LogicModules/AutoDiscoveryMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ public class AutoDiscoveryMethod
[DataMember(Name = "discoveryType")]
public string DiscoveryType { get; set; } = string.Empty;

/// <summary>
/// Resource URL
/// </summary>
[DataMember(Name = "resourceUrl")]
public string? ResourceUrl { get; set; }

/// <summary>
/// Zoom plan usage type
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions LogicMonitor.Api/LogicMonitor.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

<!-- Update the following before releasing to nuget -->
<PackageReleaseNotes>
Version 203 support added
Added "Commit" RolePrivilegeOperation.
Version 204 support added
Added ApiToken.LastAuthenticatedIp.
</PackageReleaseNotes>
<UserSecretsId>57aaa0e7-815d-4065-9339-f3f070bed01e</UserSecretsId>

Expand Down

0 comments on commit 2c6e7f9

Please sign in to comment.