| 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.*;
public class dtos
{
public static class GetEventSetMetricsRequest implements 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)
public Long analysisId = null;
public Long getAnalysisId() { return analysisId; }
public GetEventSetMetricsRequest setAnalysisId(Long value) { this.analysisId = value; return this; }
}
public static class GetEventSetMetricsResponse
{
public ArrayList<DealEventSetMetric> dealEventSetMetrics = null;
public ResponseStatus responseStatus = null;
public ArrayList<DealEventSetMetric> getDealEventSetMetrics() { return dealEventSetMetrics; }
public GetEventSetMetricsResponse setDealEventSetMetrics(ArrayList<DealEventSetMetric> value) { this.dealEventSetMetrics = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetEventSetMetricsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class DealEventSetMetric
{
public String sourceModelSystem = null;
public String modelId = null;
public String sourceEventSetId = null;
public Long eventSetId = null;
public Integer perspectiveId = null;
public Double elAgg = null;
public Double elOcc = null;
public Double pAtt = null;
public Double pExh = null;
public String sourceDealId = null;
public String sourceDealSystem = null;
public Date approvedDateTimeUtc = null;
public String getSourceModelSystem() { return sourceModelSystem; }
public DealEventSetMetric setSourceModelSystem(String value) { this.sourceModelSystem = value; return this; }
public String getModelId() { return modelId; }
public DealEventSetMetric setModelId(String value) { this.modelId = value; return this; }
public String getSourceEventSetId() { return sourceEventSetId; }
public DealEventSetMetric setSourceEventSetId(String value) { this.sourceEventSetId = value; return this; }
public Long getEventSetId() { return eventSetId; }
public DealEventSetMetric setEventSetId(Long value) { this.eventSetId = value; return this; }
public Integer getPerspectiveId() { return perspectiveId; }
public DealEventSetMetric setPerspectiveId(Integer value) { this.perspectiveId = value; return this; }
public Double getElAgg() { return elAgg; }
public DealEventSetMetric setElAgg(Double value) { this.elAgg = value; return this; }
public Double getElOcc() { return elOcc; }
public DealEventSetMetric setElOcc(Double value) { this.elOcc = value; return this; }
public Double getPAtt() { return pAtt; }
public DealEventSetMetric setPAtt(Double value) { this.pAtt = value; return this; }
public Double getPExh() { return pExh; }
public DealEventSetMetric setPExh(Double value) { this.pExh = value; return this; }
public String getSourceDealId() { return sourceDealId; }
public DealEventSetMetric setSourceDealId(String value) { this.sourceDealId = value; return this; }
public String getSourceDealSystem() { return sourceDealSystem; }
public DealEventSetMetric setSourceDealSystem(String value) { this.sourceDealSystem = value; return this; }
public Date getApprovedDateTimeUtc() { return approvedDateTimeUtc; }
public DealEventSetMetric setApprovedDateTimeUtc(Date value) { this.approvedDateTimeUtc = value; return this; }
}
}
Java GetEventSetMetricsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}