Walter.Web.FireWall
GetReport Method (IFireWall)
Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall Namespace > IFireWall Interface : GetReport Method
Details to report
Access the runtime reporting interface allows for access to the simple reporting data that can be used in health type reports scenarios.
Syntax

Parameters

details
Details to report

Return Value

runtime reporting values
Remarks
this feature is only available in paid licenses. please note that Microsoft's json implementation can't render the complex type.
Example
services.AddControllersWithViews()
                     .AddNewtonsoftJson(options=> {
                       options.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
                       options.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
                       options.SerializerSettings.Formatting = Formatting.Indented;
                   });
public class HealthController : Controller
{
    private readonly IFireWall _fireWall;
            
    public HealthController(IFireWall fireWall)
    {
        _fireWall = fireWall;
            
    }
            
    [HttpGet]
    [Produces("text/plain")]
    public string Index()
    {
        //get all but missing security alerts and missing data subscriptions
        return _fireWall.Report(ReportTypes.DEFAULT);
    }
            
    [HttpGet]
    public JsonResult Json()
    {
        var items = ReportTypes.ALL &~ ReportTypes.EndPoints;
        var data = _fireWall.GetReport(items);
        return Json(data);
    }
}
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

IFireWall Interface
IFireWall Members