| POST | /api/riskstore/eventset/ingest | Ingest EventSet Request | Ingest EventSet Request |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class IngestEventSetRequest implements IPost
{
public EventSet eventSet = null;
public EventSet getEventSet() { return eventSet; }
public IngestEventSetRequest setEventSet(EventSet value) { this.eventSet = 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; }
}
}
Java IngestEventSetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/riskstore/eventset/ingest HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<IngestEventSetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests">
<EventSet xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Types">
<d2p1:ApprovedBy>String</d2p1:ApprovedBy>
<d2p1:ApprovedDateTimeUtc>0001-01-01T00:00:00</d2p1:ApprovedDateTimeUtc>
<d2p1:ArchivedLossDataBlobPath>String</d2p1:ArchivedLossDataBlobPath>
<d2p1:ArchivedLossDataHash>String</d2p1:ArchivedLossDataHash>
<d2p1:BlobName>String</d2p1:BlobName>
<d2p1:Container>String</d2p1:Container>
<d2p1:Description>String</d2p1:Description>
<d2p1:EventSetId>0</d2p1:EventSetId>
<d2p1:EventSetOriginId>String</d2p1:EventSetOriginId>
<d2p1:EventSetOriginName>String</d2p1:EventSetOriginName>
<d2p1:EventSetOriginType>String</d2p1:EventSetOriginType>
<d2p1:EventSetTelemetry>
<d2p1:EndedDateTimeUct>0001-01-01T00:00:00</d2p1:EndedDateTimeUct>
<d2p1:EventLossCount>0</d2p1:EventLossCount>
<d2p1:EventSetId>0</d2p1:EventSetId>
<d2p1:StartedDateTimeUtc>0001-01-01T00:00:00</d2p1:StartedDateTimeUtc>
</d2p1:EventSetTelemetry>
<d2p1:EventSourceId>0</d2p1:EventSourceId>
<d2p1:EventSourceType>String</d2p1:EventSourceType>
<d2p1:ExpectedLossAggregate>0</d2p1:ExpectedLossAggregate>
<d2p1:ExpectedLossOccurrence>0</d2p1:ExpectedLossOccurrence>
<d2p1:IsArchived>false</d2p1:IsArchived>
<d2p1:Limit>0</d2p1:Limit>
<d2p1:ModelId>String</d2p1:ModelId>
<d2p1:PerspectiveId>0</d2p1:PerspectiveId>
<d2p1:ProbabilityOfAttachment>0</d2p1:ProbabilityOfAttachment>
<d2p1:ProbabilityOfExhaustion>0</d2p1:ProbabilityOfExhaustion>
<d2p1:ProcessingStatus>New</d2p1:ProcessingStatus>
<d2p1:ProgramCalculationId>String</d2p1:ProgramCalculationId>
<d2p1:Reinstatements>0</d2p1:Reinstatements>
<d2p1:Resolution>String</d2p1:Resolution>
<d2p1:ResultsHash>String</d2p1:ResultsHash>
<d2p1:SimulationCount>0</d2p1:SimulationCount>
<d2p1:SourceEventSetId>String</d2p1:SourceEventSetId>
<d2p1:SourceEventSetLossContainer>String</d2p1:SourceEventSetLossContainer>
<d2p1:SourceEventSetLossPath>String</d2p1:SourceEventSetLossPath>
<d2p1:SourceModelSystem>String</d2p1:SourceModelSystem>
<d2p1:UpdatedDateUtc>0001-01-01T00:00:00</d2p1:UpdatedDateUtc>
<d2p1:ValidFromUtc>0001-01-01T00:00:00</d2p1:ValidFromUtc>
<d2p1:ValidToUtc>0001-01-01T00:00:00</d2p1:ValidToUtc>
</EventSet>
</IngestEventSetRequest>