Touchstone Re 2023 API Reference
GetLossAnalysisEventResults Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > LossAnalysisServiceClient Class : GetLossAnalysisEventResults Method
Contains a GetLossAnalysisEventResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the analysis for which you want to view Detailed Loss Analysis results for a specific Event, along with the desired type of coverage, perils, Catalog Type, Paging Info, and Sorting Perspective to include in the Detailed Loss Analysis results for a specific Event, as well as the associated Business Unit SID and SQL Instance SID.
Retrieves Touchstone® Detailed Loss Analysis results for a specific Event.

The data that the GetLossAnalysisEventResults() method returns includes the following:

Returned Data Description
Year ID The year in which the Event analyzed took place
Event ID The identifier of the specific Event analyzed
Ground-up Loss The total loss due to the Event before limits and deductibles are applied
Gross Loss The total loss due to the Event after limits and deductibles are applied
Pre-CAT Net Loss The loss after applying all reinsurance treaties, except for CAT Excess of Loss (XOL) treaties
Syntax
Public Function GetLossAnalysisEventResults( _
   ByVal request As GetLossAnalysisEventResultsRequest _
) As GetLossAnalysisEventResultsResponse
Dim instance As LossAnalysisServiceClient
Dim request As GetLossAnalysisEventResultsRequest
Dim value As GetLossAnalysisEventResultsResponse
 
value = instance.GetLossAnalysisEventResults(request)
public GetLossAnalysisEventResultsResponse GetLossAnalysisEventResults( 
   GetLossAnalysisEventResultsRequest request
)

Parameters

request
Contains a GetLossAnalysisEventResultsRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the analysis for which you want to view Detailed Loss Analysis results for a specific Event, along with the desired type of coverage, perils, Catalog Type, Paging Info, and Sorting Perspective to include in the Detailed Loss Analysis results for a specific Event, as well as the associated Business Unit SID and SQL Instance SID.

Return Value

A GetLossAnalysisEventResultsResponse containing the Detailed Loss Analysis results for a specific Event, as well as information describing the actual paging layout of the analysis results.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Analysis SID to pass into this method, call the GetDetailedLossAnalyses() method.

Example
The following example shows how to retrieve Touchstone Detailed Loss Analysis results for a specific Event using the GetLossAnalysisEventResults() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.LossAnalysis.Api;
using AIR.Services.LossAnalysis.Data;
            
class SnippetGetLossAnalysisEventResultsRequest
{
    private static void GetLossAnalysisEventResults(int businessUnitSid, int sqlInstanceSid, int analysisSid)
    {
        LossAnalysisServiceClient client = new LossAnalysisServiceClient();
        GetLossAnalysisEventResultsRequest request = new GetLossAnalysisEventResultsRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.AnalysisSid = analysisSid;
        request.CatalogType = CatalogType.AllTypes;
        request.PagingInfo = new PagingInfo { PageNumber = 1, PageSize = 1000 };
        GetLossAnalysisEventResultsResponse response = client.GetLossAnalysisEventResults(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Displaying first 10 event results");
            for (int i = 0; i < 10; i++)
            {
                EventLoss loss = response.Results[i];
                Console.WriteLine("YearId: " + loss.YearID.ToString());
                Console.WriteLine("EventID: " + loss.EventID.ToString());
                Console.WriteLine("GroundUpLoss: " + Math.Round(loss.GroundUpLoss));
                Console.WriteLine("GrossLoss: " + Math.Round(loss.GrossLoss));
                Console.WriteLine("PreCatNetLoss: " + Math.Round(loss.PreCatNetLoss));
            }
        }
    }
}
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

LossAnalysisServiceClient Class
LossAnalysisServiceClient Members