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.
130 lines
3.8 KiB
C++
130 lines
3.8 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.
|
|
*/
|
|
|
|
/*
|
|
* RiskSurface.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_RiskSurface_H_
|
|
#define HANZO_MODEL_RiskSurface_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class RiskSurface
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
RiskSurface();
|
|
virtual ~RiskSurface();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// RiskSurface members
|
|
|
|
|
|
/// <summary>
|
|
/// Folded is how many buckets of the tenant's own feature surface were folded into the model when it became resident.
|
|
/// </summary>
|
|
int64_t getFolded() const;
|
|
bool foldedIsSet() const;
|
|
void unsetFolded();
|
|
void setFolded(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Gap says why the fold did not happen or did not complete, when that is the case. An empty surface and an unreachable warehouse are different facts and a model must not report them as the same one.
|
|
/// </summary>
|
|
utility::string_t getGap() const;
|
|
bool gapIsSet() const;
|
|
void unsetGap();
|
|
void setGap(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Refused is how many buckets of this organisation's own surface the fold could not fold, because a subject on them is longer than this plane's own field bound. It is history the model does not have, said out loud.
|
|
/// </summary>
|
|
int64_t getRefused() const;
|
|
bool refusedIsSet() const;
|
|
void unsetRefused();
|
|
void setRefused(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Replayed is how many of this organisation's own recorded observations rebuilt its sliding aggregates when the model became resident. It is what says a rollout was a rebuild rather than a blindness: the aggregates are a projection of a durable record, so a restart costs a replay and not a control.
|
|
/// </summary>
|
|
int64_t getReplayed() const;
|
|
bool replayedIsSet() const;
|
|
void unsetReplayed();
|
|
void setReplayed(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Rolled is how many windows of this organisation's own source planes — product events, captured failures, metered inference — were rolled up into its feature surface before that fold. Zero with no gap means the surface was already current, which is a different fact from the rollup never running.
|
|
/// </summary>
|
|
int64_t getRolled() const;
|
|
bool rolledIsSet() const;
|
|
void unsetRolled();
|
|
void setRolled(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Window is the lookback the fold covered.
|
|
/// </summary>
|
|
utility::string_t getWindow() const;
|
|
bool windowIsSet() const;
|
|
void unsetWindow();
|
|
void setWindow(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Folded;
|
|
bool m_FoldedIsSet;
|
|
|
|
utility::string_t m_Gap;
|
|
bool m_GapIsSet;
|
|
|
|
int64_t m_Refused;
|
|
bool m_RefusedIsSet;
|
|
|
|
int64_t m_Replayed;
|
|
bool m_ReplayedIsSet;
|
|
|
|
int64_t m_Rolled;
|
|
bool m_RolledIsSet;
|
|
|
|
utility::string_t m_Window;
|
|
bool m_WindowIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_RiskSurface_H_ */
|