blob: 7c23e50388b05fbe66ff464c44d9af1a4fd0882c [file] [log] [blame]
// This file was generated by Cobalt's Registry parser based on the registry YAML
// in the cobalt_config repository. Edit the YAML there to make changes.
#ifndef COBALT_REGISTRY_THE_CUSTOMER_THE_PROJECT_GEN_
#define COBALT_REGISTRY_THE_CUSTOMER_THE_PROJECT_GEN_
#include <stdint.h>
#include <vector>
inline constexpr char kCustomerName[] = "the_customer";
inline constexpr uint32_t kCustomerId = 10;
inline constexpr char kProjectName[] = "the_project";
inline constexpr uint32_t kProjectId = 5;
// Linear bucket constants for linear buckets
inline constexpr int64_t kLinearBucketsIntBucketsFloor = 0;
inline constexpr uint32_t kLinearBucketsIntBucketsNumBuckets = 140;
inline constexpr uint32_t kLinearBucketsIntBucketsStepSize = 5;
// Exponential bucket constants for exponential buckets report
inline constexpr int64_t kExponentialBucketsReportIntBucketsFloor = 0;
inline constexpr uint32_t kExponentialBucketsReportIntBucketsNumBuckets = 3;
inline constexpr uint32_t kExponentialBucketsReportIntBucketsInitialStep = 2;
inline constexpr uint32_t kExponentialBucketsReportIntBucketsStepMultiplier = 2;
// Metric ID Constants
// the_metric_name
inline constexpr uint32_t kTheMetricNameMetricId = 100;
// the_other_metric_name
inline constexpr uint32_t kTheOtherMetricNameMetricId = 200;
// event groups
inline constexpr uint32_t kEventGroupsMetricId = 300;
// linear buckets
inline constexpr uint32_t kLinearBucketsMetricId = 400;
// exponential buckets
inline constexpr uint32_t kExponentialBucketsMetricId = 500;
// metric
inline constexpr uint32_t kMetricMetricId = 600;
// second metric
inline constexpr uint32_t kSecondMetricMetricId = 601;
// Index into the list of Metrics. Used to look up Metrics in the registry proto directly.
inline constexpr uint32_t kTheMetricNameMetricIndex = 0;
inline constexpr uint32_t kTheOtherMetricNameMetricIndex = 1;
inline constexpr uint32_t kEventGroupsMetricIndex = 2;
inline constexpr uint32_t kLinearBucketsMetricIndex = 3;
inline constexpr uint32_t kExponentialBucketsMetricIndex = 4;
inline constexpr uint32_t kMetricMetricIndex = 5;
inline constexpr uint32_t kSecondMetricMetricIndex = 6;
// Report ID Constants
// the_metric_name the_report
inline constexpr uint32_t kTheMetricNameTheReportReportId = 10;
// the_metric_name the_other_report
inline constexpr uint32_t kTheMetricNameTheOtherReportReportId = 20;
// Index into the list of Reports. Used to look up Reports in the registry proto directly.
inline constexpr uint32_t kTheMetricNameTheReportReportIndex = 0;
inline constexpr uint32_t kTheMetricNameTheOtherReportReportIndex = 1;
// Report ID Constants
// the_other_metric_name the_report
inline constexpr uint32_t kTheOtherMetricNameTheReportReportId = 10;
// Index into the list of Reports. Used to look up Reports in the registry proto directly.
inline constexpr uint32_t kTheOtherMetricNameTheReportReportIndex = 0;
// Report ID Constants
// event groups the_report
inline constexpr uint32_t kEventGroupsTheReportReportId = 30;
// Index into the list of Reports. Used to look up Reports in the registry proto directly.
inline constexpr uint32_t kEventGroupsTheReportReportIndex = 0;
// Report ID Constants
// exponential buckets report
inline constexpr uint32_t kExponentialBucketsReportReportId = 40;
// Index into the list of Reports. Used to look up Reports in the registry proto directly.
inline constexpr uint32_t kExponentialBucketsReportReportIndex = 0;
// Enum for the_other_metric_name (Metric Dimension 0)
namespace __the_other_metric_name_metric_dimension_0_internal_scope_do_not_use__ {
enum Enum {
AnEvent = 0,
AnotherEvent = 1,
AThirdEvent = 2,
};
} // __the_other_metric_name_metric_dimension_0_internal_scope_do_not_use__
using TheOtherMetricNameMetricDimension0 = __the_other_metric_name_metric_dimension_0_internal_scope_do_not_use__::Enum;
inline constexpr TheOtherMetricNameMetricDimension0 TheOtherMetricNameMetricDimension0_AnEvent = TheOtherMetricNameMetricDimension0::AnEvent;
inline constexpr TheOtherMetricNameMetricDimension0 TheOtherMetricNameMetricDimension0_AnotherEvent = TheOtherMetricNameMetricDimension0::AnotherEvent;
inline constexpr TheOtherMetricNameMetricDimension0 TheOtherMetricNameMetricDimension0_AThirdEvent = TheOtherMetricNameMetricDimension0::AThirdEvent;
// Alias for event groups (Metric Dimension The First Group) which has the same event codes
using EventGroupsMetricDimensionTheFirstGroup = TheOtherMetricNameMetricDimension0;
inline constexpr EventGroupsMetricDimensionTheFirstGroup EventGroupsMetricDimensionTheFirstGroup_AnEvent = EventGroupsMetricDimensionTheFirstGroup::AnEvent;
inline constexpr EventGroupsMetricDimensionTheFirstGroup EventGroupsMetricDimensionTheFirstGroup_AnotherEvent = EventGroupsMetricDimensionTheFirstGroup::AnotherEvent;
inline constexpr EventGroupsMetricDimensionTheFirstGroup EventGroupsMetricDimensionTheFirstGroup_AThirdEvent = EventGroupsMetricDimensionTheFirstGroup::AThirdEvent;
// Enum for the_project (Metric Dimension A second group)
namespace __the_project_metric_dimension_a_second_group_internal_scope_do_not_use__ {
enum Enum {
This = 1,
Is = 2,
Another = 3,
Test = 4,
};
} // __the_project_metric_dimension_a_second_group_internal_scope_do_not_use__
using TheProjectMetricDimensionASecondGroup = __the_project_metric_dimension_a_second_group_internal_scope_do_not_use__::Enum;
// Alias for event groups (Metric Dimension A second group) which has the same event codes
using EventGroupsMetricDimensionASecondGroup = TheProjectMetricDimensionASecondGroup;
inline constexpr EventGroupsMetricDimensionASecondGroup EventGroupsMetricDimensionASecondGroup_This = EventGroupsMetricDimensionASecondGroup::This;
inline constexpr EventGroupsMetricDimensionASecondGroup EventGroupsMetricDimensionASecondGroup_Is = EventGroupsMetricDimensionASecondGroup::Is;
inline constexpr EventGroupsMetricDimensionASecondGroup EventGroupsMetricDimensionASecondGroup_Another = EventGroupsMetricDimensionASecondGroup::Another;
inline constexpr EventGroupsMetricDimensionASecondGroup EventGroupsMetricDimensionASecondGroup_Test = EventGroupsMetricDimensionASecondGroup::Test;
// Enum for the_project (Metric Dimension 2)
namespace __the_project_metric_dimension_2_internal_scope_do_not_use__ {
enum Enum {
ThisMetric = 0,
HasNo = 2,
Name = 4,
Alias = HasNo,
};
} // __the_project_metric_dimension_2_internal_scope_do_not_use__
using TheProjectMetricDimension2 = __the_project_metric_dimension_2_internal_scope_do_not_use__::Enum;
// Alias for event groups (Metric Dimension 2) which has the same event codes
using EventGroupsMetricDimension2 = TheProjectMetricDimension2;
inline constexpr EventGroupsMetricDimension2 EventGroupsMetricDimension2_ThisMetric = EventGroupsMetricDimension2::ThisMetric;
inline constexpr EventGroupsMetricDimension2 EventGroupsMetricDimension2_HasNo = EventGroupsMetricDimension2::HasNo;
inline constexpr EventGroupsMetricDimension2 EventGroupsMetricDimension2_Name = EventGroupsMetricDimension2::Name;
inline constexpr EventGroupsMetricDimension2 EventGroupsMetricDimension2_Alias = EventGroupsMetricDimension2::Alias;
// Enum for the_project (Metric Dimension First)
namespace __the_project_metric_dimension_first_internal_scope_do_not_use__ {
enum Enum {
A = 1,
Set = 2,
OfEvent = 3,
Codes = 4,
};
} // __the_project_metric_dimension_first_internal_scope_do_not_use__
using TheProjectMetricDimensionFirst = __the_project_metric_dimension_first_internal_scope_do_not_use__::Enum;
// Alias for metric (Metric Dimension First) which has the same event codes
using MetricMetricDimensionFirst = TheProjectMetricDimensionFirst;
inline constexpr MetricMetricDimensionFirst MetricMetricDimensionFirst_A = MetricMetricDimensionFirst::A;
inline constexpr MetricMetricDimensionFirst MetricMetricDimensionFirst_Set = MetricMetricDimensionFirst::Set;
inline constexpr MetricMetricDimensionFirst MetricMetricDimensionFirst_OfEvent = MetricMetricDimensionFirst::OfEvent;
inline constexpr MetricMetricDimensionFirst MetricMetricDimensionFirst_Codes = MetricMetricDimensionFirst::Codes;
// Alias for second metric (Metric Dimension First) which has the same event codes
using SecondMetricMetricDimensionFirst = TheProjectMetricDimensionFirst;
inline constexpr SecondMetricMetricDimensionFirst SecondMetricMetricDimensionFirst_A = SecondMetricMetricDimensionFirst::A;
inline constexpr SecondMetricMetricDimensionFirst SecondMetricMetricDimensionFirst_Set = SecondMetricMetricDimensionFirst::Set;
inline constexpr SecondMetricMetricDimensionFirst SecondMetricMetricDimensionFirst_OfEvent = SecondMetricMetricDimensionFirst::OfEvent;
inline constexpr SecondMetricMetricDimensionFirst SecondMetricMetricDimensionFirst_Codes = SecondMetricMetricDimensionFirst::Codes;
// Enum for the_project (Metric Dimension Second)
namespace __the_project_metric_dimension_second_internal_scope_do_not_use__ {
enum Enum {
Some = 0,
More = 4,
Event = 8,
Codes = 16,
};
} // __the_project_metric_dimension_second_internal_scope_do_not_use__
using TheProjectMetricDimensionSecond = __the_project_metric_dimension_second_internal_scope_do_not_use__::Enum;
// Alias for metric (Metric Dimension Second) which has the same event codes
using MetricMetricDimensionSecond = TheProjectMetricDimensionSecond;
inline constexpr MetricMetricDimensionSecond MetricMetricDimensionSecond_Some = MetricMetricDimensionSecond::Some;
inline constexpr MetricMetricDimensionSecond MetricMetricDimensionSecond_More = MetricMetricDimensionSecond::More;
inline constexpr MetricMetricDimensionSecond MetricMetricDimensionSecond_Event = MetricMetricDimensionSecond::Event;
inline constexpr MetricMetricDimensionSecond MetricMetricDimensionSecond_Codes = MetricMetricDimensionSecond::Codes;
// Alias for second metric (Metric Dimension Second) which has the same event codes
using SecondMetricMetricDimensionSecond = TheProjectMetricDimensionSecond;
inline constexpr SecondMetricMetricDimensionSecond SecondMetricMetricDimensionSecond_Some = SecondMetricMetricDimensionSecond::Some;
inline constexpr SecondMetricMetricDimensionSecond SecondMetricMetricDimensionSecond_More = SecondMetricMetricDimensionSecond::More;
inline constexpr SecondMetricMetricDimensionSecond SecondMetricMetricDimensionSecond_Event = SecondMetricMetricDimensionSecond::Event;
inline constexpr SecondMetricMetricDimensionSecond SecondMetricMetricDimensionSecond_Codes = SecondMetricMetricDimensionSecond::Codes;
struct EventGroupsEventCodes {
EventGroupsMetricDimensionTheFirstGroup the_first_group;
EventGroupsMetricDimensionASecondGroup a_second_group;
EventGroupsMetricDimension2 dimension_2;
[[nodiscard]] std::vector<uint32_t> ToVector() const {
return {
the_first_group,
a_second_group,
dimension_2,
};
}
};
struct MetricEventCodes {
MetricMetricDimensionFirst first;
MetricMetricDimensionSecond second;
[[nodiscard]] std::vector<uint32_t> ToVector() const {
return {
first,
second,
};
}
};
struct SecondMetricEventCodes {
SecondMetricMetricDimensionFirst first;
SecondMetricMetricDimensionSecond second;
[[nodiscard]] std::vector<uint32_t> ToVector() const {
return {
first,
second,
};
}
};
#endif // COBALT_REGISTRY_THE_CUSTOMER_THE_PROJECT_GEN_