Files
sdk/include/hanzo/model/O11y_statusResult.h
zeekay 189ce08e51 Regenerate against the document the deployment answers for
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.
2026-09-05 18:07:13 -07:00

133 lines
4.0 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.
*/
/*
* O11y_statusResult.h
*
*
*/
#ifndef HANZO_MODEL_O11y_statusResult_H_
#define HANZO_MODEL_O11y_statusResult_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/O11y_deployment.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace hanzo {
namespace model {
class O11y_deployment;
class O11y_statusResult
: public ModelBase
{
public:
O11y_statusResult();
virtual ~O11y_statusResult();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// O11y_statusResult members
/// <summary>
/// CheckedAt is when this answer was measured, RFC3339 UTC.
/// </summary>
utility::string_t getCheckedAt() const;
bool checkedAtIsSet() const;
void unsetCheckedAt();
void setCheckedAt(const utility::string_t& value);
/// <summary>
/// Deployments is the per-replica inventory behind the verdict. Empty means the telemetry store reported none, not that the service runs on none.
/// </summary>
std::vector<std::shared_ptr<O11y_deployment>> getDeployments() const;
bool deploymentsIsSet() const;
void unsetDeployments();
void setDeployments(const std::vector<std::shared_ptr<O11y_deployment>>& value);
/// <summary>
/// LatencyMs is the health probe&#39;s round trip in MILLISECONDS, time-boxed at two seconds. It is 0 when no probe answered, which is not a fast service.
/// </summary>
int64_t getLatencyMs() const;
bool latencyMsIsSet() const;
void unsetLatencyMs();
void setLatencyMs(int64_t value);
/// <summary>
/// Product is the service this answer is about, echoed back.
/// </summary>
utility::string_t getProduct() const;
bool productIsSet() const;
void unsetProduct();
void setProduct(const utility::string_t& value);
/// <summary>
/// Source is where the verdict came from: \&quot;probe\&quot; (we asked and it answered), \&quot;datastore\&quot; (the probe did not answer and the replica inventory decided it), \&quot;unreachable\&quot; (neither), or \&quot;unknown-service\&quot; for a well-formed product name nothing backs — which is answered without probing, since dialling an arbitrary host on a caller&#39;s say-so is the request forgery this refuses.
/// </summary>
utility::string_t getSource() const;
bool sourceIsSet() const;
void unsetSource();
void setSource(const utility::string_t& value);
/// <summary>
/// Up is true when the health probe succeeded OR any replica reports up, so a service reachable by either route reads up. Read Source to know which.
/// </summary>
bool isUp() const;
bool upIsSet() const;
void unsetUp();
void setUp(bool value);
protected:
utility::string_t m_CheckedAt;
bool m_CheckedAtIsSet;
std::vector<std::shared_ptr<O11y_deployment>> m_Deployments;
bool m_DeploymentsIsSet;
int64_t m_LatencyMs;
bool m_LatencyMsIsSet;
utility::string_t m_Product;
bool m_ProductIsSet;
utility::string_t m_Source;
bool m_SourceIsSet;
bool m_Up;
bool m_UpIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_statusResult_H_ */