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
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Nephila.RiskStore.ServiceModel.Requests;
using Nephila.RiskStore.ServiceModel.Types;

namespace Nephila.RiskStore.ServiceModel.Requests
{
    public partial class GetEventSetMetricsRequest
        : 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 virtual long AnalysisId { get; set; }
    }

    public partial class GetEventSetMetricsResponse
    {
        public virtual List<DealEventSetMetric> DealEventSetMetrics { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

namespace Nephila.RiskStore.ServiceModel.Types
{
    public partial class DealEventSetMetric
    {
        public virtual string SourceModelSystem { get; set; }
        public virtual string ModelId { get; set; }
        public virtual string SourceEventSetId { get; set; }
        public virtual long EventSetId { get; set; }
        public virtual int PerspectiveId { get; set; }
        public virtual double? ELAgg { get; set; }
        public virtual double? ELOcc { get; set; }
        public virtual double? PAtt { get; set; }
        public virtual double? PExh { get; set; }
        public virtual string SourceDealId { get; set; }
        public virtual string SourceDealSystem { get; set; }
        public virtual DateTime ApprovedDateTimeUtc { get; set; }
    }

}

C# GetEventSetMetricsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}