Nephila RiskStore

<back to all web services

IngestEventSetRequest

General
Requires Authentication
The following routes are available for this service:
POST/api/riskstore/eventset/ingestIngest EventSet RequestIngest 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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"eventSet":{"eventSetId":0,"processingStatus":"New","sourceModelSystem":"String","sourceEventSetId":"String","modelId":"String","perspectiveId":0,"simulationCount":0,"programCalculationId":"String","description":"String","limit":0,"reinstatements":0,"eventSourceType":"String","eventSetOriginId":"String","eventSetOriginName":"String","eventSetOriginType":"String","sourceEventSetLossContainer":"String","sourceEventSetLossPath":"String","resolution":"String","resultsHash":"String","expectedLossAggregate":0,"expectedLossOccurrence":0,"probabilityOfAttachment":0,"probabilityOfExhaustion":0,"approvedDateTimeUtc":"0001-01-01T00:00:00.0000000Z","approvedBy":"String","eventSourceId":0,"validFromUtc":"0001-01-01T00:00:00.0000000Z","validToUtc":"0001-01-01T00:00:00.0000000Z","container":"String","blobName":"String","updatedDateUtc":"0001-01-01T00:00:00.0000000Z","isArchived":false,"archivedLossDataBlobPath":"String","archivedLossDataHash":"String","eventSetTelemetry":{"eventSetId":0,"startedDateTimeUtc":"0001-01-01T00:00:00.0000000Z","endedDateTimeUct":"0001-01-01T00:00:00.0000000Z","eventLossCount":0}}}