| POST | /api/riskstore/eventset/ingest | Ingest EventSet Request | Ingest EventSet Request |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Nephila.RiskStore.ServiceModel.Requests
Imports Nephila.RiskStore.ServiceModel.Types
Imports Nephila.RiskStore.ServiceModel
Namespace Global
Namespace Nephila.RiskStore.ServiceModel.Requests
Public Partial Class IngestEventSetRequest
Implements IPost
Public Overridable Property EventSet As EventSet
End Class
End Namespace
Namespace Nephila.RiskStore.ServiceModel.Types
Public Partial Class EventSet
Public Overridable Property EventSetId As Long
Public Overridable Property ProcessingStatus As ProcessingStatus
Public Overridable Property SourceModelSystem As String
Public Overridable Property SourceEventSetId As String
Public Overridable Property ModelId As String
Public Overridable Property PerspectiveId As Integer
Public Overridable Property SimulationCount As Integer
Public Overridable Property ProgramCalculationId As String
Public Overridable Property Description As String
Public Overridable Property Limit As Double
Public Overridable Property Reinstatements As Integer
Public Overridable Property EventSourceType As String
Public Overridable Property EventSetOriginId As String
Public Overridable Property EventSetOriginName As String
Public Overridable Property EventSetOriginType As String
Public Overridable Property SourceEventSetLossContainer As String
Public Overridable Property SourceEventSetLossPath As String
Public Overridable Property Resolution As String
Public Overridable Property ResultsHash As String
Public Overridable Property ExpectedLossAggregate As Double
Public Overridable Property ExpectedLossOccurrence As Double
Public Overridable Property ProbabilityOfAttachment As Double
Public Overridable Property ProbabilityOfExhaustion As Double
Public Overridable Property ApprovedDateTimeUtc As Date
Public Overridable Property ApprovedBy As String
Public Overridable Property EventSourceId As Long
Public Overridable Property ValidFromUtc As Date
Public Overridable Property ValidToUtc As Date
Public Overridable Property Container As String
Public Overridable Property BlobName As String
Public Overridable Property UpdatedDateUtc As Date
Public Overridable Property IsArchived As Boolean
Public Overridable Property ArchivedLossDataBlobPath As String
Public Overridable Property ArchivedLossDataHash As String
Public Overridable Property EventSetTelemetry As EventSetTelemetry
End Class
Public Partial Class EventSetTelemetry
Public Overridable Property EventSetId As Long
Public Overridable Property StartedDateTimeUtc As Date?
Public Overridable Property EndedDateTimeUct As Date?
Public Overridable Property EventLossCount As Integer
End Class
End Namespace
End Namespace
VB.NET 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>