Touchstone Re 2023 API Reference
SubmitLossResultToAnalyzeReExport Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataExportServiceClient Class : SubmitLossResultToAnalyzeReExport Method
Contains a SubmitLossResultToAnalyzeReExportRequest that specifies the Business Unit SID and SQL Instance SID associated with the results to export, as well as the AnalyzeReExportOptions object that enables you to configure the export job.
Submits a request to upsample or downsample catalog and then export loss results to the Analyze Re application. The AIR application automatically calibrates whether the request has to be upsampled or downsampled based on the catalog size, (i.e.) The application downsamples a request job with selected catalog size equal to or less than 10,0000-year events; And, the application upsamples a catalog size equal to or morethan 0.
Syntax
Public Function SubmitLossResultToAnalyzeReExport( _
   ByVal request As SubmitLossResultToAnalyzeReExportRequest _
) As SubmitLossResultToAnalyzeReExportResponse
Dim instance As DataExportServiceClient
Dim request As SubmitLossResultToAnalyzeReExportRequest
Dim value As SubmitLossResultToAnalyzeReExportResponse
 
value = instance.SubmitLossResultToAnalyzeReExport(request)

Parameters

request
Contains a SubmitLossResultToAnalyzeReExportRequest that specifies the Business Unit SID and SQL Instance SID associated with the results to export, as well as the AnalyzeReExportOptions object that enables you to configure the export job.

Return Value

A SubmitLossResultToAnalyzeReExportResponse that contains the Activity SID that uniquely identifies the web service call that you made to submit the export job. Touchstone Re may return the Activity SID after a few moments.
Remarks

If you license the Analyze Re features in Touchstone (Re), AIR configures license information between applications.

To successfully export loss results:

Additionally, you cannot export results for analyses that failed or that a user canceled or deleted.

To identify results that meet the criteria for export, use the SubmitLossResultToAnalyzeReExport() method.

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, use the SubmitLossResultToAnalyzeReExport() method.

Example
The following example shows the export of loss results to AnalyzeRe Cloud using the SubmitLossResultToAnalyzeReExport() method.
using System;
using AIR.Services.Common.Data;
using AIR.Services.DataExport.Api;
using AIR.Services.DataExport.Data;
            
class SnippetSubmitLossResultToAnalyzeReExport
{
private static void SubmitLossResultToAnalyzeReExport(int businessUnitSid, int sqlInstanceSid, int analysisSid)
{
DataExportServiceClient client = new DataExportServiceClient();
SubmitLossResultToAnalyzeReExportRequest request = new SubmitLossResultToAnalyzeReExportRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.AnalyzeReExportOptions = new AnalyzeReExportOptions()
    {
AnalysisSid = analysisSid,
FinancialPerspective = FinancialPerspectives.Gross,
ReportTypeCode = ReportTypeCodes.EventLossByPortfolio,
TargetCatalogSize = TargetCatalogSize.HundredThousand,
S3BucketName = "AIR-AnalyzeRe-" + DateTime.Now.Ticks,
S3PathPrefix = "Test"
};
SubmitLossResultToAnalyzeReExportResponse response = client.SubmitLossResultToAnalyzeReExport(request);
   if (response.Status.Code == StatusCode.Success)
    {
Console.WriteLine("Submitted with activity Sid: " + response.ActivitySid);
}
}
}
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

DataExportServiceClient Class
DataExportServiceClient Members