Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: common/eventlog/proto/log_request_lite.pb.go

Issue 2517503002: luci-go: Basic support for event logging in Go. (Closed)
Patch Set: Add helpers for generating TypedTime Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/eventlog/proto/goma_stats.pb.go ('k') | common/eventlog/settings.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/eventlog/proto/log_request_lite.pb.go
diff --git a/common/eventlog/proto/log_request_lite.pb.go b/common/eventlog/proto/log_request_lite.pb.go
new file mode 100644
index 0000000000000000000000000000000000000000..2d901048f3b07033ae1fc2e98e649ee71166d83d
--- /dev/null
+++ b/common/eventlog/proto/log_request_lite.pb.go
@@ -0,0 +1,141 @@
+// Code generated by protoc-gen-go.
+// source: github.com/luci/luci-go/common/eventlog/proto/log_request_lite.proto
+// DO NOT EDIT!
+
+package eventlog
+
+import proto "github.com/golang/protobuf/proto"
+import fmt "fmt"
+import math "math"
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// Stripped-down version of LogRequest, for use on public systems.
+type LogRequestLite struct {
+ // "Now", in milliseconds, according to the same clock that was used to set
+ // 'event_time_ms' values in the LogEventLite protos below.
+ RequestTimeMs *int64 `protobuf:"varint,4,opt,name=request_time_ms,json=requestTimeMs" json:"request_time_ms,omitempty"`
+ // The name of a LogRequest.LogSource enum value. The server converts it to
+ // a proper enum value.
+ LogSourceName *string `protobuf:"bytes,6,opt,name=log_source_name,json=logSourceName" json:"log_source_name,omitempty"`
+ LogEvent []*LogRequestLite_LogEventLite `protobuf:"bytes,3,rep,name=log_event,json=logEvent" json:"log_event,omitempty"`
+ XXX_unrecognized []byte `json:"-"`
+}
+
+func (m *LogRequestLite) Reset() { *m = LogRequestLite{} }
+func (m *LogRequestLite) String() string { return proto.CompactTextString(m) }
+func (*LogRequestLite) ProtoMessage() {}
+func (*LogRequestLite) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
+
+func (m *LogRequestLite) GetRequestTimeMs() int64 {
+ if m != nil && m.RequestTimeMs != nil {
+ return *m.RequestTimeMs
+ }
+ return 0
+}
+
+func (m *LogRequestLite) GetLogSourceName() string {
+ if m != nil && m.LogSourceName != nil {
+ return *m.LogSourceName
+ }
+ return ""
+}
+
+func (m *LogRequestLite) GetLogEvent() []*LogRequestLite_LogEventLite {
+ if m != nil {
+ return m.LogEvent
+ }
+ return nil
+}
+
+type LogRequestLite_LogEventLite struct {
+ // Epoch time in milliseconds.
+ EventTimeMs *int64 `protobuf:"varint,1,opt,name=event_time_ms,json=eventTimeMs" json:"event_time_ms,omitempty"`
+ // Type of event. Different kinds of events inside a client app should have
+ // different values of 'event_code'. Different client apps may have
+ // overlapping sets of 'event_code' values; these values are only meant to
+ // make sense within the context of a single client app, as identified by
+ // the 'log_source_name' field of LogRequestLite.
+ //
+ // This enum type should be annotated with a LogEventRoutingConfig proto.
+ EventCode *int32 `protobuf:"varint,11,opt,name=event_code,json=eventCode" json:"event_code,omitempty"`
+ // Identifies a group of events that belong to the same flow or session of
+ // user interaction, which is a client-specific concept.
+ //
+ // These IDs are used in the pipeline for computing latencies between pairs
+ // of events, where it is necessary to ensure that both events belong to the
+ // same flow.
+ EventFlowId *int32 `protobuf:"varint,12,opt,name=event_flow_id,json=eventFlowId" json:"event_flow_id,omitempty"`
+ // A source specific extension (typically a serialized proto). The type of
+ // this data is determined by the log_source of the enclosing LogRequestLite.
+ // The proto is derived by calling the ParseFromString method.
+ SourceExtension []byte `protobuf:"bytes,6,opt,name=source_extension,json=sourceExtension" json:"source_extension,omitempty"`
+ XXX_unrecognized []byte `json:"-"`
+}
+
+func (m *LogRequestLite_LogEventLite) Reset() { *m = LogRequestLite_LogEventLite{} }
+func (m *LogRequestLite_LogEventLite) String() string { return proto.CompactTextString(m) }
+func (*LogRequestLite_LogEventLite) ProtoMessage() {}
+func (*LogRequestLite_LogEventLite) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
+
+func (m *LogRequestLite_LogEventLite) GetEventTimeMs() int64 {
+ if m != nil && m.EventTimeMs != nil {
+ return *m.EventTimeMs
+ }
+ return 0
+}
+
+func (m *LogRequestLite_LogEventLite) GetEventCode() int32 {
+ if m != nil && m.EventCode != nil {
+ return *m.EventCode
+ }
+ return 0
+}
+
+func (m *LogRequestLite_LogEventLite) GetEventFlowId() int32 {
+ if m != nil && m.EventFlowId != nil {
+ return *m.EventFlowId
+ }
+ return 0
+}
+
+func (m *LogRequestLite_LogEventLite) GetSourceExtension() []byte {
+ if m != nil {
+ return m.SourceExtension
+ }
+ return nil
+}
+
+func init() {
+ proto.RegisterType((*LogRequestLite)(nil), "eventlog.LogRequestLite")
+ proto.RegisterType((*LogRequestLite_LogEventLite)(nil), "eventlog.LogRequestLite.LogEventLite")
+}
+
+func init() {
+ proto.RegisterFile("github.com/luci/luci-go/common/eventlog/proto/log_request_lite.proto", fileDescriptor2)
+}
+
+var fileDescriptor2 = []byte{
+ // 275 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x8f, 0xdf, 0x4a, 0x84, 0x40,
+ 0x14, 0xc6, 0x31, 0x2b, 0xd6, 0x51, 0xdb, 0xf0, 0x4a, 0x82, 0x60, 0x59, 0x28, 0xb6, 0x8b, 0x14,
+ 0x7a, 0x84, 0x6a, 0x83, 0x60, 0xeb, 0x62, 0xea, 0x5e, 0x4a, 0x4f, 0x36, 0xa0, 0x73, 0xca, 0x19,
+ 0xab, 0xc7, 0xe9, 0x6d, 0x7a, 0xad, 0xce, 0x1c, 0xb5, 0x3f, 0x37, 0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0x63, 0x88, 0xb8, 0x22,
+ 0x76, 0x5d, 0x25, 0x27, 0x62, 0x7f, 0xdc, 0x0f, 0x3e, 0x2c, 0x68, 0xa3, 0x50, 0xf3, 0x92, 0x91,
+ 0x9c, 0x0f, 0x7c, 0x3d, 0xe1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xee, 0x6a, 0xf6, 0x9b, 0x9a,
+ 0x01, 0x00, 0x00,
+}
« no previous file with comments | « common/eventlog/proto/goma_stats.pb.go ('k') | common/eventlog/settings.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698