| POST | /api/riskstore/eventset/ingest | Ingest EventSet Request | Ingest EventSet Request |
|---|
"use strict";
/** @typedef {number} */
export var ProcessingStatus;
(function (ProcessingStatus) {
ProcessingStatus[ProcessingStatus["New"] = 0] = "New"
ProcessingStatus[ProcessingStatus["Processing"] = 1] = "Processing"
ProcessingStatus[ProcessingStatus["Failed"] = 10] = "Failed"
ProcessingStatus[ProcessingStatus["Successful"] = 20] = "Successful"
})(ProcessingStatus || (ProcessingStatus = {}));
export class EventSetTelemetry {
/** @param {{eventSetId?:number,startedDateTimeUtc?:string,endedDateTimeUct?:string,eventLossCount?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
eventSetId;
/** @type {?string} */
startedDateTimeUtc;
/** @type {?string} */
endedDateTimeUct;
/** @type {number} */
eventLossCount;
}
export class EventSet {
/** @param {{eventSetId?:number,processingStatus?:ProcessingStatus,sourceModelSystem?:string,sourceEventSetId?:string,modelId?:string,perspectiveId?:number,simulationCount?:number,programCalculationId?:string,description?:string,limit?:number,reinstatements?:number,eventSourceType?:string,eventSetOriginId?:string,eventSetOriginName?:string,eventSetOriginType?:string,sourceEventSetLossContainer?:string,sourceEventSetLossPath?:string,resolution?:string,resultsHash?:string,expectedLossAggregate?:number,expectedLossOccurrence?:number,probabilityOfAttachment?:number,probabilityOfExhaustion?:number,approvedDateTimeUtc?:string,approvedBy?:string,eventSourceId?:number,validFromUtc?:string,validToUtc?:string,container?:string,blobName?:string,updatedDateUtc?:string,isArchived?:boolean,archivedLossDataBlobPath?:string,archivedLossDataHash?:string,eventSetTelemetry?:EventSetTelemetry}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
eventSetId;
/** @type {ProcessingStatus} */
processingStatus;
/** @type {string} */
sourceModelSystem;
/** @type {string} */
sourceEventSetId;
/** @type {string} */
modelId;
/** @type {number} */
perspectiveId;
/** @type {number} */
simulationCount;
/** @type {string} */
programCalculationId;
/** @type {string} */
description;
/** @type {number} */
limit;
/** @type {number} */
reinstatements;
/** @type {string} */
eventSourceType;
/** @type {string} */
eventSetOriginId;
/** @type {string} */
eventSetOriginName;
/** @type {string} */
eventSetOriginType;
/** @type {string} */
sourceEventSetLossContainer;
/** @type {string} */
sourceEventSetLossPath;
/** @type {string} */
resolution;
/** @type {string} */
resultsHash;
/** @type {number} */
expectedLossAggregate;
/** @type {number} */
expectedLossOccurrence;
/** @type {number} */
probabilityOfAttachment;
/** @type {number} */
probabilityOfExhaustion;
/** @type {string} */
approvedDateTimeUtc;
/** @type {string} */
approvedBy;
/** @type {number} */
eventSourceId;
/** @type {string} */
validFromUtc;
/** @type {string} */
validToUtc;
/** @type {string} */
container;
/** @type {string} */
blobName;
/** @type {string} */
updatedDateUtc;
/** @type {boolean} */
isArchived;
/** @type {string} */
archivedLossDataBlobPath;
/** @type {string} */
archivedLossDataHash;
/** @type {EventSetTelemetry} */
eventSetTelemetry;
}
export class IngestEventSetRequest {
/** @param {{eventSet?:EventSet}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {EventSet} */
eventSet;
}
JavaScript 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>