import Foundation
import ServiceStack
public class ProcessHotPathRollupOutputPersistenceRequest : Codable
{
public var id:String
public var outputDetails:[AnalysisResult]
required public init(){}
}
// @DataContract
public class AnalysisResult : IObjectWithId, Codable
{
// @DataMember(Order=1)
public var id:Int
// @DataMember(Order=2)
public var analysisId:Int
// @DataMember(Order=3)
public var analysisConfigurationId:Int
// @DataMember(Order=4)
public var container:String
// @DataMember(Order=5)
public var blobName:String
// @DataMember(Order=6)
public var resultTableName:String
// @DataMember(Order=7)
public var analysisType:AnalysisType
// @DataMember(Order=8)
public var simulationLossPerspective:SimulationLossPerspective
// @DataMember(Order=9)
public var reinsurancePremiumLossType:ReinsurancePremiumLossType
// @DataMember(Order=10)
public var outputLevel:ResultOutputLevel
// @DataMember(Order=11)
public var metaRiskId:Int
// @DataMember(Order=12)
public var analysisPortfolioEventSetResults:[AnalysisPortfolioEventSetResult]
// @DataMember(Order=13)
public var rowIdentifier:String
required public init(){}
}
public enum AnalysisType : String, Codable
{
case NotSet
case Standard
case RunOff
}
public enum SimulationLossPerspective : String, Codable
{
case NotSet
case Agg
case Occ
}
public enum ReinsurancePremiumLossType : String, Codable
{
case NotSet
case Net
case Gross
}
public enum ResultOutputLevel : String, Codable
{
case NotSet
case PortfolioMetrics
case Curve
case YLT
case TailIntensity
case DealYlt
case DealElt
case DealEltWithIndustryLoss
case PortfolioElt
case PortfolioEltWithIndustryLoss
case EventSetGeneration
case PortfolioRaps
case DealRaps
case PortfolioSepyIndustryLoss
case DealSepyIndustryLoss
}
public class AnalysisPortfolioEventSetResult : IObjectWithId, IHasAnalysisId, Codable
{
// @DataMember(Order=1)
public var id:Int
// @DataMember(Order=2)
public var analysisId:Int
// @DataMember(Order=3)
public var analysisPortfolioEventSetConfigurationId:Int
// @DataMember(Order=4)
public var analysisResultId:Int
// @DataMember(Order=5)
public var portfolioName:String
// @DataMember(Order=6)
public var rowIdentifier:String
required public init(){}
}
Swift ProcessHotPathRollupOutputPersistenceRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/oneway/ProcessHotPathRollupOutputPersistenceRequest HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 00000000000000000000000000000000,
outputDetails:
[
{
id: 0,
analysisId: 0,
analysisConfigurationId: 0,
container: String,
blobName: String,
resultTableName: String,
analysisType: NotSet,
simulationLossPerspective: NotSet,
reinsurancePremiumLossType: NotSet,
outputLevel: NotSet,
metaRiskId: 0,
analysisPortfolioEventSetResults:
[
{
id: 0,
analysisId: 0,
analysisPortfolioEventSetConfigurationId: 0,
analysisResultId: 0,
portfolioName: String,
rowIdentifier: 00000000000000000000000000000000
}
],
rowIdentifier: 00000000000000000000000000000000
}
]
}