Files
sdk/include/hanzo/model/O11y_O11yLogRecord.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

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&#39;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&#39;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&#39;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&#39;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&#39;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&#39;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&#39;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&#39;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&#39;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&#39;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&#39;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_ */