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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
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-01,
		approvedBy: String,
		eventSourceId: 0,
		validFromUtc: 0001-01-01,
		validToUtc: 0001-01-01,
		container: String,
		blobName: String,
		updatedDateUtc: 0001-01-01,
		isArchived: False,
		archivedLossDataBlobPath: String,
		archivedLossDataHash: String,
		eventSetTelemetry: 
		{
			eventSetId: 0,
			startedDateTimeUtc: 0001-01-01,
			endedDateTimeUct: 0001-01-01,
			eventLossCount: 0
		}
	}
}