Files
sdk/include/hanzo/model/O11y_O11yOccurrence.h
zeekay 645325a641 regenerate from cloud 939b09d4
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.
2026-08-24 23:32:53 -07:00

268 lines
7.1 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_O11yOccurrence.h
*
*
*/
#ifndef HANZO_MODEL_O11y_O11yOccurrence_H_
#define HANZO_MODEL_O11y_O11yOccurrence_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/O11y_O11yOccurrenceFrame.h"
#include <cpprest/details/basic_types.h>
#include <map>
#include <vector>
#include "hanzo/model/O11y_O11yEventUser.h"
namespace hanzo {
namespace model {
class O11y_O11yOccurrenceFrame;
class O11y_O11yEventUser;
class O11y_O11yOccurrence
: public ModelBase
{
public:
O11y_O11yOccurrence();
virtual ~O11y_O11yOccurrence();
/////////////////////////////////////////////
/// 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_O11yOccurrence members
/// <summary>
/// Culprit is where it came from.
/// </summary>
utility::string_t getCulprit() const;
bool culpritIsSet() const;
void unsetCulprit();
void setCulprit(const utility::string_t& value);
/// <summary>
/// Environment is the deployment it happened in.
/// </summary>
utility::string_t getEnvironment() const;
bool environmentIsSet() const;
void unsetEnvironment();
void setEnvironment(const utility::string_t& value);
/// <summary>
/// EventID is the occurrence&#39;s id.
/// </summary>
utility::string_t getEventId() const;
bool eventIdIsSet() const;
void unsetEventId();
void setEventId(const utility::string_t& value);
/// <summary>
/// Fingerprint is the grouping key it was bucketed by.
/// </summary>
utility::string_t getFingerprint() const;
bool fingerprintIsSet() const;
void unsetFingerprint();
void setFingerprint(const utility::string_t& value);
/// <summary>
/// Frames are the stack, innermost first.
/// </summary>
std::vector<std::shared_ptr<O11y_O11yOccurrenceFrame>> getFrames() const;
bool framesIsSet() const;
void unsetFrames();
void setFrames(const std::vector<std::shared_ptr<O11y_O11yOccurrenceFrame>>& value);
/// <summary>
/// Level is its severity, e.g. error, warning, info.
/// </summary>
utility::string_t getLevel() const;
bool levelIsSet() const;
void unsetLevel();
void setLevel(const utility::string_t& value);
/// <summary>
/// Platform is the reporting runtime.
/// </summary>
utility::string_t getPlatform() const;
bool platformIsSet() const;
void unsetPlatform();
void setPlatform(const utility::string_t& value);
/// <summary>
/// Release is the version that produced it.
/// </summary>
utility::string_t getRelease() const;
bool releaseIsSet() const;
void unsetRelease();
void setRelease(const utility::string_t& value);
/// <summary>
/// ServerName is the host that reported it.
/// </summary>
utility::string_t getServerName() const;
bool serverNameIsSet() const;
void unsetServerName();
void setServerName(const utility::string_t& value);
/// <summary>
/// ServiceName is the service that reported it.
/// </summary>
utility::string_t getServiceName() const;
bool serviceNameIsSet() const;
void unsetServiceName();
void setServiceName(const utility::string_t& value);
/// <summary>
/// SpanID is the span it belonged to.
/// </summary>
utility::string_t getSpanId() const;
bool spanIdIsSet() const;
void unsetSpanId();
void setSpanId(const utility::string_t& value);
/// <summary>
/// Tags are the reporter&#39;s own key/value labels.
/// </summary>
std::map<utility::string_t, utility::string_t> getTags() const;
bool tagsIsSet() const;
void unsetTags();
void setTags(const std::map<utility::string_t, utility::string_t>& value);
/// <summary>
/// Timestamp is when the error happened.
/// </summary>
utility::datetime getTimestamp() const;
bool timestampIsSet() const;
void unsetTimestamp();
void setTimestamp(const utility::datetime& value);
/// <summary>
/// TraceID is the trace it belonged to.
/// </summary>
utility::string_t getTraceId() const;
bool traceIdIsSet() const;
void unsetTraceId();
void setTraceId(const utility::string_t& value);
/// <summary>
/// Transaction is the operation it happened in.
/// </summary>
utility::string_t getTransaction() const;
bool transactionIsSet() const;
void unsetTransaction();
void setTransaction(const utility::string_t& value);
/// <summary>
/// Type is the exception type.
/// </summary>
utility::string_t getType() const;
bool typeIsSet() const;
void unsetType();
void setType(const utility::string_t& value);
/// <summary>
/// User is the affected end-user context, when the reporter attached one.
/// </summary>
std::shared_ptr<O11y_O11yEventUser> getUser() const;
bool userIsSet() const;
void unsetUser();
void setUser(const std::shared_ptr<O11y_O11yEventUser>& value);
/// <summary>
/// Value is the exception value.
/// </summary>
utility::string_t getValue() const;
bool valueIsSet() const;
void unsetValue();
void setValue(const utility::string_t& value);
protected:
utility::string_t m_Culprit;
bool m_CulpritIsSet;
utility::string_t m_Environment;
bool m_EnvironmentIsSet;
utility::string_t m_EventId;
bool m_EventIdIsSet;
utility::string_t m_Fingerprint;
bool m_FingerprintIsSet;
std::vector<std::shared_ptr<O11y_O11yOccurrenceFrame>> m_Frames;
bool m_FramesIsSet;
utility::string_t m_Level;
bool m_LevelIsSet;
utility::string_t m_Platform;
bool m_PlatformIsSet;
utility::string_t m_Release;
bool m_ReleaseIsSet;
utility::string_t m_ServerName;
bool m_ServerNameIsSet;
utility::string_t m_ServiceName;
bool m_ServiceNameIsSet;
utility::string_t m_SpanId;
bool m_SpanIdIsSet;
std::map<utility::string_t, utility::string_t> m_Tags;
bool m_TagsIsSet;
utility::datetime m_Timestamp;
bool m_TimestampIsSet;
utility::string_t m_TraceId;
bool m_TraceIdIsSet;
utility::string_t m_Transaction;
bool m_TransactionIsSet;
utility::string_t m_Type;
bool m_TypeIsSet;
std::shared_ptr<O11y_O11yEventUser> m_User;
bool m_UserIsSet;
utility::string_t m_Value;
bool m_ValueIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_O11yOccurrence_H_ */