| GET | /api/riskstore/eventset/metrics | Get event set metrics, used by the Excel Add-On |
|---|
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
Namespace Global
Namespace Nephila.RiskStore.ServiceModel.Requests
Public Partial Class GetEventSetMetricsRequest
Implements IGet
'''<Summary>
'''The analysis id to get the event set metrics for
'''</Summary>
<ApiMember(DataType:="integer", Description:="The analysis id to get the event set metrics for", Format:="int64", IsRequired:=true)>
Public Overridable Property AnalysisId As Long
End Class
Public Partial Class GetEventSetMetricsResponse
Public Overridable Property DealEventSetMetrics As List(Of DealEventSetMetric)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
Namespace Nephila.RiskStore.ServiceModel.Types
Public Partial Class DealEventSetMetric
Public Overridable Property SourceModelSystem As String
Public Overridable Property ModelId As String
Public Overridable Property SourceEventSetId As String
Public Overridable Property EventSetId As Long
Public Overridable Property PerspectiveId As Integer
Public Overridable Property ELAgg As Double?
Public Overridable Property ELOcc As Double?
Public Overridable Property PAtt As Double?
Public Overridable Property PExh As Double?
Public Overridable Property SourceDealId As String
Public Overridable Property SourceDealSystem As String
Public Overridable Property ApprovedDateTimeUtc As Date
End Class
End Namespace
End Namespace
VB.NET GetEventSetMetricsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/riskstore/eventset/metrics HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"dealEventSetMetrics":[{"sourceModelSystem":"String","modelId":"String","sourceEventSetId":"String","eventSetId":0,"perspectiveId":0,"elAgg":0,"elOcc":0,"pAtt":0,"pExh":0,"sourceDealId":"String","sourceDealSystem":"String","approvedDateTimeUtc":"0001-01-01T00:00:00.0000000Z"}],"responseStatus":{"__type":"ServiceStack.ResponseStatus, ServiceStack.Interfaces","errorCode":"String","message":"String","stackTrace":"String","errors":[{"__type":"ServiceStack.ResponseError, ServiceStack.Interfaces","errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}