mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection these were generated from was a month old and predated the compute migration, so every one of them described /v1/visor — which the API serves at zero paths now. That is why a hand-written console client and a generated one had drifted the same way at the same time. No /v1/visor path survives here. The word still appears as a source-plane value and inside gvisor and supervisor, which are not this rename.
176 lines
4.5 KiB
C++
176 lines
4.5 KiB
C++
/**
|
|
* Hanzo Cloud API
|
|
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
*
|
|
* The version of the OpenAPI document: v1
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* RiskTrial.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_RiskTrial_H_
|
|
#define HANZO_MODEL_RiskTrial_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/RiskTopology.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class RiskTopology;
|
|
|
|
|
|
class RiskTrial
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
RiskTrial();
|
|
virtual ~RiskTrial();
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelBase overrides
|
|
|
|
void validate() override;
|
|
|
|
web::json::value toJson() const override;
|
|
bool fromJson(const web::json::value& json) override;
|
|
|
|
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
|
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// RiskTrial members
|
|
|
|
|
|
/// <summary>
|
|
/// Alerted is how many of those it would have raised.
|
|
/// </summary>
|
|
int64_t getAlerted() const;
|
|
bool alertedIsSet() const;
|
|
void unsetAlerted();
|
|
void setAlerted(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Curve is the realised alert rate over successive tenths of the history — the learning curve, which says whether the shape settled or is still moving.
|
|
/// </summary>
|
|
std::vector<double> getCurve() const;
|
|
bool curveIsSet() const;
|
|
void unsetCurve();
|
|
void setCurve(std::vector<double> value);
|
|
|
|
/// <summary>
|
|
/// Fit ranks the shape, smaller being better: the relative miss of the stated appetite, plus flat penalties for never warming and for saturating, plus the share of coordinates that were blind.
|
|
/// </summary>
|
|
double getFit() const;
|
|
bool fitIsSet() const;
|
|
void unsetFit();
|
|
void setFit(double value);
|
|
|
|
/// <summary>
|
|
/// Learned is how many events the shape learned from during the replay.
|
|
/// </summary>
|
|
int64_t getLearned() const;
|
|
bool learnedIsSet() const;
|
|
void unsetLearned();
|
|
void setLearned(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Realised is what that appetite actually produced. The distance between the two is what the search is searching over.
|
|
/// </summary>
|
|
double getRealised() const;
|
|
bool realisedIsSet() const;
|
|
void unsetRealised();
|
|
void setRealised(double value);
|
|
|
|
/// <summary>
|
|
/// Saturated is whether the appetite could not be honoured by any threshold, which is a shape that alerts on nothing and reads like a quiet one.
|
|
/// </summary>
|
|
bool isSaturated() const;
|
|
bool saturatedIsSet() const;
|
|
void unsetSaturated();
|
|
void setSaturated(bool value);
|
|
|
|
/// <summary>
|
|
/// Scored is how many it was able to score.
|
|
/// </summary>
|
|
int64_t getScored() const;
|
|
bool scoredIsSet() const;
|
|
void unsetScored();
|
|
void setScored(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Stated is the appetite the shape was tried at.
|
|
/// </summary>
|
|
double getStated() const;
|
|
bool statedIsSet() const;
|
|
void unsetStated();
|
|
void setStated(double value);
|
|
|
|
/// <summary>
|
|
/// Topology is the shape.
|
|
/// </summary>
|
|
std::shared_ptr<RiskTopology> getTopology() const;
|
|
bool topologyIsSet() const;
|
|
void unsetTopology();
|
|
void setTopology(const std::shared_ptr<RiskTopology>& value);
|
|
|
|
/// <summary>
|
|
/// Warm is whether the shape learned enough to have an opinion at all over this organisation's whole history.
|
|
/// </summary>
|
|
bool isWarm() const;
|
|
bool warmIsSet() const;
|
|
void unsetWarm();
|
|
void setWarm(bool value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Alerted;
|
|
bool m_AlertedIsSet;
|
|
|
|
std::vector<double> m_Curve;
|
|
bool m_CurveIsSet;
|
|
|
|
double m_Fit;
|
|
bool m_FitIsSet;
|
|
|
|
int64_t m_Learned;
|
|
bool m_LearnedIsSet;
|
|
|
|
double m_Realised;
|
|
bool m_RealisedIsSet;
|
|
|
|
bool m_Saturated;
|
|
bool m_SaturatedIsSet;
|
|
|
|
int64_t m_Scored;
|
|
bool m_ScoredIsSet;
|
|
|
|
double m_Stated;
|
|
bool m_StatedIsSet;
|
|
|
|
std::shared_ptr<RiskTopology> m_Topology;
|
|
bool m_TopologyIsSet;
|
|
|
|
bool m_Warm;
|
|
bool m_WarmIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_RiskTrial_H_ */
|