add Web-Hook alert support

This commit is contained in:
2014-02-28 10:35:47 +01:00
parent 9033d7a761
commit e8d4705a38
3 changed files with 9 additions and 2 deletions
+3
View File
@@ -55,14 +55,17 @@ namespace UptimeSharp.Tests
{
Alert alert1;
Alert alert2;
Alert alert3;
Assert.NotNull(alert1 = await client.AddAlert(AlertType.Email, "example1@ceecore.com"));
Assert.NotNull(alert2 = await client.AddAlert(AlertType.Boxcar, "example2@ceecore.com"));
Assert.NotNull(alert3 = await client.AddAlert(AlertType.WebHook, "http://ceecore.com?"));
try
{
await client.DeleteAlert(alert1);
await client.DeleteAlert(alert2);
await client.DeleteAlert(alert3);
}
catch { }
}
+1 -1
View File
@@ -45,7 +45,7 @@ namespace UptimeSharp
/// <summary>
/// Adds an alert.
/// mobile/SMS alert contacts are not supported yet, see: http://www.uptimerobot.com/api.asp#methods
/// SMS & Twitter alert contacts are not supported yet, see: http://www.uptimerobot.com/api.asp#methods
/// </summary>
/// <param name="type">The type.</param>
/// <param name="value">The value.</param>
+5 -1
View File
@@ -90,7 +90,11 @@ namespace UptimeSharp.Models
/// <summary>
/// Boxcar
/// </summary>
Boxcar = 4
Boxcar = 4,
/// <summary>
/// Web Hook
/// </summary>
WebHook = 5
}