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.
122 lines
3.9 KiB
C++
122 lines
3.9 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.
|
|
*/
|
|
|
|
/*
|
|
* RiskResolveOut.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_RiskResolveOut_H_
|
|
#define HANZO_MODEL_RiskResolveOut_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/RiskResolved.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class RiskResolved;
|
|
|
|
|
|
class RiskResolveOut
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
RiskResolveOut();
|
|
virtual ~RiskResolveOut();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// RiskResolveOut members
|
|
|
|
|
|
/// <summary>
|
|
/// Horizon is the maturity horizon this answer was computed under, IN DAYS — the caller's, or 120 when it stated none. Each event's as-of is its own `at` plus this many days, and that as-of is what decides which assertions were visible to it; an event whose as-of falls after Now is not resolved at all and is counted in Unmatured instead.
|
|
/// </summary>
|
|
int64_t getHorizon() const;
|
|
bool horizonIsSet() const;
|
|
void unsetHorizon();
|
|
void setHorizon(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Labels is one entry per named event that BOTH matured and had at least one assertion knowable by its own as-of, in the order the events were named. The three outcomes partition the ask: len(labels) + Unmatured + Unlabelled is the number of DISTINCT events named, an event named twice having been answered once.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<RiskResolved>> getLabels() const;
|
|
bool labelsIsSet() const;
|
|
void unsetLabels();
|
|
void setLabels(const std::vector<std::shared_ptr<RiskResolved>>& value);
|
|
|
|
/// <summary>
|
|
/// Now and Horizon echo the observation this answer was computed under. A resolved label without them is a claim nobody can check.
|
|
/// </summary>
|
|
utility::string_t getNow() const;
|
|
bool nowIsSet() const;
|
|
void unsetNow();
|
|
void setNow(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Unlabelled is how many matured events had no assertion knowable by their own as-of. That is the ordinary state of most traffic and it is reported rather than answered as unproductive: manufacturing negatives is how a fraud model comes to describe the incumbent block list.
|
|
/// </summary>
|
|
int64_t getUnlabelled() const;
|
|
bool unlabelledIsSet() const;
|
|
void unsetUnlabelled();
|
|
void setUnlabelled(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Unmatured is how many named events had not aged past the horizon. They are not unlabelled — they are not yet ASKABLE, and a supervised training set must exclude them rather than treat them as negatives.
|
|
/// </summary>
|
|
int64_t getUnmatured() const;
|
|
bool unmaturedIsSet() const;
|
|
void unsetUnmatured();
|
|
void setUnmatured(int64_t value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Horizon;
|
|
bool m_HorizonIsSet;
|
|
|
|
std::vector<std::shared_ptr<RiskResolved>> m_Labels;
|
|
bool m_LabelsIsSet;
|
|
|
|
utility::string_t m_Now;
|
|
bool m_NowIsSet;
|
|
|
|
int64_t m_Unlabelled;
|
|
bool m_UnlabelledIsSet;
|
|
|
|
int64_t m_Unmatured;
|
|
bool m_UnmaturedIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_RiskResolveOut_H_ */
|