mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection was 113 commits behind the document it claims to describe, and `generate.py --all --check` reported every one of the thirteen clients DRIFTED — the same +19 models in each, because they all fell behind the same emission. Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4 (sha256 087024f6…), which is the only description of this API that cannot name a route the binary does not serve. `--check` is clean across all thirteen after. .spec-lock moved with the code. The generator READS that file and never writes it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous document. A lock that disagrees with the tree beside it is worse than no lock: the next `--check` without `--spec` fetches what production serves, compares it to a digest that was already wrong, and reports drift that is really staleness.
306 lines
8.3 KiB
C++
306 lines
8.3 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_WaterfallSpan.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_WaterfallSpan_H_
|
|
#define HANZO_MODEL_O11y_WaterfallSpan_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/O11y_OtelSpanRef.h"
|
|
#include "hanzo/model/O11y_Event.h"
|
|
#include "hanzo/Object.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class O11y_Event;
|
|
class O11y_OtelSpanRef;
|
|
|
|
|
|
class O11y_WaterfallSpan
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_WaterfallSpan();
|
|
virtual ~O11y_WaterfallSpan();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_WaterfallSpan members
|
|
|
|
|
|
std::map<utility::string_t, std::shared_ptr<Object>> getAttributes() const;
|
|
bool attributesIsSet() const;
|
|
void unsetAttributes();
|
|
void setAttributes(const std::map<utility::string_t, std::shared_ptr<Object>>& value);
|
|
|
|
/// <summary>
|
|
/// Calculated fields https://o11y.io/docs/traces-management/guides/derived-fields-spans
|
|
/// </summary>
|
|
utility::string_t getDbName() const;
|
|
bool dbNameIsSet() const;
|
|
void unsetDb_name();
|
|
void setDbName(const utility::string_t& value);
|
|
|
|
utility::string_t getDbOperation() const;
|
|
bool dbOperationIsSet() const;
|
|
void unsetDb_operation();
|
|
void setDbOperation(const utility::string_t& value);
|
|
|
|
int32_t getDurationNano() const;
|
|
bool durationNanoIsSet() const;
|
|
void unsetDuration_nano();
|
|
void setDurationNano(int32_t value);
|
|
|
|
std::vector<std::shared_ptr<O11y_Event>> getEvents() const;
|
|
bool eventsIsSet() const;
|
|
void unsetEvents();
|
|
void setEvents(const std::vector<std::shared_ptr<O11y_Event>>& value);
|
|
|
|
utility::string_t getExternalHttpMethod() const;
|
|
bool externalHttpMethodIsSet() const;
|
|
void unsetExternal_http_method();
|
|
void setExternalHttpMethod(const utility::string_t& value);
|
|
|
|
utility::string_t getExternalHttpUrl() const;
|
|
bool externalHttpUrlIsSet() const;
|
|
void unsetExternal_http_url();
|
|
void setExternalHttpUrl(const utility::string_t& value);
|
|
|
|
int32_t getFlags() const;
|
|
bool flagsIsSet() const;
|
|
void unsetFlags();
|
|
void setFlags(int32_t value);
|
|
|
|
bool isHasChildren() const;
|
|
bool hasChildrenIsSet() const;
|
|
void unsetHas_children();
|
|
void setHasChildren(bool value);
|
|
|
|
bool isHasError() const;
|
|
bool hasErrorIsSet() const;
|
|
void unsetHas_error();
|
|
void setHasError(bool value);
|
|
|
|
utility::string_t getHttpHost() const;
|
|
bool httpHostIsSet() const;
|
|
void unsetHttp_host();
|
|
void setHttpHost(const utility::string_t& value);
|
|
|
|
utility::string_t getHttpMethod() const;
|
|
bool httpMethodIsSet() const;
|
|
void unsetHttp_method();
|
|
void setHttpMethod(const utility::string_t& value);
|
|
|
|
utility::string_t getHttpUrl() const;
|
|
bool httpUrlIsSet() const;
|
|
void unsetHttp_url();
|
|
void setHttpUrl(const utility::string_t& value);
|
|
|
|
utility::string_t getIsRemote() const;
|
|
bool isRemoteIsSet() const;
|
|
void unsetIs_remote();
|
|
void setIsRemote(const utility::string_t& value);
|
|
|
|
utility::string_t getKindString() const;
|
|
bool kindStringIsSet() const;
|
|
void unsetKind_string();
|
|
void setKindString(const utility::string_t& value);
|
|
|
|
int32_t getLevel() const;
|
|
bool levelIsSet() const;
|
|
void unsetLevel();
|
|
void setLevel(int32_t value);
|
|
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
utility::string_t getParentSpanId() const;
|
|
bool parentSpanIdIsSet() const;
|
|
void unsetParent_span_id();
|
|
void setParentSpanId(const utility::string_t& value);
|
|
|
|
std::vector<std::shared_ptr<O11y_OtelSpanRef>> getReferences() const;
|
|
bool referencesIsSet() const;
|
|
void unsetReferences();
|
|
void setReferences(const std::vector<std::shared_ptr<O11y_OtelSpanRef>>& value);
|
|
|
|
std::map<utility::string_t, utility::string_t> getResource() const;
|
|
bool resourceIsSet() const;
|
|
void unsetResource();
|
|
void setResource(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
utility::string_t getResponseStatusCode() const;
|
|
bool responseStatusCodeIsSet() const;
|
|
void unsetResponse_status_code();
|
|
void setResponseStatusCode(const utility::string_t& value);
|
|
|
|
utility::string_t getSpanId() const;
|
|
bool spanIdIsSet() const;
|
|
void unsetSpan_id();
|
|
void setSpanId(const utility::string_t& value);
|
|
|
|
int32_t getStatusCode() const;
|
|
bool statusCodeIsSet() const;
|
|
void unsetStatus_code();
|
|
void setStatusCode(int32_t value);
|
|
|
|
utility::string_t getStatusCodeString() const;
|
|
bool statusCodeStringIsSet() const;
|
|
void unsetStatus_code_string();
|
|
void setStatusCodeString(const utility::string_t& value);
|
|
|
|
utility::string_t getStatusMessage() const;
|
|
bool statusMessageIsSet() const;
|
|
void unsetStatus_message();
|
|
void setStatusMessage(const utility::string_t& value);
|
|
|
|
int32_t getSubTreeNodeCount() const;
|
|
bool subTreeNodeCountIsSet() const;
|
|
void unsetSub_tree_node_count();
|
|
void setSubTreeNodeCount(int32_t value);
|
|
|
|
int32_t getTimeUnix() const;
|
|
bool timeUnixIsSet() const;
|
|
void unsetTime_unix();
|
|
void setTimeUnix(int32_t value);
|
|
|
|
utility::string_t getTraceId() const;
|
|
bool traceIdIsSet() const;
|
|
void unsetTrace_id();
|
|
void setTraceId(const utility::string_t& value);
|
|
|
|
utility::string_t getTraceState() const;
|
|
bool traceStateIsSet() const;
|
|
void unsetTrace_state();
|
|
void setTraceState(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::map<utility::string_t, std::shared_ptr<Object>> m_Attributes;
|
|
bool m_AttributesIsSet;
|
|
|
|
utility::string_t m_Db_name;
|
|
bool m_Db_nameIsSet;
|
|
|
|
utility::string_t m_Db_operation;
|
|
bool m_Db_operationIsSet;
|
|
|
|
int32_t m_Duration_nano;
|
|
bool m_Duration_nanoIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_Event>> m_Events;
|
|
bool m_EventsIsSet;
|
|
|
|
utility::string_t m_External_http_method;
|
|
bool m_External_http_methodIsSet;
|
|
|
|
utility::string_t m_External_http_url;
|
|
bool m_External_http_urlIsSet;
|
|
|
|
int32_t m_Flags;
|
|
bool m_FlagsIsSet;
|
|
|
|
bool m_Has_children;
|
|
bool m_Has_childrenIsSet;
|
|
|
|
bool m_Has_error;
|
|
bool m_Has_errorIsSet;
|
|
|
|
utility::string_t m_Http_host;
|
|
bool m_Http_hostIsSet;
|
|
|
|
utility::string_t m_Http_method;
|
|
bool m_Http_methodIsSet;
|
|
|
|
utility::string_t m_Http_url;
|
|
bool m_Http_urlIsSet;
|
|
|
|
utility::string_t m_Is_remote;
|
|
bool m_Is_remoteIsSet;
|
|
|
|
utility::string_t m_Kind_string;
|
|
bool m_Kind_stringIsSet;
|
|
|
|
int32_t m_Level;
|
|
bool m_LevelIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Parent_span_id;
|
|
bool m_Parent_span_idIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_OtelSpanRef>> m_References;
|
|
bool m_ReferencesIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Resource;
|
|
bool m_ResourceIsSet;
|
|
|
|
utility::string_t m_Response_status_code;
|
|
bool m_Response_status_codeIsSet;
|
|
|
|
utility::string_t m_Span_id;
|
|
bool m_Span_idIsSet;
|
|
|
|
int32_t m_Status_code;
|
|
bool m_Status_codeIsSet;
|
|
|
|
utility::string_t m_Status_code_string;
|
|
bool m_Status_code_stringIsSet;
|
|
|
|
utility::string_t m_Status_message;
|
|
bool m_Status_messageIsSet;
|
|
|
|
int32_t m_Sub_tree_node_count;
|
|
bool m_Sub_tree_node_countIsSet;
|
|
|
|
int32_t m_Time_unix;
|
|
bool m_Time_unixIsSet;
|
|
|
|
utility::string_t m_Trace_id;
|
|
bool m_Trace_idIsSet;
|
|
|
|
utility::string_t m_Trace_state;
|
|
bool m_Trace_stateIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_WaterfallSpan_H_ */
|