| GET | /api/riskstore/eventset/ingest/status | Get the ingest status of eventsets previously published to RiskStore |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class GetEventSetIngestStatusRequest extends QueryDb<EventSet, EventSetProcessingStatus>
{
public ArrayList<Long> eventSetId = null;
public ProcessingStatus processingStatus = null;
public ArrayList<String> sourceEventSetId = null;
public ArrayList<String> modelId = null;
public ArrayList<String> programCalculationId = null;
public ArrayList<String> eventSetOriginId = null;
public Integer perspectiveId = null;
public ArrayList<Long> getEventSetId() { return eventSetId; }
public GetEventSetIngestStatusRequest setEventSetId(ArrayList<Long> value) { this.eventSetId = value; return this; }
public ProcessingStatus getProcessingStatus() { return processingStatus; }
public GetEventSetIngestStatusRequest setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
public ArrayList<String> getSourceEventSetId() { return sourceEventSetId; }
public GetEventSetIngestStatusRequest setSourceEventSetId(ArrayList<String> value) { this.sourceEventSetId = value; return this; }
public ArrayList<String> getModelId() { return modelId; }
public GetEventSetIngestStatusRequest setModelId(ArrayList<String> value) { this.modelId = value; return this; }
public ArrayList<String> getProgramCalculationId() { return programCalculationId; }
public GetEventSetIngestStatusRequest setProgramCalculationId(ArrayList<String> value) { this.programCalculationId = value; return this; }
public ArrayList<String> getEventSetOriginId() { return eventSetOriginId; }
public GetEventSetIngestStatusRequest setEventSetOriginId(ArrayList<String> value) { this.eventSetOriginId = value; return this; }
public Integer getPerspectiveId() { return perspectiveId; }
public GetEventSetIngestStatusRequest setPerspectiveId(Integer value) { this.perspectiveId = value; return this; }
}
public static class QueryDb<From, Into> extends QueryBase
{
}
@DataContract
public static class QueryBase
{
@DataMember(Order=1)
public Integer skip = null;
@DataMember(Order=2)
public Integer take = null;
@DataMember(Order=3)
public String orderBy = null;
@DataMember(Order=4)
public String orderByDesc = null;
@DataMember(Order=5)
public String include = null;
@DataMember(Order=6)
public String fields = null;
@DataMember(Order=7)
public HashMap<String,String> meta = null;
public Integer getSkip() { return skip; }
public QueryBase setSkip(Integer value) { this.skip = value; return this; }
public Integer getTake() { return take; }
public QueryBase setTake(Integer value) { this.take = value; return this; }
public String getOrderBy() { return orderBy; }
public QueryBase setOrderBy(String value) { this.orderBy = value; return this; }
public String getOrderByDesc() { return orderByDesc; }
public QueryBase setOrderByDesc(String value) { this.orderByDesc = value; return this; }
public String getInclude() { return include; }
public QueryBase setInclude(String value) { this.include = value; return this; }
public String getFields() { return fields; }
public QueryBase setFields(String value) { this.fields = value; return this; }
public HashMap<String,String> getMeta() { return meta; }
public QueryBase setMeta(HashMap<String,String> value) { this.meta = value; return this; }
}
public static class EventSet
{
public Long eventSetId = null;
public ProcessingStatus processingStatus = null;
public String sourceModelSystem = null;
public String sourceEventSetId = null;
public String modelId = null;
public Integer perspectiveId = null;
public Integer simulationCount = null;
public String programCalculationId = null;
public String description = null;
public Double limit = null;
public Integer reinstatements = null;
public String eventSourceType = null;
public String eventSetOriginId = null;
public String eventSetOriginName = null;
public String eventSetOriginType = null;
public String sourceEventSetLossContainer = null;
public String sourceEventSetLossPath = null;
public String resolution = null;
public String resultsHash = null;
public Double expectedLossAggregate = null;
public Double expectedLossOccurrence = null;
public Double probabilityOfAttachment = null;
public Double probabilityOfExhaustion = null;
public Date approvedDateTimeUtc = null;
public String approvedBy = null;
public Long eventSourceId = null;
public Date validFromUtc = null;
public Date validToUtc = null;
public String container = null;
public String blobName = null;
public Date updatedDateUtc = null;
public Boolean isArchived = null;
public String archivedLossDataBlobPath = null;
public String archivedLossDataHash = null;
public EventSetTelemetry eventSetTelemetry = null;
public Long getEventSetId() { return eventSetId; }
public EventSet setEventSetId(Long value) { this.eventSetId = value; return this; }
public ProcessingStatus getProcessingStatus() { return processingStatus; }
public EventSet setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
public String getSourceModelSystem() { return sourceModelSystem; }
public EventSet setSourceModelSystem(String value) { this.sourceModelSystem = value; return this; }
public String getSourceEventSetId() { return sourceEventSetId; }
public EventSet setSourceEventSetId(String value) { this.sourceEventSetId = value; return this; }
public String getModelId() { return modelId; }
public EventSet setModelId(String value) { this.modelId = value; return this; }
public Integer getPerspectiveId() { return perspectiveId; }
public EventSet setPerspectiveId(Integer value) { this.perspectiveId = value; return this; }
public Integer getSimulationCount() { return simulationCount; }
public EventSet setSimulationCount(Integer value) { this.simulationCount = value; return this; }
public String getProgramCalculationId() { return programCalculationId; }
public EventSet setProgramCalculationId(String value) { this.programCalculationId = value; return this; }
public String getDescription() { return description; }
public EventSet setDescription(String value) { this.description = value; return this; }
public Double getLimit() { return limit; }
public EventSet setLimit(Double value) { this.limit = value; return this; }
public Integer getReinstatements() { return reinstatements; }
public EventSet setReinstatements(Integer value) { this.reinstatements = value; return this; }
public String getEventSourceType() { return eventSourceType; }
public EventSet setEventSourceType(String value) { this.eventSourceType = value; return this; }
public String getEventSetOriginId() { return eventSetOriginId; }
public EventSet setEventSetOriginId(String value) { this.eventSetOriginId = value; return this; }
public String getEventSetOriginName() { return eventSetOriginName; }
public EventSet setEventSetOriginName(String value) { this.eventSetOriginName = value; return this; }
public String getEventSetOriginType() { return eventSetOriginType; }
public EventSet setEventSetOriginType(String value) { this.eventSetOriginType = value; return this; }
public String getSourceEventSetLossContainer() { return sourceEventSetLossContainer; }
public EventSet setSourceEventSetLossContainer(String value) { this.sourceEventSetLossContainer = value; return this; }
public String getSourceEventSetLossPath() { return sourceEventSetLossPath; }
public EventSet setSourceEventSetLossPath(String value) { this.sourceEventSetLossPath = value; return this; }
public String getResolution() { return resolution; }
public EventSet setResolution(String value) { this.resolution = value; return this; }
public String getResultsHash() { return resultsHash; }
public EventSet setResultsHash(String value) { this.resultsHash = value; return this; }
public Double getExpectedLossAggregate() { return expectedLossAggregate; }
public EventSet setExpectedLossAggregate(Double value) { this.expectedLossAggregate = value; return this; }
public Double getExpectedLossOccurrence() { return expectedLossOccurrence; }
public EventSet setExpectedLossOccurrence(Double value) { this.expectedLossOccurrence = value; return this; }
public Double getProbabilityOfAttachment() { return probabilityOfAttachment; }
public EventSet setProbabilityOfAttachment(Double value) { this.probabilityOfAttachment = value; return this; }
public Double getProbabilityOfExhaustion() { return probabilityOfExhaustion; }
public EventSet setProbabilityOfExhaustion(Double value) { this.probabilityOfExhaustion = value; return this; }
public Date getApprovedDateTimeUtc() { return approvedDateTimeUtc; }
public EventSet setApprovedDateTimeUtc(Date value) { this.approvedDateTimeUtc = value; return this; }
public String getApprovedBy() { return approvedBy; }
public EventSet setApprovedBy(String value) { this.approvedBy = value; return this; }
public Long getEventSourceId() { return eventSourceId; }
public EventSet setEventSourceId(Long value) { this.eventSourceId = value; return this; }
public Date getValidFromUtc() { return validFromUtc; }
public EventSet setValidFromUtc(Date value) { this.validFromUtc = value; return this; }
public Date getValidToUtc() { return validToUtc; }
public EventSet setValidToUtc(Date value) { this.validToUtc = value; return this; }
public String getContainer() { return container; }
public EventSet setContainer(String value) { this.container = value; return this; }
public String getBlobName() { return blobName; }
public EventSet setBlobName(String value) { this.blobName = value; return this; }
public Date getUpdatedDateUtc() { return updatedDateUtc; }
public EventSet setUpdatedDateUtc(Date value) { this.updatedDateUtc = value; return this; }
public Boolean getIsArchived() { return isArchived; }
public EventSet setIsArchived(Boolean value) { this.isArchived = value; return this; }
public String getArchivedLossDataBlobPath() { return archivedLossDataBlobPath; }
public EventSet setArchivedLossDataBlobPath(String value) { this.archivedLossDataBlobPath = value; return this; }
public String getArchivedLossDataHash() { return archivedLossDataHash; }
public EventSet setArchivedLossDataHash(String value) { this.archivedLossDataHash = value; return this; }
public EventSetTelemetry getEventSetTelemetry() { return eventSetTelemetry; }
public EventSet setEventSetTelemetry(EventSetTelemetry value) { this.eventSetTelemetry = value; return this; }
}
public static enum ProcessingStatus
{
New(0),
Processing(1),
Failed(10),
Successful(20);
private final int value;
ProcessingStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class EventSetTelemetry
{
public Long eventSetId = null;
public Date startedDateTimeUtc = null;
public Date endedDateTimeUct = null;
public Integer eventLossCount = null;
public Long getEventSetId() { return eventSetId; }
public EventSetTelemetry setEventSetId(Long value) { this.eventSetId = value; return this; }
public Date getStartedDateTimeUtc() { return startedDateTimeUtc; }
public EventSetTelemetry setStartedDateTimeUtc(Date value) { this.startedDateTimeUtc = value; return this; }
public Date getEndedDateTimeUct() { return endedDateTimeUct; }
public EventSetTelemetry setEndedDateTimeUct(Date value) { this.endedDateTimeUct = value; return this; }
public Integer getEventLossCount() { return eventLossCount; }
public EventSetTelemetry setEventLossCount(Integer value) { this.eventLossCount = value; return this; }
}
public static class EventSetProcessingStatus
{
public Long eventSetId = null;
public ProcessingStatus processingStatus = null;
public String sourceModelSystem = null;
public String sourceEventSetId = null;
public String modelId = null;
public String programCalculationId = null;
public String eventSetOriginId = null;
public Integer perspectiveId = null;
public Long getEventSetId() { return eventSetId; }
public EventSetProcessingStatus setEventSetId(Long value) { this.eventSetId = value; return this; }
public ProcessingStatus getProcessingStatus() { return processingStatus; }
public EventSetProcessingStatus setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
public String getSourceModelSystem() { return sourceModelSystem; }
public EventSetProcessingStatus setSourceModelSystem(String value) { this.sourceModelSystem = value; return this; }
public String getSourceEventSetId() { return sourceEventSetId; }
public EventSetProcessingStatus setSourceEventSetId(String value) { this.sourceEventSetId = value; return this; }
public String getModelId() { return modelId; }
public EventSetProcessingStatus setModelId(String value) { this.modelId = value; return this; }
public String getProgramCalculationId() { return programCalculationId; }
public EventSetProcessingStatus setProgramCalculationId(String value) { this.programCalculationId = value; return this; }
public String getEventSetOriginId() { return eventSetOriginId; }
public EventSetProcessingStatus setEventSetOriginId(String value) { this.eventSetOriginId = value; return this; }
public Integer getPerspectiveId() { return perspectiveId; }
public EventSetProcessingStatus setPerspectiveId(Integer value) { this.perspectiveId = value; return this; }
}
@DataContract
public static class QueryResponse<T>
{
@DataMember(Order=1)
public Integer offset = null;
@DataMember(Order=2)
public Integer total = null;
@DataMember(Order=3)
public ArrayList<Analysis> results = null;
@DataMember(Order=4)
public HashMap<String,String> meta = null;
@DataMember(Order=5)
public ResponseStatus responseStatus = null;
public Integer getOffset() { return offset; }
public QueryResponse<T> setOffset(Integer value) { this.offset = value; return this; }
public Integer getTotal() { return total; }
public QueryResponse<T> setTotal(Integer value) { this.total = value; return this; }
public ArrayList<Analysis> getResults() { return results; }
public QueryResponse<T> setResults(ArrayList<Analysis> value) { this.results = value; return this; }
public HashMap<String,String> getMeta() { return meta; }
public QueryResponse<T> setMeta(HashMap<String,String> value) { this.meta = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public QueryResponse<T> setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
@DataContract
public static class Analysis implements IObjectWithId
{
@DataMember(Order=1)
public Long id = null;
@DataMember(Order=2)
public String name = null;
@DataMember(Order=3)
public Date modelAsOfDate = null;
@DataMember(Order=4)
public Integer perspectiveId = null;
@DataMember(Order=5)
public ArrayList<AnalysisConfiguration> configurations = null;
@DataMember(Order=6)
public ArrayList<AnalysisDeal> deals = null;
@DataMember(Order=7)
public ArrayList<AnalysisEventIdFilter> eventIdFilters = null;
@DataMember(Order=8)
public String createdBy = null;
@DataMember(Order=9)
public Date createdDateUtc = null;
@DataMember(Order=10)
public Date completedDateUtc = null;
@DataMember(Order=11)
public Long legacyAnalysisId = null;
@DataMember(Order=12)
public ArrayList<MessageTracking> resultPersistenceTracking = null;
@DataMember(Order=13)
public ProcessingStatus processingStatus = null;
@DataMember(Order=14)
public Boolean saveResults = null;
@DataMember(Order=15)
public String eventSourceSystem = null;
@DataMember(Order=16)
public Date updatedDateUtc = null;
@DataMember(Order=17)
public Boolean isExpired = null;
@DataMember(Order=18)
public UUID rowIdentifier = null;
@DataMember(Order=19)
public String errorMessage = null;
/**
* Take the minimum simulation count when we have different simulations between event sets
*/
@DataMember(Order=20)
@ApiMember(DataType="boolean", Description="Take the minimum simulation count when we have different simulations between event sets")
public Boolean ignoreSimulationCountMismatch = null;
@DataMember(Order=21)
@Ignore()
public ProcessingStatus finalStatus = null;
public Long getId() { return id; }
public Analysis setId(Long value) { this.id = value; return this; }
public String getName() { return name; }
public Analysis setName(String value) { this.name = value; return this; }
public Date getModelAsOfDate() { return modelAsOfDate; }
public Analysis setModelAsOfDate(Date value) { this.modelAsOfDate = value; return this; }
public Integer getPerspectiveId() { return perspectiveId; }
public Analysis setPerspectiveId(Integer value) { this.perspectiveId = value; return this; }
public ArrayList<AnalysisConfiguration> getConfigurations() { return configurations; }
public Analysis setConfigurations(ArrayList<AnalysisConfiguration> value) { this.configurations = value; return this; }
public ArrayList<AnalysisDeal> getDeals() { return deals; }
public Analysis setDeals(ArrayList<AnalysisDeal> value) { this.deals = value; return this; }
public ArrayList<AnalysisEventIdFilter> getEventIdFilters() { return eventIdFilters; }
public Analysis setEventIdFilters(ArrayList<AnalysisEventIdFilter> value) { this.eventIdFilters = value; return this; }
public String getCreatedBy() { return createdBy; }
public Analysis setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getCreatedDateUtc() { return createdDateUtc; }
public Analysis setCreatedDateUtc(Date value) { this.createdDateUtc = value; return this; }
public Date getCompletedDateUtc() { return completedDateUtc; }
public Analysis setCompletedDateUtc(Date value) { this.completedDateUtc = value; return this; }
public Long getLegacyAnalysisId() { return legacyAnalysisId; }
public Analysis setLegacyAnalysisId(Long value) { this.legacyAnalysisId = value; return this; }
public ArrayList<MessageTracking> getResultPersistenceTracking() { return resultPersistenceTracking; }
public Analysis setResultPersistenceTracking(ArrayList<MessageTracking> value) { this.resultPersistenceTracking = value; return this; }
public ProcessingStatus getProcessingStatus() { return processingStatus; }
public Analysis setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
public Boolean isSaveResults() { return saveResults; }
public Analysis setSaveResults(Boolean value) { this.saveResults = value; return this; }
public String getEventSourceSystem() { return eventSourceSystem; }
public Analysis setEventSourceSystem(String value) { this.eventSourceSystem = value; return this; }
public Date getUpdatedDateUtc() { return updatedDateUtc; }
public Analysis setUpdatedDateUtc(Date value) { this.updatedDateUtc = value; return this; }
public Boolean getIsExpired() { return isExpired; }
public Analysis setIsExpired(Boolean value) { this.isExpired = value; return this; }
public UUID getRowIdentifier() { return rowIdentifier; }
public Analysis setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
public String getErrorMessage() { return errorMessage; }
public Analysis setErrorMessage(String value) { this.errorMessage = value; return this; }
public Boolean isIgnoreSimulationCountMismatch() { return ignoreSimulationCountMismatch; }
public Analysis setIgnoreSimulationCountMismatch(Boolean value) { this.ignoreSimulationCountMismatch = value; return this; }
public ProcessingStatus getFinalStatus() { return finalStatus; }
public Analysis setFinalStatus(ProcessingStatus value) { this.finalStatus = value; return this; }
}
@DataContract
public static class AnalysisConfiguration implements IObjectWithId, IHasAnalysisId
{
@DataMember(Order=1)
public Long id = null;
@DataMember(Order=2)
public Long analysisId = null;
@DataMember(Order=3)
public Date windowStartDate = null;
@DataMember(Order=4)
public Date windowEndDate = null;
@DataMember(Order=5)
public Boolean standardEnabled = null;
@DataMember(Order=6)
public Boolean runOffEnabled = null;
@DataMember(Order=7)
public Boolean aggregateEnabled = null;
@DataMember(Order=8)
public Boolean occurrenceEnabled = null;
@DataMember(Order=9)
public Boolean nettEnabled = null;
@DataMember(Order=10)
public Boolean grossEnabled = null;
@DataMember(Order=11)
public BigDecimal tailIntensityPercentageStart = null;
@DataMember(Order=12)
public BigDecimal tailIntensityPercentageEnd = null;
@DataMember(Order=13)
public Integer metaRiskId = null;
@DataMember(Order=14)
public ResultOutputLevel outputLevel = null;
@DataMember(Order=15)
public ProcessingStatus processingStatus = null;
@DataMember(Order=16)
public BigDecimal eventLossFloorStartRange = null;
@DataMember(Order=17)
public BigDecimal eventLossFloorEndRange = null;
@DataMember(Order=18)
public ArrayList<AnalysisPortfolioEventSetConfiguration> analysisPortfolioEventSetConfigurations = null;
@DataMember(Order=19)
public UUID rowIdentifier = null;
public Long getId() { return id; }
public AnalysisConfiguration setId(Long value) { this.id = value; return this; }
public Long getAnalysisId() { return analysisId; }
public AnalysisConfiguration setAnalysisId(Long value) { this.analysisId = value; return this; }
public Date getWindowStartDate() { return windowStartDate; }
public AnalysisConfiguration setWindowStartDate(Date value) { this.windowStartDate = value; return this; }
public Date getWindowEndDate() { return windowEndDate; }
public AnalysisConfiguration setWindowEndDate(Date value) { this.windowEndDate = value; return this; }
public Boolean isStandardEnabled() { return standardEnabled; }
public AnalysisConfiguration setStandardEnabled(Boolean value) { this.standardEnabled = value; return this; }
public Boolean isRunOffEnabled() { return runOffEnabled; }
public AnalysisConfiguration setRunOffEnabled(Boolean value) { this.runOffEnabled = value; return this; }
public Boolean isAggregateEnabled() { return aggregateEnabled; }
public AnalysisConfiguration setAggregateEnabled(Boolean value) { this.aggregateEnabled = value; return this; }
public Boolean isOccurrenceEnabled() { return occurrenceEnabled; }
public AnalysisConfiguration setOccurrenceEnabled(Boolean value) { this.occurrenceEnabled = value; return this; }
public Boolean isNettEnabled() { return nettEnabled; }
public AnalysisConfiguration setNettEnabled(Boolean value) { this.nettEnabled = value; return this; }
public Boolean isGrossEnabled() { return grossEnabled; }
public AnalysisConfiguration setGrossEnabled(Boolean value) { this.grossEnabled = value; return this; }
public BigDecimal getTailIntensityPercentageStart() { return tailIntensityPercentageStart; }
public AnalysisConfiguration setTailIntensityPercentageStart(BigDecimal value) { this.tailIntensityPercentageStart = value; return this; }
public BigDecimal getTailIntensityPercentageEnd() { return tailIntensityPercentageEnd; }
public AnalysisConfiguration setTailIntensityPercentageEnd(BigDecimal value) { this.tailIntensityPercentageEnd = value; return this; }
public Integer getMetaRiskId() { return metaRiskId; }
public AnalysisConfiguration setMetaRiskId(Integer value) { this.metaRiskId = value; return this; }
public ResultOutputLevel getOutputLevel() { return outputLevel; }
public AnalysisConfiguration setOutputLevel(ResultOutputLevel value) { this.outputLevel = value; return this; }
public ProcessingStatus getProcessingStatus() { return processingStatus; }
public AnalysisConfiguration setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
public BigDecimal getEventLossFloorStartRange() { return eventLossFloorStartRange; }
public AnalysisConfiguration setEventLossFloorStartRange(BigDecimal value) { this.eventLossFloorStartRange = value; return this; }
public BigDecimal getEventLossFloorEndRange() { return eventLossFloorEndRange; }
public AnalysisConfiguration setEventLossFloorEndRange(BigDecimal value) { this.eventLossFloorEndRange = value; return this; }
public ArrayList<AnalysisPortfolioEventSetConfiguration> getAnalysisPortfolioEventSetConfigurations() { return analysisPortfolioEventSetConfigurations; }
public AnalysisConfiguration setAnalysisPortfolioEventSetConfigurations(ArrayList<AnalysisPortfolioEventSetConfiguration> value) { this.analysisPortfolioEventSetConfigurations = value; return this; }
public UUID getRowIdentifier() { return rowIdentifier; }
public AnalysisConfiguration setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
}
public static enum ResultOutputLevel
{
NotSet,
PortfolioMetrics,
Curve,
Ylt,
TailIntensity,
DealYlt,
DealElt,
DealEltWithIndustryLoss,
PortfolioElt,
PortfolioEltWithIndustryLoss,
EventSetGeneration,
PortfolioRaps,
DealRaps,
PortfolioSepyIndustryLoss,
DealSepyIndustryLoss;
}
public static class AnalysisPortfolioEventSetConfiguration implements IObjectWithId, IHasAnalysisId
{
@DataMember(Order=1)
public Long id = null;
@DataMember(Order=2)
public Long analysisId = null;
@DataMember(Order=3)
public Long analysisConfigurationId = null;
@DataMember(Order=4)
public String portfolioName = null;
@DataMember(Order=5)
public String modelId = null;
@DataMember(Order=6)
public UUID rowIdentifier = null;
public Long getId() { return id; }
public AnalysisPortfolioEventSetConfiguration setId(Long value) { this.id = value; return this; }
public Long getAnalysisId() { return analysisId; }
public AnalysisPortfolioEventSetConfiguration setAnalysisId(Long value) { this.analysisId = value; return this; }
public Long getAnalysisConfigurationId() { return analysisConfigurationId; }
public AnalysisPortfolioEventSetConfiguration setAnalysisConfigurationId(Long value) { this.analysisConfigurationId = value; return this; }
public String getPortfolioName() { return portfolioName; }
public AnalysisPortfolioEventSetConfiguration setPortfolioName(String value) { this.portfolioName = value; return this; }
public String getModelId() { return modelId; }
public AnalysisPortfolioEventSetConfiguration setModelId(String value) { this.modelId = value; return this; }
public UUID getRowIdentifier() { return rowIdentifier; }
public AnalysisPortfolioEventSetConfiguration setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
}
@DataContract
public static class AnalysisDeal implements IObjectWithId, IHasAnalysisId
{
@DataMember(Order=1)
public Long id = null;
@DataMember(Order=2)
public Long analysisId = null;
@DataMember(Order=3)
public String sourceDealId = null;
@DataMember(Order=4)
public String dealRef = null;
@DataMember(Order=5)
public String sourceDealSystem = null;
@DataMember(Order=6)
public Long eventSetId = null;
@DataMember(Order=7)
public Double rol = null;
@DataMember(Order=8)
public Double limit = null;
@DataMember(Order=9)
public Date inceptionDate = null;
@DataMember(Order=10)
public Date expiryDate = null;
@DataMember(Order=11)
public TransactionType transactionType = null;
@DataMember(Order=12)
public ArrayList<AnalysisPortfolioAllocation> allocations = null;
@DataMember(Order=13)
public Integer perspectiveIdOverride = null;
@DataMember(Order=14)
public Long eventSetIdOverride = null;
@DataMember(Order=15)
public Date modelAsOfDateOverride = null;
@DataMember(Order=16)
public String sourceModelSystemOverride = null;
@DataMember(Order=17)
public String sourceModelIdOverride = null;
@DataMember(Order=18)
public String sourceEventSetIdOverride = null;
@DataMember(Order=19)
public String eventSourceSystemOverride = null;
@DataMember(Order=20)
public UUID rowIdentifier = null;
public Long getId() { return id; }
public AnalysisDeal setId(Long value) { this.id = value; return this; }
public Long getAnalysisId() { return analysisId; }
public AnalysisDeal setAnalysisId(Long value) { this.analysisId = value; return this; }
public String getSourceDealId() { return sourceDealId; }
public AnalysisDeal setSourceDealId(String value) { this.sourceDealId = value; return this; }
public String getDealRef() { return dealRef; }
public AnalysisDeal setDealRef(String value) { this.dealRef = value; return this; }
public String getSourceDealSystem() { return sourceDealSystem; }
public AnalysisDeal setSourceDealSystem(String value) { this.sourceDealSystem = value; return this; }
public Long getEventSetId() { return eventSetId; }
public AnalysisDeal setEventSetId(Long value) { this.eventSetId = value; return this; }
public Double getRol() { return rol; }
public AnalysisDeal setRol(Double value) { this.rol = value; return this; }
public Double getLimit() { return limit; }
public AnalysisDeal setLimit(Double value) { this.limit = value; return this; }
public Date getInceptionDate() { return inceptionDate; }
public AnalysisDeal setInceptionDate(Date value) { this.inceptionDate = value; return this; }
public Date getExpiryDate() { return expiryDate; }
public AnalysisDeal setExpiryDate(Date value) { this.expiryDate = value; return this; }
public TransactionType getTransactionType() { return transactionType; }
public AnalysisDeal setTransactionType(TransactionType value) { this.transactionType = value; return this; }
public ArrayList<AnalysisPortfolioAllocation> getAllocations() { return allocations; }
public AnalysisDeal setAllocations(ArrayList<AnalysisPortfolioAllocation> value) { this.allocations = value; return this; }
public Integer getPerspectiveIdOverride() { return perspectiveIdOverride; }
public AnalysisDeal setPerspectiveIdOverride(Integer value) { this.perspectiveIdOverride = value; return this; }
public Long getEventSetIdOverride() { return eventSetIdOverride; }
public AnalysisDeal setEventSetIdOverride(Long value) { this.eventSetIdOverride = value; return this; }
public Date getModelAsOfDateOverride() { return modelAsOfDateOverride; }
public AnalysisDeal setModelAsOfDateOverride(Date value) { this.modelAsOfDateOverride = value; return this; }
public String getSourceModelSystemOverride() { return sourceModelSystemOverride; }
public AnalysisDeal setSourceModelSystemOverride(String value) { this.sourceModelSystemOverride = value; return this; }
public String getSourceModelIdOverride() { return sourceModelIdOverride; }
public AnalysisDeal setSourceModelIdOverride(String value) { this.sourceModelIdOverride = value; return this; }
public String getSourceEventSetIdOverride() { return sourceEventSetIdOverride; }
public AnalysisDeal setSourceEventSetIdOverride(String value) { this.sourceEventSetIdOverride = value; return this; }
public String getEventSourceSystemOverride() { return eventSourceSystemOverride; }
public AnalysisDeal setEventSourceSystemOverride(String value) { this.eventSourceSystemOverride = value; return this; }
public UUID getRowIdentifier() { return rowIdentifier; }
public AnalysisDeal setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
}
public static enum TransactionType
{
NotSet,
S,
B;
}
@DataContract
public static class AnalysisPortfolioAllocation implements IObjectWithId
{
@DataMember(Order=1)
public Long id = null;
@DataMember(Order=2)
public Long analysisDealId = null;
@DataMember(Order=3)
@Validate(Validator="NotEmpty", Message="PortfolioName is mandatory")
public String portfolioName = null;
@DataMember(Order=4)
public Double allocationPercentage = null;
@DataMember(Order=5)
public UUID rowIdentifier = null;
public Long getId() { return id; }
public AnalysisPortfolioAllocation setId(Long value) { this.id = value; return this; }
public Long getAnalysisDealId() { return analysisDealId; }
public AnalysisPortfolioAllocation setAnalysisDealId(Long value) { this.analysisDealId = value; return this; }
public String getPortfolioName() { return portfolioName; }
public AnalysisPortfolioAllocation setPortfolioName(String value) { this.portfolioName = value; return this; }
public Double getAllocationPercentage() { return allocationPercentage; }
public AnalysisPortfolioAllocation setAllocationPercentage(Double value) { this.allocationPercentage = value; return this; }
public UUID getRowIdentifier() { return rowIdentifier; }
public AnalysisPortfolioAllocation setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
}
@DataContract
public static class AnalysisEventIdFilter implements IObjectWithId, IHasAnalysisId
{
@DataMember(Order=1)
public Long id = null;
@DataMember(Order=2)
public Long analysisId = null;
@DataMember(Order=3)
public Integer eventSourceId = null;
@DataMember(Order=4)
public Long eventId = null;
@DataMember(Order=5)
public UUID rowIdentifier = null;
public Long getId() { return id; }
public AnalysisEventIdFilter setId(Long value) { this.id = value; return this; }
public Long getAnalysisId() { return analysisId; }
public AnalysisEventIdFilter setAnalysisId(Long value) { this.analysisId = value; return this; }
public Integer getEventSourceId() { return eventSourceId; }
public AnalysisEventIdFilter setEventSourceId(Integer value) { this.eventSourceId = value; return this; }
public Long getEventId() { return eventId; }
public AnalysisEventIdFilter setEventId(Long value) { this.eventId = value; return this; }
public UUID getRowIdentifier() { return rowIdentifier; }
public AnalysisEventIdFilter setRowIdentifier(UUID value) { this.rowIdentifier = value; return this; }
}
@DataContract
public static class MessageTracking
{
@DataMember(Order=1)
public UUID id = null;
@DataMember(Order=2)
public Long analysisId = null;
@DataMember(Order=3)
public ProcessingStatus processingStatus = null;
@DataMember(Order=4)
public MessageType messageType = null;
@DataMember(Order=5)
public Date createdDateUtc = null;
@DataMember(Order=6)
public Date updatedDateUtc = null;
public UUID getId() { return id; }
public MessageTracking setId(UUID value) { this.id = value; return this; }
public Long getAnalysisId() { return analysisId; }
public MessageTracking setAnalysisId(Long value) { this.analysisId = value; return this; }
public ProcessingStatus getProcessingStatus() { return processingStatus; }
public MessageTracking setProcessingStatus(ProcessingStatus value) { this.processingStatus = value; return this; }
public MessageType getMessageType() { return messageType; }
public MessageTracking setMessageType(MessageType value) { this.messageType = value; return this; }
public Date getCreatedDateUtc() { return createdDateUtc; }
public MessageTracking setCreatedDateUtc(Date value) { this.createdDateUtc = value; return this; }
public Date getUpdatedDateUtc() { return updatedDateUtc; }
public MessageTracking setUpdatedDateUtc(Date value) { this.updatedDateUtc = value; return this; }
}
public static enum MessageType
{
NotSet,
Persistence,
Archival;
}
}
Java GetEventSetIngestStatusRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/riskstore/eventset/ingest/status HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"offset":0,"total":0,"results":[{"eventSetId":0,"processingStatus":"New","sourceModelSystem":"String","sourceEventSetId":"String","modelId":"String","programCalculationId":"String","eventSetOriginId":"String","perspectiveId":0}],"meta":{"String":"String"},"responseStatus":{"__type":"ServiceStack.ResponseStatus, ServiceStack.Interfaces","errorCode":"String","message":"String","stackTrace":"String","errors":[{"__type":"ServiceStack.ResponseError, ServiceStack.Interfaces","errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}