();
-
- public HealthStatusViewModel(CheckStatus overall) : this() => _overall = overall;
-
- public void AddResult(string name, IHealthCheckResult result) => _results.Add(name, result);
- }
-}
diff --git a/src/Web/WebStatus/Viewmodels/NamedCheckResult.cs b/src/Web/WebStatus/Viewmodels/NamedCheckResult.cs
deleted file mode 100644
index f6a9cd316..000000000
--- a/src/Web/WebStatus/Viewmodels/NamedCheckResult.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using Microsoft.Extensions.HealthChecks;
-
-namespace WebStatus.Viewmodels
-{
- public class NamedCheckResult
- {
- public string Name { get; }
-
- public IHealthCheckResult Result { get; }
-
- public NamedCheckResult(string name, IHealthCheckResult result)
- {
- Name = name;
- Result = result;
- }
- }
-}
diff --git a/src/Web/WebStatus/Views/Home/Index.cshtml b/src/Web/WebStatus/Views/Home/Index.cshtml
deleted file mode 100644
index a3befe611..000000000
--- a/src/Web/WebStatus/Views/Home/Index.cshtml
+++ /dev/null
@@ -1,51 +0,0 @@
-@using Microsoft.AspNetCore.Html
-@using Microsoft.Extensions.HealthChecks
-@model WebStatus.Viewmodels.HealthStatusViewModel
-
-@{
- ViewData["Title"] = "System Status";
-
-}
-
-@functions
-{
- static readonly string[] LabelClass = new[] { "default", "danger", "success", "warning" };
-
- public HtmlString StatusLabel(CheckStatus status)
- {
- return new HtmlString($@"{status} ");
- }
-
-}
-
-
-
-
-
-
-
Overall Status: @StatusLabel(Model.OverallStatus)
-
-
-
-
- @foreach (var result in Model.Results)
- {
-
-
-
@result.Name
-
- @if (result.Result.Data.ContainsKey("url"))
- {
-
@result.Result.Data["url"]
- }
-
- @result.Result.Description
-
-
-
-
-
@StatusLabel(result.Result.CheckStatus)
-
-
- }
-
\ No newline at end of file
diff --git a/src/Web/WebStatus/Views/Shared/Error.cshtml b/src/Web/WebStatus/Views/Shared/Error.cshtml
deleted file mode 100644
index e514139c4..000000000
--- a/src/Web/WebStatus/Views/Shared/Error.cshtml
+++ /dev/null
@@ -1,14 +0,0 @@
-@{
- ViewData["Title"] = "Error";
-}
-
-Error.
-An error occurred while processing your request.
-
-Development Mode
-
- Swapping to Development environment will display more detailed information about the error that occurred.
-
-
- Development environment should not be enabled in deployed applications , as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development , and restarting the application.
-
diff --git a/src/Web/WebStatus/Views/Shared/_Layout.cshtml b/src/Web/WebStatus/Views/Shared/_Layout.cshtml
deleted file mode 100644
index b74f006e4..000000000
--- a/src/Web/WebStatus/Views/Shared/_Layout.cshtml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
- @ViewData["Title"] - WebStatus
-
-
-
-
-
-
-
-
-
-
- @if (ViewBag.RefreshSeconds != null && ViewBag.RefreshSeconds > 0)
- {
-
- }
-
-
-
-
-
-  eShopOnContainers WebStatus
-
-
-
-
- @RenderBody()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Web/WebStatus/Views/_ViewImports.cshtml b/src/Web/WebStatus/Views/_ViewImports.cshtml
deleted file mode 100644
index 6a5648da4..000000000
--- a/src/Web/WebStatus/Views/_ViewImports.cshtml
+++ /dev/null
@@ -1,2 +0,0 @@
-@using WebStatus
-@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/src/Web/WebStatus/Views/_ViewStart.cshtml b/src/Web/WebStatus/Views/_ViewStart.cshtml
deleted file mode 100644
index a5f10045d..000000000
--- a/src/Web/WebStatus/Views/_ViewStart.cshtml
+++ /dev/null
@@ -1,3 +0,0 @@
-@{
- Layout = "_Layout";
-}
diff --git a/src/Web/WebStatus/WebStatus.csproj b/src/Web/WebStatus/WebStatus.csproj
index 1e019dd8f..db91c710d 100644
--- a/src/Web/WebStatus/WebStatus.csproj
+++ b/src/Web/WebStatus/WebStatus.csproj
@@ -1,16 +1,27 @@
- netcoreapp2.1
+ netcoreapp2.2
$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;
..\..\..\docker-compose.dcproj
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/src/Web/WebStatus/appsettings.json b/src/Web/WebStatus/appsettings.json
index 2ab5ad818..6f486424c 100644
--- a/src/Web/WebStatus/appsettings.json
+++ b/src/Web/WebStatus/appsettings.json
@@ -1,21 +1,84 @@
{
- "Logging": {
- "IncludeScopes": false,
- "LogLevel": {
- "Default": "Debug",
- "System": "Information",
- "Microsoft": "Information"
- }
- },
- "OrderingUrl": "http://localhost:5102/hc",
- "OrderingBackgroundTasksUrl": "http://localhost:5111/hc",
- "BasketUrl": "http://localhost:5103/hc",
- "CatalogUrl": "http://localhost:5101/hc",
- "IdentityUrl": "http://localhost:5105/hc",
- "MarketingUrl": "http://localhost:5110/hc",
- "LocationsUrl": "http://localhost:5109/hc",
- "PaymentUrl": "http://localhost:5108/hc",
- "ApplicationInsights": {
- "InstrumentationKey": ""
+ "HealthChecks-UI": {
+ "HealthChecks": [
+ {
+ "Name": "Ordering HTTP Check",
+ "Uri": "http://localhost:5102/hc"
+ },
+ {
+ "Name": "Ordering HTTP Background Check",
+ "Uri": "http://localhost:5111/hc"
+ },
+ {
+ "Name": "Basket HTTP Check",
+ "Uri": "http://localhost:5103/hc"
+ },
+ {
+ "Name": "Catalog HTTP Check",
+ "Uri": "http://localhost:5101/hc"
+ },
+ {
+ "Name": "Identity HTTP Check",
+ "Uri": "http://localhost:5105/hc"
+ },
+ {
+ "Name": "Marketing HTTP Check",
+ "Uri": "http://localhost:5110/hc"
+ },
+ {
+ "Name": "Locations HTTP Check",
+ "Uri": "http://localhost:5109/hc"
+ },
+ {
+ "Name": "Payments HTTP Check",
+ "Uri": "http://localhost:5108/hc"
+ },
+ {
+ "Name": "WebMVC HTTP Check",
+ "Uri": "http://localhost:5100/hc"
+ },
+ {
+ "Name": "WebSPA HTTP Check",
+ "Uri": "http://localhost:5104/hc"
+ },
+ {
+ "Name": "SignalR HTTP Check",
+ "Uri": "http://localhost:5112/hc"
+ },
+ {
+ "Name": "Mobile Shopping API GW HTTP Check",
+ "Uri": "http://localhost:5200/hc"
+ },
+ {
+ "Name": "Mobile Marketing API GW HTTP Check",
+ "Uri": "http://localhost:5201/hc"
+ },
+ {
+ "Name": "Web Shopping API GW HTTP Check",
+ "Uri": "http://localhost:5202/hc"
+ },
+ {
+ "Name": "Web Marketing API GW HTTP Check",
+ "Uri": "http://localhost:5203/hc"
+ },
+ {
+ "Name": "Mobile Shopping Aggregator HTTP Check",
+ "Uri": "http://localhost:5120/hc"
+ },
+ {
+ "Name": "Web Shopping Aggregator HTTP Check",
+ "Uri": "http://localhost:5121/hc"
+ }
+ ],
+ "Webhooks": [
+ {
+ "Name": "",
+ "Uri": "",
+ "Payload": "",
+ "RestoredPayload": ""
+ }
+ ],
+ "EvaluationTimeOnSeconds": 10,
+ "MinimumSecondsBetweenFailureNotifications": 60
}
}
diff --git a/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj b/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj
index fd3b506c7..f8fc3efaf 100644
--- a/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj
+++ b/test/ServicesTests/Application.FunctionalTests/Application.FunctionalTests.csproj
@@ -1,7 +1,7 @@
- netcoreapp2.1
+ netcoreapp2.2
true
false
false
@@ -68,7 +68,7 @@
-
+