blob: 0da86b9051f7701dd4c9c7b914cf2fdd191ab722 [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.
package package
const CustomerName string = "the_customer";
const CustomerId uint32 = 10;
const ProjectName string = "the_project";
const ProjectId uint32 = 5;
// Linear bucket constants for linear buckets
const LinearBucketsIntBucketsFloor int64 = 0;
const LinearBucketsIntBucketsNumBuckets uint32 = 140;
const LinearBucketsIntBucketsStepSize uint32 = 5;
// Exponential bucket constants for exponential buckets report
const ExponentialBucketsReportIntBucketsFloor int64 = 0;
const ExponentialBucketsReportIntBucketsNumBuckets uint32 = 3;
const ExponentialBucketsReportIntBucketsInitialStep uint32 = 2;
const ExponentialBucketsReportIntBucketsStepMultiplier uint32 = 2;
// Metric ID Constants
// the_metric_name
const TheMetricNameMetricId uint32 = 100;
// the_other_metric_name
const TheOtherMetricNameMetricId uint32 = 200;
// event groups
const EventGroupsMetricId uint32 = 300;
// linear buckets
const LinearBucketsMetricId uint32 = 400;
// exponential buckets
const ExponentialBucketsMetricId uint32 = 500;
// metric
const MetricMetricId uint32 = 600;
// second metric
const SecondMetricMetricId uint32 = 601;
// String map for the_other_metric_name (Metric Dimension 0)
var TheOtherMetricNameMetricDimension0NameMap = map[string]uint32{
"AnEvent": 0,
"AnotherEvent": 1,
"A third event": 2,
}
// Enum for the_other_metric_name (Metric Dimension 0)
type TheOtherMetricNameMetricDimension0 uint32
const (
_ TheOtherMetricNameMetricDimension0 = iota
TheOtherMetricNameMetricDimension0_AnEvent = 0
TheOtherMetricNameMetricDimension0_AnotherEvent = 1
TheOtherMetricNameMetricDimension0_AThirdEvent = 2
)
// Alias for event groups (Metric Dimension The First Group) which has the same event codes
type EventGroupsMetricDimensionTheFirstGroup = TheOtherMetricNameMetricDimension0
// String map for event groups (Metric Dimension The First Group)
var EventGroupsMetricDimensionTheFirstGroupNameMap = map[string]uint32{
"AnEvent": 0,
"AnotherEvent": 1,
"A third event": 2,
}
// String map for the_project (Metric Dimension A second group)
var EventGroupsMetricDimensionASecondGroupNameMap = map[string]uint32{
"This": 1,
"Is": 2,
"another": 3,
"Test": 4,
}
// Enum for the_project (Metric Dimension A second group)
type TheProjectMetricDimensionASecondGroup uint32
const (
_ TheProjectMetricDimensionASecondGroup = iota
TheProjectMetricDimensionASecondGroup_This = 1
TheProjectMetricDimensionASecondGroup_Is = 2
TheProjectMetricDimensionASecondGroup_Another = 3
TheProjectMetricDimensionASecondGroup_Test = 4
)
// Alias for event groups (Metric Dimension A second group) which has the same event codes
type EventGroupsMetricDimensionASecondGroup = TheProjectMetricDimensionASecondGroup
// String map for the_project (Metric Dimension 2)
var EventGroupsMetricDimension2NameMap = map[string]uint32{
"ThisMetric": 0,
"HasNo": 2,
"Name": 4,
}
// Enum for the_project (Metric Dimension 2)
type TheProjectMetricDimension2 uint32
const (
_ TheProjectMetricDimension2 = iota
TheProjectMetricDimension2_ThisMetric = 0
TheProjectMetricDimension2_HasNo = 2
TheProjectMetricDimension2_Name = 4
)
// Alias for event groups (Metric Dimension 2) which has the same event codes
type EventGroupsMetricDimension2 = TheProjectMetricDimension2
// String map for the_project (Metric Dimension First)
var MetricMetricDimensionFirstNameMap = map[string]uint32{
"A": 1,
"Set": 2,
"OfEvent": 3,
"Codes": 4,
}
// Enum for the_project (Metric Dimension First)
type TheProjectMetricDimensionFirst uint32
const (
_ TheProjectMetricDimensionFirst = iota
TheProjectMetricDimensionFirst_A = 1
TheProjectMetricDimensionFirst_Set = 2
TheProjectMetricDimensionFirst_OfEvent = 3
TheProjectMetricDimensionFirst_Codes = 4
)
// Alias for metric (Metric Dimension First) which has the same event codes
type MetricMetricDimensionFirst = TheProjectMetricDimensionFirst
// Alias for second metric (Metric Dimension First) which has the same event codes
type SecondMetricMetricDimensionFirst = TheProjectMetricDimensionFirst
// String map for second metric (Metric Dimension First)
var SecondMetricMetricDimensionFirstNameMap = map[string]uint32{
"A": 1,
"Set": 2,
"OfEvent": 3,
"Codes": 4,
}
// String map for the_project (Metric Dimension Second)
var MetricMetricDimensionSecondNameMap = map[string]uint32{
"Some": 0,
"More": 4,
"Event": 8,
"Codes": 16,
}
// Enum for the_project (Metric Dimension Second)
type TheProjectMetricDimensionSecond uint32
const (
_ TheProjectMetricDimensionSecond = iota
TheProjectMetricDimensionSecond_Some = 0
TheProjectMetricDimensionSecond_More = 4
TheProjectMetricDimensionSecond_Event = 8
TheProjectMetricDimensionSecond_Codes = 16
)
// Alias for metric (Metric Dimension Second) which has the same event codes
type MetricMetricDimensionSecond = TheProjectMetricDimensionSecond
// Alias for second metric (Metric Dimension Second) which has the same event codes
type SecondMetricMetricDimensionSecond = TheProjectMetricDimensionSecond
// String map for second metric (Metric Dimension Second)
var SecondMetricMetricDimensionSecondNameMap = map[string]uint32{
"Some": 0,
"More": 4,
"Event": 8,
"Codes": 16,
}
type EventGroupsEventCodes struct {
TheFirstGroup EventGroupsMetricDimensionTheFirstGroup
ASecondGroup EventGroupsMetricDimensionASecondGroup
Dimension2 EventGroupsMetricDimension2
}
func (s EventGroupsEventCodes) ToArray() []uint32 {
return []uint32{
uint32(s.TheFirstGroup),
uint32(s.ASecondGroup),
uint32(s.Dimension2),
}
}
type MetricEventCodes struct {
First MetricMetricDimensionFirst
Second MetricMetricDimensionSecond
}
func (s MetricEventCodes) ToArray() []uint32 {
return []uint32{
uint32(s.First),
uint32(s.Second),
}
}
type SecondMetricEventCodes struct {
First SecondMetricMetricDimensionFirst
Second SecondMetricMetricDimensionSecond
}
func (s SecondMetricEventCodes) ToArray() []uint32 {
return []uint32{
uint32(s.First),
uint32(s.Second),
}
}