Nephila RiskStore

<back to all web services

ProcessReCalculateEventSetMetricsRequest

Requires Authentication
The following routes are available for this service:
POST/api/riskstore/eventset/recalculate-metricsRecalculate EventSet MetricsRecalculate EventSet Metrics
import 'package:servicestack/servicestack.dart';

class ReCalculateEventSetMetricsRequest implements IPost, IConvertible
{
    /**
    * List of event set ids to recalculate (leave empty for all)
    */
    // @ApiMember(DataType="string", Description="List of event set ids to recalculate (leave empty for all)", Format="uuid")
    List<int>? eventSetIds;

    /**
    * The request id
    */
    // @ApiMember(DataType="string", Description="The request id", Format="uuid", IsRequired=true)
    String? requestId;

    ReCalculateEventSetMetricsRequest({this.eventSetIds,this.requestId});
    ReCalculateEventSetMetricsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        eventSetIds = JsonConverters.fromJson(json['eventSetIds'],'List<int>',context!);
        requestId = json['requestId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'eventSetIds': JsonConverters.toJson(eventSetIds,'List<int>',context!),
        'requestId': requestId
    };

    getTypeName() => "ReCalculateEventSetMetricsRequest";
    TypeContext? context = _ctx;
}

class ProcessReCalculateEventSetMetricsRequest extends ReCalculateEventSetMetricsRequest implements IConvertible
{
    ProcessReCalculateEventSetMetricsRequest();
    ProcessReCalculateEventSetMetricsRequest.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "ProcessReCalculateEventSetMetricsRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'riskstoreng_dev.nephila.com', types: <String, TypeInfo> {
    'ReCalculateEventSetMetricsRequest': TypeInfo(TypeOf.Class, create:() => ReCalculateEventSetMetricsRequest()),
    'ProcessReCalculateEventSetMetricsRequest': TypeInfo(TypeOf.Class, create:() => ProcessReCalculateEventSetMetricsRequest()),
});

Dart ProcessReCalculateEventSetMetricsRequest DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/riskstore/eventset/recalculate-metrics HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"eventSetIds":[0],"requestId":"00000000000000000000000000000000"}