Add MonIn

This commit is contained in:
Mike Phares 2023-01-16 17:14:48 -07:00
parent 46c9d91dc9
commit a4d3a9899f
3 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,8 @@ public class ExportController : Controller
ModelState.AddModelError("Exception", ex.Message); ModelState.AddModelError("Exception", ex.Message);
string errorMessage = $"Error exporting: {ex}"; string errorMessage = $"Error exporting: {ex}";
_Logger.LogError(message: errorMessage); _Logger.LogError(message: errorMessage);
MonIn monIn = MonIn.GetInstance();
_ = monIn.SendStatus(_AppSettings.MonASite, _AppSettings.MonAResource, "Heartbeat", State.Warning);
} }
} }
return View("Index", model); return View("Index", model);

View File

@ -10,6 +10,7 @@ trigger:
- "**/*.yaml" - "**/*.yaml"
- "**/*.yml" - "**/*.yml"
- "Archive/*" - "Archive/*"
- "ClientHub/*"
- "Server/*" - "Server/*"
- "Tests/*" - "Tests/*"

View File

@ -12,6 +12,7 @@ trigger:
- "**/*.yml" - "**/*.yml"
- "Archive/*" - "Archive/*"
- "Client/*" - "Client/*"
- "ClientHub/*"
pool: pool:
name: Mesa-IIS name: Mesa-IIS