Nephila RiskStore

<back to all web services

ProcessHotPathRollupOutputPersistenceRequest

Requires Authentication
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


class AnalysisType(str, Enum):
    NOT_SET = 'NotSet'
    STANDARD = 'Standard'
    RUN_OFF = 'RunOff'


class SimulationLossPerspective(str, Enum):
    NOT_SET = 'NotSet'
    AGG = 'Agg'
    OCC = 'Occ'


class ReinsurancePremiumLossType(str, Enum):
    NOT_SET = 'NotSet'
    NET = 'Net'
    GROSS = 'Gross'


class ResultOutputLevel(str, Enum):
    NOT_SET = 'NotSet'
    PORTFOLIO_METRICS = 'PortfolioMetrics'
    CURVE = 'Curve'
    YLT = 'YLT'
    TAIL_INTENSITY = 'TailIntensity'
    DEAL_YLT = 'DealYlt'
    DEAL_ELT = 'DealElt'
    DEAL_ELT_WITH_INDUSTRY_LOSS = 'DealEltWithIndustryLoss'
    PORTFOLIO_ELT = 'PortfolioElt'
    PORTFOLIO_ELT_WITH_INDUSTRY_LOSS = 'PortfolioEltWithIndustryLoss'
    EVENT_SET_GENERATION = 'EventSetGeneration'
    PORTFOLIO_RAPS = 'PortfolioRaps'
    DEAL_RAPS = 'DealRaps'
    PORTFOLIO_SEPY_INDUSTRY_LOSS = 'PortfolioSepyIndustryLoss'
    DEAL_SEPY_INDUSTRY_LOSS = 'DealSepyIndustryLoss'


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AnalysisPortfolioEventSetResult(IObjectWithId, IHasAnalysisId):
    id: int = 0
    analysis_id: int = 0
    analysis_portfolio_event_set_configuration_id: int = 0
    analysis_result_id: int = 0
    portfolio_name: Optional[str] = None
    row_identifier: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AnalysisResult(IObjectWithId):
    id: int = 0
    analysis_id: int = 0
    analysis_configuration_id: int = 0
    container: Optional[str] = None
    blob_name: Optional[str] = None
    result_table_name: Optional[str] = None
    analysis_type: Optional[AnalysisType] = None
    simulation_loss_perspective: Optional[SimulationLossPerspective] = None
    reinsurance_premium_loss_type: Optional[ReinsurancePremiumLossType] = None
    output_level: Optional[ResultOutputLevel] = None
    meta_risk_id: int = 0
    analysis_portfolio_event_set_results: Optional[List[AnalysisPortfolioEventSetResult]] = None
    row_identifier: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ProcessHotPathRollupOutputPersistenceRequest:
    id: Optional[str] = None
    output_details: Optional[List[AnalysisResult]] = None

Python ProcessHotPathRollupOutputPersistenceRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/oneway/ProcessHotPathRollupOutputPersistenceRequest HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ProcessHotPathRollupOutputPersistenceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests">
  <Id>00000000-0000-0000-0000-000000000000</Id>
  <OutputDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Types">
    <d2p1:AnalysisResult>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:AnalysisId>0</d2p1:AnalysisId>
      <d2p1:AnalysisConfigurationId>0</d2p1:AnalysisConfigurationId>
      <d2p1:Container>String</d2p1:Container>
      <d2p1:BlobName>String</d2p1:BlobName>
      <d2p1:ResultTableName>String</d2p1:ResultTableName>
      <d2p1:AnalysisType>NotSet</d2p1:AnalysisType>
      <d2p1:SimulationLossPerspective>NotSet</d2p1:SimulationLossPerspective>
      <d2p1:ReinsurancePremiumLossType>NotSet</d2p1:ReinsurancePremiumLossType>
      <d2p1:OutputLevel>NotSet</d2p1:OutputLevel>
      <d2p1:MetaRiskId>0</d2p1:MetaRiskId>
      <d2p1:AnalysisPortfolioEventSetResults>
        <d2p1:AnalysisPortfolioEventSetResult>
          <d2p1:AnalysisId>0</d2p1:AnalysisId>
          <d2p1:AnalysisPortfolioEventSetConfigurationId>0</d2p1:AnalysisPortfolioEventSetConfigurationId>
          <d2p1:AnalysisResultId>0</d2p1:AnalysisResultId>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:PortfolioName>String</d2p1:PortfolioName>
          <d2p1:RowIdentifier>00000000-0000-0000-0000-000000000000</d2p1:RowIdentifier>
        </d2p1:AnalysisPortfolioEventSetResult>
      </d2p1:AnalysisPortfolioEventSetResults>
      <d2p1:RowIdentifier>00000000-0000-0000-0000-000000000000</d2p1:RowIdentifier>
    </d2p1:AnalysisResult>
  </OutputDetails>
</ProcessHotPathRollupOutputPersistenceRequest>