Walter.Web.FireWall
HealthReportingData Class
Members  Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall.Reporting Namespace : HealthReportingData Class
Class ReportingData contains the format of the data that will get populated
Object Model
HealthReportingData ClassHealthReportingData.ReportDetails ClassIWhoisContactDetails InterfaceIMapLocation Interface
Syntax
public sealed class HealthReportingData : FireWallReportingModel, IFireWallReportingModel  
Example
These samples demonstrates how to report data for use by external applications by serializing json data.
using Walter.Web.FireWall;
            using Walter.Web.FireWall.Reporting;
            [ApiController]
            [Route("api/[controller]")]
            [Authorize]
            public class HealthController : Controller
            {
            private readonly ILogger<HealthController> _logger;
            private readonly IFireWall _fireWall;
            public HealthController(ILogger<HealthController> logger, IFireWall fireWall)
            {
            _logger = logger;
            _fireWall = fireWall;
            }
            [HttpGet]
            public string Get()
            {
            _logger?.Lazy().LogDebug("Call firewall heath report. Heath status:\n {status}",   _fireWall.Report(ReportTypes.DEFAULT));
            Response.ContentType = "application/xml";
            return _fireWall.Report(ReportTypes.DEFAULT, ReportFormat.HTML);
            }
            }
services.AddFireWall("your token", "your domain-key"
            , domainName: new Uri("https://www.YourDomain.dll", UriKind.Absolute), options =>
            {
            options.Cypher.ApplicationPassword = "123456Seven";
            options.ApplicationName = "Cosonto sales";
            options.ApplicationTag = "WS3";
            //personalized view located in ~/Views/Shared
            options.Reporting.HealthReportView = "_healthReport";
            options.WebServices.IsUserApiUrl = new Uri(Links.IsUserEndpoint, UriKind.Relative);
            options.WebServices.RegisterLinksApiUrl = new Uri(Links.SiteMapEndPoint, UriKind.Relative);
            options.WebServices.BeaconApiUrl = new Uri(Links.BeaconPoint, UriKind.Relative);
            }).UseGeography(new System.IO.DirectoryInfo("D:\\MaxMind"));
services.AddControllersWithViews()
                              .AddNewtonsoftJson(options=>  options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore );
Inheritance Hierarchy

System.Object
   Walter.Web.FireWall.Reporting.FireWallReportingModel
      Walter.Web.FireWall.Reporting.HealthReportingData

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

HealthReportingData Members
Walter.Web.FireWall.Reporting Namespace