ssf

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: MIT Imports: 3 Imported by: 169

Documentation

Overview

Package ssf is a generated protocol buffer package.

It is generated from these files:

ssf/sample.proto

It has these top-level messages:

SSFTag
SSFTrace
SSFSample

Index

Constants

This section is empty.

Variables

View Source
var SSFSample_Metric_name = map[int32]string{
	0: "COUNTER",
	1: "GAUGE",
	2: "HISTOGRAM",
	3: "SET",
	4: "STATUS",
	5: "EVENT",
	6: "TRACE",
}
View Source
var SSFSample_Metric_value = map[string]int32{
	"COUNTER":   0,
	"GAUGE":     1,
	"HISTOGRAM": 2,
	"SET":       3,
	"STATUS":    4,
	"EVENT":     5,
	"TRACE":     6,
}
View Source
var SSFSample_Status_name = map[int32]string{
	0: "OK",
	1: "WARNING",
	2: "CRITICAL",
	3: "UNKNOWN",
}
View Source
var SSFSample_Status_value = map[string]int32{
	"OK":       0,
	"WARNING":  1,
	"CRITICAL": 2,
	"UNKNOWN":  3,
}

Functions

This section is empty.

Types

type SSFSample

type SSFSample struct {
	// The underlying type of the metric
	Metric SSFSample_Metric `protobuf:"varint,1,opt,name=metric,enum=ssf.SSFSample_Metric" json:"metric,omitempty"`
	// no spaces, but . is allowed
	// e.g.: veneur.bar.baz
	Name       string           `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Timestamp  int64            `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
	Message    string           `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"`
	Status     SSFSample_Status `protobuf:"varint,5,opt,name=status,enum=ssf.SSFSample_Status" json:"status,omitempty"`
	SampleRate float32          `protobuf:"fixed32,6,opt,name=sample_rate,json=sampleRate" json:"sample_rate,omitempty"`
	Tags       []*SSFTag        `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"`
	Unit       string           `protobuf:"bytes,8,opt,name=unit" json:"unit,omitempty"`
	Trace      *SSFTrace        `protobuf:"bytes,9,opt,name=trace" json:"trace,omitempty"`
	// the name of the service
	// e.g. "veneur"
	Service string `protobuf:"bytes,10,opt,name=service" json:"service,omitempty"`
}

func (*SSFSample) Descriptor

func (*SSFSample) Descriptor() ([]byte, []int)

func (*SSFSample) GetMessage

func (m *SSFSample) GetMessage() string

func (*SSFSample) GetMetric

func (m *SSFSample) GetMetric() SSFSample_Metric

func (*SSFSample) GetName

func (m *SSFSample) GetName() string

func (*SSFSample) GetSampleRate

func (m *SSFSample) GetSampleRate() float32

func (*SSFSample) GetService

func (m *SSFSample) GetService() string

func (*SSFSample) GetStatus

func (m *SSFSample) GetStatus() SSFSample_Status

func (*SSFSample) GetTags

func (m *SSFSample) GetTags() []*SSFTag

func (*SSFSample) GetTimestamp

func (m *SSFSample) GetTimestamp() int64

func (*SSFSample) GetTrace

func (m *SSFSample) GetTrace() *SSFTrace

func (*SSFSample) GetUnit

func (m *SSFSample) GetUnit() string

func (*SSFSample) ProtoMessage

func (*SSFSample) ProtoMessage()

func (*SSFSample) Reset

func (m *SSFSample) Reset()

func (*SSFSample) String

func (m *SSFSample) String() string

type SSFSample_Metric

type SSFSample_Metric int32
const (
	SSFSample_COUNTER   SSFSample_Metric = 0
	SSFSample_GAUGE     SSFSample_Metric = 1
	SSFSample_HISTOGRAM SSFSample_Metric = 2
	SSFSample_SET       SSFSample_Metric = 3
	SSFSample_STATUS    SSFSample_Metric = 4
	SSFSample_EVENT     SSFSample_Metric = 5
	SSFSample_TRACE     SSFSample_Metric = 6
)

func (SSFSample_Metric) EnumDescriptor

func (SSFSample_Metric) EnumDescriptor() ([]byte, []int)

func (SSFSample_Metric) String

func (x SSFSample_Metric) String() string

type SSFSample_Status

type SSFSample_Status int32
const (
	SSFSample_OK       SSFSample_Status = 0
	SSFSample_WARNING  SSFSample_Status = 1
	SSFSample_CRITICAL SSFSample_Status = 2
	SSFSample_UNKNOWN  SSFSample_Status = 3
)

func (SSFSample_Status) EnumDescriptor

func (SSFSample_Status) EnumDescriptor() ([]byte, []int)

func (SSFSample_Status) String

func (x SSFSample_Status) String() string

type SSFTag

type SSFTag struct {
	Name  string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

func (*SSFTag) Descriptor

func (*SSFTag) Descriptor() ([]byte, []int)

func (*SSFTag) GetName

func (m *SSFTag) GetName() string

func (*SSFTag) GetValue

func (m *SSFTag) GetValue() string

func (*SSFTag) ProtoMessage

func (*SSFTag) ProtoMessage()

func (*SSFTag) Reset

func (m *SSFTag) Reset()

func (*SSFTag) String

func (m *SSFTag) String() string

type SSFTrace

type SSFTrace struct {
	// the trace_id is the (span) id of the root span
	TraceId int64 `protobuf:"varint,1,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
	// the id for this span
	Id int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
	// the (span) id of the direct parent,
	// if this span is not a root span
	ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId" json:"parent_id,omitempty"`
	// In addition to the Name (defined on the SSFSample),
	// traces also have a Resource. Unlike the Name, Resource
	// can include whitespace and can be (for example) the
	// endpoint or the base of a SQL query
	// See https://godoc.org/github.com/DataDog/dd-trace-go/tracer#Span
	Resource string `protobuf:"bytes,4,opt,name=resource" json:"resource,omitempty"`
	Duration int64  `protobuf:"varint,5,opt,name=duration" json:"duration,omitempty"`
}

func (*SSFTrace) Descriptor

func (*SSFTrace) Descriptor() ([]byte, []int)

func (*SSFTrace) GetDuration

func (m *SSFTrace) GetDuration() int64

func (*SSFTrace) GetId

func (m *SSFTrace) GetId() int64

func (*SSFTrace) GetParentId

func (m *SSFTrace) GetParentId() int64

func (*SSFTrace) GetResource

func (m *SSFTrace) GetResource() string

func (*SSFTrace) GetTraceId

func (m *SSFTrace) GetTraceId() int64

func (*SSFTrace) ProtoMessage

func (*SSFTrace) ProtoMessage()

func (*SSFTrace) Reset

func (m *SSFTrace) Reset()

func (*SSFTrace) String

func (m *SSFTrace) String() string

Jump to

Keyboard shortcuts

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