events

package
v0.0.0-...-68efac8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2014 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package events is a generated protocol buffer package.

It is generated from these files:

envelope.proto
heartbeat.proto
http.proto
log.proto
metric.proto

It has these top-level messages:

Envelope

Index

Constants

This section is empty.

Variables

View Source
var Envelope_EventType_name = map[int32]string{
	1: "Heartbeat",
	2: "HttpStart",
	3: "HttpStop",
	4: "HttpStartStop",
	5: "LogMessage",
	6: "ValueMetric",
	7: "CounterEvent",
}
View Source
var Envelope_EventType_value = map[string]int32{
	"Heartbeat":     1,
	"HttpStart":     2,
	"HttpStop":      3,
	"HttpStartStop": 4,
	"LogMessage":    5,
	"ValueMetric":   6,
	"CounterEvent":  7,
}
View Source
var LogMessage_MessageType_name = map[int32]string{
	1: "OUT",
	2: "ERR",
}
View Source
var LogMessage_MessageType_value = map[string]int32{
	"OUT": 1,
	"ERR": 2,
}
View Source
var Method_name = map[int32]string{
	1: "GET",
	2: "POST",
	3: "PUT",
	4: "DELETE",
	5: "HEAD",
}
View Source
var Method_value = map[string]int32{
	"GET":    1,
	"POST":   2,
	"PUT":    3,
	"DELETE": 4,
	"HEAD":   5,
}
View Source
var PeerType_name = map[int32]string{
	1: "Client",
	2: "Server",
}
View Source
var PeerType_value = map[string]int32{
	"Client": 1,
	"Server": 2,
}

Functions

This section is empty.

Types

type CounterEvent

type CounterEvent struct {
	Name             *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Delta            *uint64 `protobuf:"varint,2,req,name=delta" json:"delta,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*CounterEvent) GetDelta

func (m *CounterEvent) GetDelta() uint64

func (*CounterEvent) GetName

func (m *CounterEvent) GetName() string

func (*CounterEvent) ProtoMessage

func (*CounterEvent) ProtoMessage()

func (*CounterEvent) Reset

func (m *CounterEvent) Reset()

func (*CounterEvent) String

func (m *CounterEvent) String() string

type Envelope

type Envelope struct {
	Origin           *string             `protobuf:"bytes,1,req,name=origin" json:"origin,omitempty"`
	EventType        *Envelope_EventType `protobuf:"varint,2,req,name=eventType,enum=events.Envelope_EventType" json:"eventType,omitempty"`
	Timestamp        *int64              `protobuf:"varint,6,opt,name=timestamp" json:"timestamp,omitempty"`
	Heartbeat        *Heartbeat          `protobuf:"bytes,3,opt,name=heartbeat" json:"heartbeat,omitempty"`
	HttpStart        *HttpStart          `protobuf:"bytes,4,opt,name=httpStart" json:"httpStart,omitempty"`
	HttpStop         *HttpStop           `protobuf:"bytes,5,opt,name=httpStop" json:"httpStop,omitempty"`
	HttpStartStop    *HttpStartStop      `protobuf:"bytes,7,opt,name=httpStartStop" json:"httpStartStop,omitempty"`
	LogMessage       *LogMessage         `protobuf:"bytes,8,opt,name=logMessage" json:"logMessage,omitempty"`
	ValueMetric      *ValueMetric        `protobuf:"bytes,9,opt,name=valueMetric" json:"valueMetric,omitempty"`
	CounterEvent     *CounterEvent       `protobuf:"bytes,10,opt,name=counterEvent" json:"counterEvent,omitempty"`
	XXX_unrecognized []byte              `json:"-"`
}

func (*Envelope) GetCounterEvent

func (m *Envelope) GetCounterEvent() *CounterEvent

func (*Envelope) GetEventType

func (m *Envelope) GetEventType() Envelope_EventType

func (*Envelope) GetHeartbeat

func (m *Envelope) GetHeartbeat() *Heartbeat

func (*Envelope) GetHttpStart

func (m *Envelope) GetHttpStart() *HttpStart

func (*Envelope) GetHttpStartStop

func (m *Envelope) GetHttpStartStop() *HttpStartStop

func (*Envelope) GetHttpStop

func (m *Envelope) GetHttpStop() *HttpStop

func (*Envelope) GetLogMessage

func (m *Envelope) GetLogMessage() *LogMessage

func (*Envelope) GetOrigin

func (m *Envelope) GetOrigin() string

func (*Envelope) GetTimestamp

func (m *Envelope) GetTimestamp() int64

func (*Envelope) GetValueMetric

func (m *Envelope) GetValueMetric() *ValueMetric

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) Reset

func (m *Envelope) Reset()

func (*Envelope) String

func (m *Envelope) String() string

type Envelope_EventType

type Envelope_EventType int32
const (
	Envelope_Heartbeat     Envelope_EventType = 1
	Envelope_HttpStart     Envelope_EventType = 2
	Envelope_HttpStop      Envelope_EventType = 3
	Envelope_HttpStartStop Envelope_EventType = 4
	Envelope_LogMessage    Envelope_EventType = 5
	Envelope_ValueMetric   Envelope_EventType = 6
	Envelope_CounterEvent  Envelope_EventType = 7
)

func (Envelope_EventType) Enum

func (Envelope_EventType) String

func (x Envelope_EventType) String() string

func (*Envelope_EventType) UnmarshalJSON

func (x *Envelope_EventType) UnmarshalJSON(data []byte) error

type Event

type Event interface {
	ProtoMessage()
}

type Heartbeat

type Heartbeat struct {
	SentCount        *uint64 `protobuf:"varint,1,req,name=sentCount" json:"sentCount,omitempty"`
	ReceivedCount    *uint64 `protobuf:"varint,2,req,name=receivedCount" json:"receivedCount,omitempty"`
	ErrorCount       *uint64 `protobuf:"varint,3,req,name=errorCount" json:"errorCount,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Heartbeat) GetErrorCount

func (m *Heartbeat) GetErrorCount() uint64

func (*Heartbeat) GetReceivedCount

func (m *Heartbeat) GetReceivedCount() uint64

func (*Heartbeat) GetSentCount

func (m *Heartbeat) GetSentCount() uint64

func (*Heartbeat) ProtoMessage

func (*Heartbeat) ProtoMessage()

func (*Heartbeat) Reset

func (m *Heartbeat) Reset()

func (*Heartbeat) String

func (m *Heartbeat) String() string

type HttpStart

type HttpStart struct {
	Timestamp        *int64    `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"`
	RequestId        *UUID     `protobuf:"bytes,2,req,name=requestId" json:"requestId,omitempty"`
	PeerType         *PeerType `protobuf:"varint,3,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"`
	Method           *Method   `protobuf:"varint,4,req,name=method,enum=events.Method" json:"method,omitempty"`
	Uri              *string   `protobuf:"bytes,5,req,name=uri" json:"uri,omitempty"`
	RemoteAddress    *string   `protobuf:"bytes,6,req,name=remoteAddress" json:"remoteAddress,omitempty"`
	UserAgent        *string   `protobuf:"bytes,7,req,name=userAgent" json:"userAgent,omitempty"`
	ParentRequestId  *UUID     `protobuf:"bytes,8,opt,name=parentRequestId" json:"parentRequestId,omitempty"`
	ApplicationId    *UUID     `protobuf:"bytes,9,opt,name=applicationId" json:"applicationId,omitempty"`
	InstanceIndex    *int32    `protobuf:"varint,10,opt,name=instanceIndex" json:"instanceIndex,omitempty"`
	InstanceId       *string   `protobuf:"bytes,11,opt,name=instanceId" json:"instanceId,omitempty"`
	XXX_unrecognized []byte    `json:"-"`
}

func (*HttpStart) GetApplicationId

func (m *HttpStart) GetApplicationId() *UUID

func (*HttpStart) GetInstanceId

func (m *HttpStart) GetInstanceId() string

func (*HttpStart) GetInstanceIndex

func (m *HttpStart) GetInstanceIndex() int32

func (*HttpStart) GetMethod

func (m *HttpStart) GetMethod() Method

func (*HttpStart) GetParentRequestId

func (m *HttpStart) GetParentRequestId() *UUID

func (*HttpStart) GetPeerType

func (m *HttpStart) GetPeerType() PeerType

func (*HttpStart) GetRemoteAddress

func (m *HttpStart) GetRemoteAddress() string

func (*HttpStart) GetRequestId

func (m *HttpStart) GetRequestId() *UUID

func (*HttpStart) GetTimestamp

func (m *HttpStart) GetTimestamp() int64

func (*HttpStart) GetUri

func (m *HttpStart) GetUri() string

func (*HttpStart) GetUserAgent

func (m *HttpStart) GetUserAgent() string

func (*HttpStart) ProtoMessage

func (*HttpStart) ProtoMessage()

func (*HttpStart) Reset

func (m *HttpStart) Reset()

func (*HttpStart) String

func (m *HttpStart) String() string

type HttpStartStop

type HttpStartStop struct {
	StartTimestamp   *int64    `protobuf:"varint,1,req,name=startTimestamp" json:"startTimestamp,omitempty"`
	StopTimestamp    *int64    `protobuf:"varint,2,req,name=stopTimestamp" json:"stopTimestamp,omitempty"`
	RequestId        *UUID     `protobuf:"bytes,3,req,name=requestId" json:"requestId,omitempty"`
	PeerType         *PeerType `protobuf:"varint,4,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"`
	Method           *Method   `protobuf:"varint,5,req,name=method,enum=events.Method" json:"method,omitempty"`
	Uri              *string   `protobuf:"bytes,6,req,name=uri" json:"uri,omitempty"`
	RemoteAddress    *string   `protobuf:"bytes,7,req,name=remoteAddress" json:"remoteAddress,omitempty"`
	UserAgent        *string   `protobuf:"bytes,8,req,name=userAgent" json:"userAgent,omitempty"`
	StatusCode       *int32    `protobuf:"varint,9,req,name=statusCode" json:"statusCode,omitempty"`
	ContentLength    *int64    `protobuf:"varint,10,req,name=contentLength" json:"contentLength,omitempty"`
	ParentRequestId  *UUID     `protobuf:"bytes,11,opt,name=parentRequestId" json:"parentRequestId,omitempty"`
	ApplicationId    *UUID     `protobuf:"bytes,12,opt,name=applicationId" json:"applicationId,omitempty"`
	InstanceIndex    *int32    `protobuf:"varint,13,opt,name=instanceIndex" json:"instanceIndex,omitempty"`
	InstanceId       *string   `protobuf:"bytes,14,opt,name=instanceId" json:"instanceId,omitempty"`
	XXX_unrecognized []byte    `json:"-"`
}

func (*HttpStartStop) GetApplicationId

func (m *HttpStartStop) GetApplicationId() *UUID

func (*HttpStartStop) GetContentLength

func (m *HttpStartStop) GetContentLength() int64

func (*HttpStartStop) GetInstanceId

func (m *HttpStartStop) GetInstanceId() string

func (*HttpStartStop) GetInstanceIndex

func (m *HttpStartStop) GetInstanceIndex() int32

func (*HttpStartStop) GetMethod

func (m *HttpStartStop) GetMethod() Method

func (*HttpStartStop) GetParentRequestId

func (m *HttpStartStop) GetParentRequestId() *UUID

func (*HttpStartStop) GetPeerType

func (m *HttpStartStop) GetPeerType() PeerType

func (*HttpStartStop) GetRemoteAddress

func (m *HttpStartStop) GetRemoteAddress() string

func (*HttpStartStop) GetRequestId

func (m *HttpStartStop) GetRequestId() *UUID

func (*HttpStartStop) GetStartTimestamp

func (m *HttpStartStop) GetStartTimestamp() int64

func (*HttpStartStop) GetStatusCode

func (m *HttpStartStop) GetStatusCode() int32

func (*HttpStartStop) GetStopTimestamp

func (m *HttpStartStop) GetStopTimestamp() int64

func (*HttpStartStop) GetUri

func (m *HttpStartStop) GetUri() string

func (*HttpStartStop) GetUserAgent

func (m *HttpStartStop) GetUserAgent() string

func (*HttpStartStop) ProtoMessage

func (*HttpStartStop) ProtoMessage()

func (*HttpStartStop) Reset

func (m *HttpStartStop) Reset()

func (*HttpStartStop) String

func (m *HttpStartStop) String() string

type HttpStop

type HttpStop struct {
	Timestamp        *int64    `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"`
	Uri              *string   `protobuf:"bytes,2,req,name=uri" json:"uri,omitempty"`
	RequestId        *UUID     `protobuf:"bytes,3,req,name=requestId" json:"requestId,omitempty"`
	PeerType         *PeerType `protobuf:"varint,4,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"`
	StatusCode       *int32    `protobuf:"varint,5,req,name=statusCode" json:"statusCode,omitempty"`
	ContentLength    *int64    `protobuf:"varint,6,req,name=contentLength" json:"contentLength,omitempty"`
	ApplicationId    *UUID     `protobuf:"bytes,7,opt,name=applicationId" json:"applicationId,omitempty"`
	XXX_unrecognized []byte    `json:"-"`
}

func (*HttpStop) GetApplicationId

func (m *HttpStop) GetApplicationId() *UUID

func (*HttpStop) GetContentLength

func (m *HttpStop) GetContentLength() int64

func (*HttpStop) GetPeerType

func (m *HttpStop) GetPeerType() PeerType

func (*HttpStop) GetRequestId

func (m *HttpStop) GetRequestId() *UUID

func (*HttpStop) GetStatusCode

func (m *HttpStop) GetStatusCode() int32

func (*HttpStop) GetTimestamp

func (m *HttpStop) GetTimestamp() int64

func (*HttpStop) GetUri

func (m *HttpStop) GetUri() string

func (*HttpStop) ProtoMessage

func (*HttpStop) ProtoMessage()

func (*HttpStop) Reset

func (m *HttpStop) Reset()

func (*HttpStop) String

func (m *HttpStop) String() string

type LogMessage

type LogMessage struct {
	Message          []byte                  `protobuf:"bytes,1,req,name=message" json:"message,omitempty"`
	MessageType      *LogMessage_MessageType `protobuf:"varint,2,req,name=message_type,enum=events.LogMessage_MessageType" json:"message_type,omitempty"`
	Timestamp        *int64                  `protobuf:"varint,3,req,name=timestamp" json:"timestamp,omitempty"`
	AppId            *string                 `protobuf:"bytes,4,opt,name=app_id" json:"app_id,omitempty"`
	SourceType       *string                 `protobuf:"bytes,5,opt,name=source_type" json:"source_type,omitempty"`
	SourceInstance   *string                 `protobuf:"bytes,6,opt,name=source_instance" json:"source_instance,omitempty"`
	XXX_unrecognized []byte                  `json:"-"`
}

func (*LogMessage) GetAppId

func (m *LogMessage) GetAppId() string

func (*LogMessage) GetMessage

func (m *LogMessage) GetMessage() []byte

func (*LogMessage) GetMessageType

func (m *LogMessage) GetMessageType() LogMessage_MessageType

func (*LogMessage) GetSourceInstance

func (m *LogMessage) GetSourceInstance() string

func (*LogMessage) GetSourceType

func (m *LogMessage) GetSourceType() string

func (*LogMessage) GetTimestamp

func (m *LogMessage) GetTimestamp() int64

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) Reset

func (m *LogMessage) Reset()

func (*LogMessage) String

func (m *LogMessage) String() string

type LogMessage_MessageType

type LogMessage_MessageType int32
const (
	LogMessage_OUT LogMessage_MessageType = 1
	LogMessage_ERR LogMessage_MessageType = 2
)

func (LogMessage_MessageType) Enum

func (LogMessage_MessageType) String

func (x LogMessage_MessageType) String() string

func (*LogMessage_MessageType) UnmarshalJSON

func (x *LogMessage_MessageType) UnmarshalJSON(data []byte) error

type Method

type Method int32
const (
	Method_GET    Method = 1
	Method_POST   Method = 2
	Method_PUT    Method = 3
	Method_DELETE Method = 4
	Method_HEAD   Method = 5
)

func (Method) Enum

func (x Method) Enum() *Method

func (Method) String

func (x Method) String() string

func (*Method) UnmarshalJSON

func (x *Method) UnmarshalJSON(data []byte) error

type PeerType

type PeerType int32
const (
	PeerType_Client PeerType = 1
	PeerType_Server PeerType = 2
)

func (PeerType) Enum

func (x PeerType) Enum() *PeerType

func (PeerType) String

func (x PeerType) String() string

func (*PeerType) UnmarshalJSON

func (x *PeerType) UnmarshalJSON(data []byte) error

type UUID

type UUID struct {
	Low              *uint64 `protobuf:"varint,1,req,name=low" json:"low,omitempty"`
	High             *uint64 `protobuf:"varint,2,req,name=high" json:"high,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*UUID) GetHigh

func (m *UUID) GetHigh() uint64

func (*UUID) GetLow

func (m *UUID) GetLow() uint64

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) Reset

func (m *UUID) Reset()

func (*UUID) String

func (m *UUID) String() string

type ValueMetric

type ValueMetric struct {
	Name             *string  `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Value            *float64 `protobuf:"fixed64,2,req,name=value" json:"value,omitempty"`
	Unit             *string  `protobuf:"bytes,3,req,name=unit" json:"unit,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*ValueMetric) GetName

func (m *ValueMetric) GetName() string

func (*ValueMetric) GetUnit

func (m *ValueMetric) GetUnit() string

func (*ValueMetric) GetValue

func (m *ValueMetric) GetValue() float64

func (*ValueMetric) ProtoMessage

func (*ValueMetric) ProtoMessage()

func (*ValueMetric) Reset

func (m *ValueMetric) Reset()

func (*ValueMetric) String

func (m *ValueMetric) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL