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.
208 lines
5.8 KiB
C++
208 lines
5.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.
|
|
*/
|
|
|
|
/*
|
|
* O11y_O11yLogRecord.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_O11y_O11yLogRecord_H_
|
|
#define HANZO_MODEL_O11y_O11yLogRecord_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class O11y_O11yLogRecord
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
O11y_O11yLogRecord();
|
|
virtual ~O11y_O11yLogRecord();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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_O11yLogRecord members
|
|
|
|
|
|
/// <summary>
|
|
/// AttributesBool are the record's boolean attributes.
|
|
/// </summary>
|
|
std::map<utility::string_t, bool> getAttributesBool() const;
|
|
bool attributesBoolIsSet() const;
|
|
void unsetAttributes_bool();
|
|
void setAttributesBool(std::map<utility::string_t, bool> value);
|
|
|
|
/// <summary>
|
|
/// AttributesFloat are the record's float attributes.
|
|
/// </summary>
|
|
std::map<utility::string_t, double> getAttributesFloat() const;
|
|
bool attributesFloatIsSet() const;
|
|
void unsetAttributes_float();
|
|
void setAttributesFloat(std::map<utility::string_t, double> value);
|
|
|
|
/// <summary>
|
|
/// AttributesInt are the record's integer attributes.
|
|
/// </summary>
|
|
std::map<utility::string_t, int64_t> getAttributesInt() const;
|
|
bool attributesIntIsSet() const;
|
|
void unsetAttributes_int();
|
|
void setAttributesInt(std::map<utility::string_t, int64_t> value);
|
|
|
|
/// <summary>
|
|
/// AttributesString are the record's string attributes.
|
|
/// </summary>
|
|
std::map<utility::string_t, utility::string_t> getAttributesString() const;
|
|
bool attributesStringIsSet() const;
|
|
void unsetAttributes_string();
|
|
void setAttributesString(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Body is the record's body.
|
|
/// </summary>
|
|
utility::string_t getBody() const;
|
|
bool bodyIsSet() const;
|
|
void unsetBody();
|
|
void setBody(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID is the record's id.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ResourcesString are the record's string resource attributes.
|
|
/// </summary>
|
|
std::map<utility::string_t, utility::string_t> getResourcesString() const;
|
|
bool resourcesStringIsSet() const;
|
|
void unsetResources_string();
|
|
void setResourcesString(const std::map<utility::string_t, utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// SeverityNumber is the record's severity as a number.
|
|
/// </summary>
|
|
int32_t getSeverityNumber() const;
|
|
bool severityNumberIsSet() const;
|
|
void unsetSeverity_number();
|
|
void setSeverityNumber(int32_t value);
|
|
|
|
/// <summary>
|
|
/// SeverityText is the record's severity as text, e.g. ERROR.
|
|
/// </summary>
|
|
utility::string_t getSeverityText() const;
|
|
bool severityTextIsSet() const;
|
|
void unsetSeverity_text();
|
|
void setSeverityText(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// SpanID is the span the record belongs to.
|
|
/// </summary>
|
|
utility::string_t getSpanId() const;
|
|
bool spanIdIsSet() const;
|
|
void unsetSpan_id();
|
|
void setSpanId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Timestamp is the record's time as a nanosecond epoch.
|
|
/// </summary>
|
|
int32_t getTimestamp() const;
|
|
bool timestampIsSet() const;
|
|
void unsetTimestamp();
|
|
void setTimestamp(int32_t value);
|
|
|
|
/// <summary>
|
|
/// TraceFlags are the record's trace flags.
|
|
/// </summary>
|
|
int32_t getTraceFlags() const;
|
|
bool traceFlagsIsSet() const;
|
|
void unsetTrace_flags();
|
|
void setTraceFlags(int32_t value);
|
|
|
|
/// <summary>
|
|
/// TraceID is the trace the record belongs to.
|
|
/// </summary>
|
|
utility::string_t getTraceId() const;
|
|
bool traceIdIsSet() const;
|
|
void unsetTrace_id();
|
|
void setTraceId(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::map<utility::string_t, bool> m_Attributes_bool;
|
|
bool m_Attributes_boolIsSet;
|
|
|
|
std::map<utility::string_t, double> m_Attributes_float;
|
|
bool m_Attributes_floatIsSet;
|
|
|
|
std::map<utility::string_t, int64_t> m_Attributes_int;
|
|
bool m_Attributes_intIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Attributes_string;
|
|
bool m_Attributes_stringIsSet;
|
|
|
|
utility::string_t m_Body;
|
|
bool m_BodyIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
std::map<utility::string_t, utility::string_t> m_Resources_string;
|
|
bool m_Resources_stringIsSet;
|
|
|
|
int32_t m_Severity_number;
|
|
bool m_Severity_numberIsSet;
|
|
|
|
utility::string_t m_Severity_text;
|
|
bool m_Severity_textIsSet;
|
|
|
|
utility::string_t m_Span_id;
|
|
bool m_Span_idIsSet;
|
|
|
|
int32_t m_Timestamp;
|
|
bool m_TimestampIsSet;
|
|
|
|
int32_t m_Trace_flags;
|
|
bool m_Trace_flagsIsSet;
|
|
|
|
utility::string_t m_Trace_id;
|
|
bool m_Trace_idIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_O11y_O11yLogRecord_H_ */
|