Nephila RiskStore

<back to all web services

GetEventSetMetricsRequest

EventSets
Requires Authentication
The following routes are available for this service:
GET/api/riskstore/eventset/metricsGet event set metrics, used by the Excel Add-On
namespace Nephila.RiskStore.ServiceModel.Requests

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type DealEventSetMetric() = 
        member val SourceModelSystem:String = null with get,set
        member val ModelId:String = null with get,set
        member val SourceEventSetId:String = null with get,set
        member val EventSetId:Int64 = new Int64() with get,set
        member val PerspectiveId:Int32 = new Int32() with get,set
        member val ELAgg:Nullable<Double> = new Nullable<Double>() with get,set
        member val ELOcc:Nullable<Double> = new Nullable<Double>() with get,set
        member val PAtt:Nullable<Double> = new Nullable<Double>() with get,set
        member val PExh:Nullable<Double> = new Nullable<Double>() with get,set
        member val SourceDealId:String = null with get,set
        member val SourceDealSystem:String = null with get,set
        member val ApprovedDateTimeUtc:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type GetEventSetMetricsResponse() = 
        member val DealEventSetMetrics:ResizeArray<DealEventSetMetric> = null with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type GetEventSetMetricsRequest() = 
        interface 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)>]
        member val AnalysisId:Int64 = new Int64() with get,set

F# GetEventSetMetricsRequest 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.

GET /api/riskstore/eventset/metrics HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}