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.
149 lines
3.7 KiB
C++
149 lines
3.7 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_FlamegraphSpan.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_FlamegraphSpan_H_
|
|
#define HANZO_MODEL_O11y_FlamegraphSpan_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.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_FlamegraphSpan
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_FlamegraphSpan();
|
|
virtual ~O11y_FlamegraphSpan();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_FlamegraphSpan 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);
|
|
|
|
int32_t getDurationNano() const;
|
|
bool durationNanoIsSet() const;
|
|
void unsetDurationNano();
|
|
void setDurationNano(int32_t value);
|
|
|
|
std::vector<std::shared_ptr<O11y_Event>> getEvent() const;
|
|
bool eventIsSet() const;
|
|
void unsetEvent();
|
|
void setEvent(const std::vector<std::shared_ptr<O11y_Event>>& value);
|
|
|
|
bool isHasError() const;
|
|
bool hasErrorIsSet() const;
|
|
void unsetHasError();
|
|
void setHasError(bool value);
|
|
|
|
int64_t getLevel() const;
|
|
bool levelIsSet() const;
|
|
void unsetLevel();
|
|
void setLevel(int64_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 unsetParentSpanId();
|
|
void setParentSpanId(const utility::string_t& 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 getSpanId() const;
|
|
bool spanIdIsSet() const;
|
|
void unsetSpanId();
|
|
void setSpanId(const utility::string_t& value);
|
|
|
|
int32_t getTimestamp() const;
|
|
bool timestampIsSet() const;
|
|
void unsetTimestamp();
|
|
void setTimestamp(int32_t value);
|
|
|
|
|
|
protected:
|
|
std::map<utility::string_t, std::shared_ptr<Object>> m_Attributes;
|
|
bool m_AttributesIsSet;
|
|
|
|
int32_t m_DurationNano;
|
|
bool m_DurationNanoIsSet;
|
|
|
|
std::vector<std::shared_ptr<O11y_Event>> m_Event;
|
|
bool m_EventIsSet;
|
|
|
|
bool m_HasError;
|
|
bool m_HasErrorIsSet;
|
|
|
|
int64_t m_Level;
|
|
bool m_LevelIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_ParentSpanId;
|
|
bool m_ParentSpanIdIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Resource;
|
|
bool m_ResourceIsSet;
|
|
|
|
utility::string_t m_SpanId;
|
|
bool m_SpanIdIsSet;
|
|
|
|
int32_t m_Timestamp;
|
|
bool m_TimestampIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_FlamegraphSpan_H_ */
|