C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
IAPIResourceView.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Runtime.Serialization;
4
9
10// Disable warnings about snake_case function names in this method. While it goes against
11// C# best-practice, it's done intentionally to follow the API conventions closely.
12#pragma warning disable IDE1006
13
14namespace AnalyzeRe
15{
18 {
19 #region Public Properties
21 [DataMember(Order = 12)]
23 string ylt_id { get; set; }
24
29
34 #endregion Public Properties
35
36 #region Public Methods
46 TailMetrics tail_metrics(double probability, MetricsOptions options = null, int? timeout = null);
47
56
64
73
86
96 List<CoMetrics> co_metrics<T>(
99
109 double threshold, ExceedanceProbabilityOptions options = null, int? timeout = null);
110
121
135 [Obsolete("POST a BackAllocatedLayer structure instead.")]
136 BackAllocations back_allocations(string source_id, int? timeout = null);
137 #endregion Public Methods
138
139 // TODO: Delete Deprecated Methods after phase-out period.
140 #region Deprecated
151 [Obsolete("Please provide a ProbabilityWindow rather than a double tail-probability. " +
152 "This legacy method was less flexible and only returned the co-tail-metrics.")]
154 double probability, IReference<T> component, CoMetricsOptions options)
156
167 [Obsolete("Please provide a list of ProbabilityWindows rather than doubles. " +
168 "This legacy method was less flexible and only returned the co-tail-metrics.")]
172 #endregion Deprecated
173 }
174}
A pass-through to the yelt endpoint for configuring and downloading a per-trial simulation result fro...
A pass-through to the ylt endpoint for configuring and downloading a per-trial simulation result from...
Describes a collection of resources which can be listed.
Specifies that a property is generated by the server and should not be specified on the client side d...
The structure returned when requesting back-allocated metrics for a view.
Optional parameters which can be specified for co-metrics requests.
The structure returned when requesting Co-Metrics for a view.
Optional parameters which can be specified for exceedance probability requests.
The structure returned when requesting Exceedance Probability for a view.
Optional parameters which can be specified for all metrics requests.
The structure returned when requesting Tail Metrics for a view.
The structure returned when requesting Window Metrics for a view, containing the core window distribu...
A probability range used to dictate the set of ordered trial losses in a loss distribution that shoul...
Interface for resources that reference an analysis profile.
PortfolioView and LayerView interface.
CoMetrics co_metrics< T >(ProbabilityWindow range, IReference< T > component, CoMetricsOptions options=null, int? timeout=null)
Returns the co-metrics of this view for a given probability range.
List< TailMetrics > tail_metrics(IEnumerable< double > probabilities, MetricsOptions options=null, int? timeout=null)
Returns the tail metrics of this view at multiple probabilities.
TailMetrics tail_metrics(double probability, MetricsOptions options=null, int? timeout=null)
Returns the tail metrics of this view at a given probability.
string ylt_id
The hash identifier for the simulation results of this layer.
YELTSimulationResult yelt
Allows retrieval of the YELT (Year Event Loss Table) associated with this view once it has been simul...
YLTSimulationResult ylt
Allows retrieval of the YLT (Year Loss Table) associated with this view once it has been simulated.
List< WindowMetrics > window_metrics(IEnumerable< ProbabilityWindow > ranges, MetricsOptions options=null, int? timeout=null)
Returns the window metrics of this view for multiple probability ranges.
WindowMetrics window_metrics(ProbabilityWindow range, MetricsOptions options=null, int? timeout=null)
Returns the window metrics of this view for a given probability range.
ExceedanceProbability exceedance_probability(double threshold, ExceedanceProbabilityOptions options=null, int? timeout=null)
Returns the exceedance probability for this view for the given loss. That is, the probability the spe...
BackAllocations back_allocations(string source_id, int? timeout=null)
Returns a URL to the YELT of this view back-allocated to some component loss source.
Interface for Base class used by all resources.
Base interface for all reference entities.