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.
111 lines
3.5 KiB
C++
111 lines
3.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.
|
|
*/
|
|
|
|
/*
|
|
* ProfileMetrics.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ProfileMetrics_H_
|
|
#define HANZO_MODEL_ProfileMetrics_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/ProgressView.h"
|
|
#include "hanzo/model/Funnel.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Funnel;
|
|
class ProgressView;
|
|
|
|
|
|
class ProfileMetrics
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ProfileMetrics();
|
|
virtual ~ProfileMetrics();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ProfileMetrics members
|
|
|
|
|
|
/// <summary>
|
|
/// Funnel is what the org's analytics observed over the trailing window. Read its `available` first: an org with no analytics reports zeros here, and zero traffic and no measurement are different facts.
|
|
/// </summary>
|
|
std::shared_ptr<Funnel> getFunnel() const;
|
|
bool funnelIsSet() const;
|
|
void unsetFunnel();
|
|
void setFunnel(const std::shared_ptr<Funnel>& value);
|
|
|
|
/// <summary>
|
|
/// LaunchProgress is the org's own position in the launch checklist, folded in so a profile carries both what the org has BUILT and what it has DONE.
|
|
/// </summary>
|
|
std::shared_ptr<ProgressView> getLaunchProgress() const;
|
|
bool launchProgressIsSet() const;
|
|
void unsetLaunchProgress();
|
|
void setLaunchProgress(const std::shared_ptr<ProgressView>& value);
|
|
|
|
/// <summary>
|
|
/// Records is how many business records the org holds — the volume that tells a real book of customers from an empty account. It feeds the `customers` signal, which crosses at a threshold rather than at one row.
|
|
/// </summary>
|
|
int64_t getRecords() const;
|
|
bool recordsIsSet() const;
|
|
void unsetRecords();
|
|
void setRecords(int64_t value);
|
|
|
|
/// <summary>
|
|
/// RevenueCents is the org's money OF RECORD — what its books say, in whole cents, never a float and never a display string. This is the number the scaling stage is decided on; funnel.revenue is the beacon's separate, unreconciled view of the same business. Zero when the org has none, and also zero when the books could not be read, which is why the `revenue` signal beside it is the thing to trust.
|
|
/// </summary>
|
|
int64_t getRevenueCents() const;
|
|
bool revenueCentsIsSet() const;
|
|
void unsetRevenueCents();
|
|
void setRevenueCents(int64_t value);
|
|
|
|
|
|
protected:
|
|
std::shared_ptr<Funnel> m_Funnel;
|
|
bool m_FunnelIsSet;
|
|
|
|
std::shared_ptr<ProgressView> m_LaunchProgress;
|
|
bool m_LaunchProgressIsSet;
|
|
|
|
int64_t m_Records;
|
|
bool m_RecordsIsSet;
|
|
|
|
int64_t m_RevenueCents;
|
|
bool m_RevenueCentsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ProfileMetrics_H_ */
|