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

export enum ProcessingStatus
{
    New = 0,
    Processing = 1,
    Failed = 10,
    Successful = 20,
}

export class EventSetTelemetry
{
    public eventSetId: number;
    public startedDateTimeUtc?: string;
    public endedDateTimeUct?: string;
    public eventLossCount: number;

    public constructor(init?: Partial<EventSetTelemetry>) { (Object as any).assign(this, init); }
}

export class EventSet
{
    public eventSetId: number;
    public processingStatus: ProcessingStatus;
    public sourceModelSystem: string;
    public sourceEventSetId: string;
    public modelId: string;
    public perspectiveId: number;
    public simulationCount: number;
    public programCalculationId: string;
    public description: string;
    public limit: number;
    public reinstatements: number;
    public eventSourceType: string;
    public eventSetOriginId: string;
    public eventSetOriginName: string;
    public eventSetOriginType: string;
    public sourceEventSetLossContainer: string;
    public sourceEventSetLossPath: string;
    public resolution: string;
    public resultsHash: string;
    public expectedLossAggregate: number;
    public expectedLossOccurrence: number;
    public probabilityOfAttachment: number;
    public probabilityOfExhaustion: number;
    public approvedDateTimeUtc: string;
    public approvedBy: string;
    public eventSourceId: number;
    public validFromUtc: string;
    public validToUtc: string;
    public container: string;
    public blobName: string;
    public updatedDateUtc: string;
    public isArchived: boolean;
    public archivedLossDataBlobPath: string;
    public archivedLossDataHash: string;
    public eventSetTelemetry: EventSetTelemetry;

    public constructor(init?: Partial<EventSet>) { (Object as any).assign(this, init); }
}

export class IngestEventSetRequest implements IPost
{
    public eventSet: EventSet;

    public constructor(init?: Partial<IngestEventSetRequest>) { (Object as any).assign(this, init); }
}

TypeScript IngestEventSetRequest 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 /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>