Files
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

343 lines
9.0 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_O11yEvent.h
*
*
*/
#ifndef HANZO_MODEL_O11y_O11yEvent_H_
#define HANZO_MODEL_O11y_O11yEvent_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/O11y_O11yFrame.h"
#include <cpprest/details/basic_types.h>
#include <map>
#include <vector>
namespace hanzo {
namespace model {
class O11y_O11yFrame;
class O11y_O11yEvent
: public ModelBase
{
public:
O11y_O11yEvent();
virtual ~O11y_O11yEvent();
/////////////////////////////////////////////
/// 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_O11yEvent members
/// <summary>
/// Culprit is where it came from — the function or route blamed for it.
/// </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 its own 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 that puts like errors in one issue.
/// </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_O11yFrame>> getFrames() const;
bool framesIsSet() const;
void unsetFrames();
void setFrames(const std::vector<std::shared_ptr<O11y_O11yFrame>>& value);
/// <summary>
/// Handled says whether the application caught it.
/// </summary>
bool isHandled() const;
bool handledIsSet() const;
void unsetHandled();
void setHandled(bool 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>
/// Message is the human-readable message.
/// </summary>
utility::string_t getMessage() const;
bool messageIsSet() const;
void unsetMessage();
void setMessage(const utility::string_t& value);
/// <summary>
/// OrgID is the org that owns it.
/// </summary>
utility::string_t getOrgId() const;
bool orgIdIsSet() const;
void unsetOrgId();
void setOrgId(const utility::string_t& value);
/// <summary>
/// Platform is the reporting runtime, e.g. go, python, javascript.
/// </summary>
utility::string_t getPlatform() const;
bool platformIsSet() const;
void unsetPlatform();
void setPlatform(const utility::string_t& value);
/// <summary>
/// ProjectID is the project it was captured for.
/// </summary>
utility::string_t getProjectId() const;
bool projectIdIsSet() const;
void unsetProjectId();
void setProjectId(const utility::string_t& value);
/// <summary>
/// ReceivedAt is when it arrived here.
/// </summary>
utility::datetime getReceivedAt() const;
bool receivedAtIsSet() const;
void unsetReceivedAt();
void setReceivedAt(const utility::datetime& 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, as the reporter recorded it.
/// </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>
/// UserEmail is that user&#39;s email, when attached.
/// </summary>
utility::string_t getUserEmail() const;
bool userEmailIsSet() const;
void unsetUserEmail();
void setUserEmail(const utility::string_t& value);
/// <summary>
/// UserID identifies the affected end user, when the reporter attached one.
/// </summary>
utility::string_t getUserId() const;
bool userIdIsSet() const;
void unsetUserId();
void setUserId(const utility::string_t& value);
/// <summary>
/// UserIP is that user&#39;s address, when attached.
/// </summary>
utility::string_t getUserIp() const;
bool userIpIsSet() const;
void unsetUserIp();
void setUserIp(const utility::string_t& 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_O11yFrame>> m_Frames;
bool m_FramesIsSet;
bool m_Handled;
bool m_HandledIsSet;
utility::string_t m_Level;
bool m_LevelIsSet;
utility::string_t m_Message;
bool m_MessageIsSet;
utility::string_t m_OrgId;
bool m_OrgIdIsSet;
utility::string_t m_Platform;
bool m_PlatformIsSet;
utility::string_t m_ProjectId;
bool m_ProjectIdIsSet;
utility::datetime m_ReceivedAt;
bool m_ReceivedAtIsSet;
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;
utility::string_t m_UserEmail;
bool m_UserEmailIsSet;
utility::string_t m_UserId;
bool m_UserIdIsSet;
utility::string_t m_UserIp;
bool m_UserIpIsSet;
utility::string_t m_Value;
bool m_ValueIsSet;
};
}
}
#endif /* HANZO_MODEL_O11y_O11yEvent_H_ */