| GET | /api/riskstore/eventset/metrics | Get event set metrics, used by the Excel Add-On |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class GetEventSetMetricsRequest : IGet
{
/**
* The analysis id to get the event set metrics for
*/
@ApiMember(DataType="integer", Description="The analysis id to get the event set metrics for", Format="int64", IsRequired=true)
open var analysisId:Long? = null
}
open class GetEventSetMetricsResponse
{
open var dealEventSetMetrics:ArrayList<DealEventSetMetric>? = null
open var responseStatus:ResponseStatus? = null
}
open class DealEventSetMetric
{
open var sourceModelSystem:String? = null
open var modelId:String? = null
open var sourceEventSetId:String? = null
open var eventSetId:Long? = null
open var perspectiveId:Int? = null
open var elAgg:Double? = null
open var elOcc:Double? = null
open var pAtt:Double? = null
open var pExh:Double? = null
open var sourceDealId:String? = null
open var sourceDealSystem:String? = null
open var approvedDateTimeUtc:Date? = null
}
Kotlin GetEventSetMetricsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}