model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSignalfxMetrics        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSignalfxMetrics          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSignalfxMetrics = fmt.Errorf("proto: unexpected end of group")
)
View Source
var EventCategory_name = map[int32]string{
	1000000: "USER_DEFINED",
	100000:  "ALERT",
	200000:  "AUDIT",
	300000:  "JOB",
	400000:  "COLLECTD",
	500000:  "SERVICE_DISCOVERY",
	700000:  "EXCEPTION",
	2000000: "AGENT",
}
View Source
var EventCategory_value = map[string]int32{
	"USER_DEFINED":      1000000,
	"ALERT":             100000,
	"AUDIT":             200000,
	"JOB":               300000,
	"COLLECTD":          400000,
	"SERVICE_DISCOVERY": 500000,
	"EXCEPTION":         700000,
	"AGENT":             2000000,
}
View Source
var MetricType_name = map[int32]string{
	0: "GAUGE",
	1: "COUNTER",
	2: "ENUM",
	3: "CUMULATIVE_COUNTER",
}
View Source
var MetricType_value = map[string]int32{
	"GAUGE":              0,
	"COUNTER":            1,
	"ENUM":               2,
	"CUMULATIVE_COUNTER": 3,
}

Functions

This section is empty.

Types

type DataPoint

type DataPoint struct {
	Source               string       `protobuf:"bytes,1,opt,name=source" json:"source"`
	Metric               string       `protobuf:"bytes,2,opt,name=metric" json:"metric"`
	Timestamp            int64        `protobuf:"varint,3,opt,name=timestamp" json:"timestamp"`
	Value                Datum        `protobuf:"bytes,4,opt,name=value" json:"value"`
	MetricType           *MetricType  `protobuf:"varint,5,opt,name=metricType,enum=com.signalfx.metrics.model.MetricType" json:"metricType,omitempty"`
	Dimensions           []*Dimension `protobuf:"bytes,6,rep,name=dimensions" json:"dimensions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*DataPoint) Descriptor

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

func (*DataPoint) GetDimensions

func (m *DataPoint) GetDimensions() []*Dimension

func (*DataPoint) GetMetric

func (m *DataPoint) GetMetric() string

func (*DataPoint) GetMetricType

func (m *DataPoint) GetMetricType() MetricType

func (*DataPoint) GetSource

func (m *DataPoint) GetSource() string

func (*DataPoint) GetTimestamp

func (m *DataPoint) GetTimestamp() int64

func (*DataPoint) GetValue

func (m *DataPoint) GetValue() Datum

func (*DataPoint) Marshal

func (m *DataPoint) Marshal() (dAtA []byte, err error)

func (*DataPoint) MarshalTo

func (m *DataPoint) MarshalTo(dAtA []byte) (int, error)

func (*DataPoint) MarshalToSizedBuffer

func (m *DataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataPoint) ProtoMessage

func (*DataPoint) ProtoMessage()

func (*DataPoint) Reset

func (m *DataPoint) Reset()

func (*DataPoint) Size

func (m *DataPoint) Size() (n int)

func (*DataPoint) String

func (m *DataPoint) String() string

func (*DataPoint) Unmarshal

func (m *DataPoint) Unmarshal(dAtA []byte) error

func (*DataPoint) XXX_DiscardUnknown

func (m *DataPoint) XXX_DiscardUnknown()

func (*DataPoint) XXX_Marshal

func (m *DataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataPoint) XXX_Merge

func (m *DataPoint) XXX_Merge(src proto.Message)

func (*DataPoint) XXX_Size

func (m *DataPoint) XXX_Size() int

func (*DataPoint) XXX_Unmarshal

func (m *DataPoint) XXX_Unmarshal(b []byte) error

type DataPointUploadMessage

type DataPointUploadMessage struct {
	Datapoints           []*DataPoint `protobuf:"bytes,1,rep,name=datapoints" json:"datapoints,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*DataPointUploadMessage) Descriptor

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

func (*DataPointUploadMessage) GetDatapoints

func (m *DataPointUploadMessage) GetDatapoints() []*DataPoint

func (*DataPointUploadMessage) Marshal

func (m *DataPointUploadMessage) Marshal() (dAtA []byte, err error)

func (*DataPointUploadMessage) MarshalTo

func (m *DataPointUploadMessage) MarshalTo(dAtA []byte) (int, error)

func (*DataPointUploadMessage) MarshalToSizedBuffer

func (m *DataPointUploadMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataPointUploadMessage) ProtoMessage

func (*DataPointUploadMessage) ProtoMessage()

func (*DataPointUploadMessage) Reset

func (m *DataPointUploadMessage) Reset()

func (*DataPointUploadMessage) Size

func (m *DataPointUploadMessage) Size() (n int)

func (*DataPointUploadMessage) String

func (m *DataPointUploadMessage) String() string

func (*DataPointUploadMessage) Unmarshal

func (m *DataPointUploadMessage) Unmarshal(dAtA []byte) error

func (*DataPointUploadMessage) XXX_DiscardUnknown

func (m *DataPointUploadMessage) XXX_DiscardUnknown()

func (*DataPointUploadMessage) XXX_Marshal

func (m *DataPointUploadMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataPointUploadMessage) XXX_Merge

func (m *DataPointUploadMessage) XXX_Merge(src proto.Message)

func (*DataPointUploadMessage) XXX_Size

func (m *DataPointUploadMessage) XXX_Size() int

func (*DataPointUploadMessage) XXX_Unmarshal

func (m *DataPointUploadMessage) XXX_Unmarshal(b []byte) error

type Datum

type Datum struct {
	StrValue             *string  `protobuf:"bytes,1,opt,name=strValue" json:"strValue,omitempty"`
	DoubleValue          *float64 `protobuf:"fixed64,2,opt,name=doubleValue" json:"doubleValue,omitempty"`
	IntValue             *int64   `protobuf:"varint,3,opt,name=intValue" json:"intValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Datum) Descriptor

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

func (*Datum) GetDoubleValue

func (m *Datum) GetDoubleValue() float64

func (*Datum) GetIntValue

func (m *Datum) GetIntValue() int64

func (*Datum) GetStrValue

func (m *Datum) GetStrValue() string

func (*Datum) Marshal

func (m *Datum) Marshal() (dAtA []byte, err error)

func (*Datum) MarshalTo

func (m *Datum) MarshalTo(dAtA []byte) (int, error)

func (*Datum) MarshalToSizedBuffer

func (m *Datum) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Datum) ProtoMessage

func (*Datum) ProtoMessage()

func (*Datum) Reset

func (m *Datum) Reset()

func (*Datum) Size

func (m *Datum) Size() (n int)

func (*Datum) String

func (m *Datum) String() string

func (*Datum) Unmarshal

func (m *Datum) Unmarshal(dAtA []byte) error

func (*Datum) XXX_DiscardUnknown

func (m *Datum) XXX_DiscardUnknown()

func (*Datum) XXX_Marshal

func (m *Datum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Datum) XXX_Merge

func (m *Datum) XXX_Merge(src proto.Message)

func (*Datum) XXX_Size

func (m *Datum) XXX_Size() int

func (*Datum) XXX_Unmarshal

func (m *Datum) XXX_Unmarshal(b []byte) error

type Dimension

type Dimension struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key"`
	Value                string   `protobuf:"bytes,2,opt,name=value" json:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Dimension) Descriptor

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

func (*Dimension) GetKey

func (m *Dimension) GetKey() string

func (*Dimension) GetValue

func (m *Dimension) GetValue() string

func (*Dimension) Marshal

func (m *Dimension) Marshal() (dAtA []byte, err error)

func (*Dimension) MarshalTo

func (m *Dimension) MarshalTo(dAtA []byte) (int, error)

func (*Dimension) MarshalToSizedBuffer

func (m *Dimension) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Dimension) ProtoMessage

func (*Dimension) ProtoMessage()

func (*Dimension) Reset

func (m *Dimension) Reset()

func (*Dimension) Size

func (m *Dimension) Size() (n int)

func (*Dimension) String

func (m *Dimension) String() string

func (*Dimension) Unmarshal

func (m *Dimension) Unmarshal(dAtA []byte) error

func (*Dimension) XXX_DiscardUnknown

func (m *Dimension) XXX_DiscardUnknown()

func (*Dimension) XXX_Marshal

func (m *Dimension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Dimension) XXX_Merge

func (m *Dimension) XXX_Merge(src proto.Message)

func (*Dimension) XXX_Size

func (m *Dimension) XXX_Size() int

func (*Dimension) XXX_Unmarshal

func (m *Dimension) XXX_Unmarshal(b []byte) error

type Event

type Event struct {
	EventType            string         `protobuf:"bytes,1,req,name=eventType" json:"eventType"`
	Dimensions           []*Dimension   `protobuf:"bytes,2,rep,name=dimensions" json:"dimensions,omitempty"`
	Properties           []*Property    `protobuf:"bytes,3,rep,name=properties" json:"properties,omitempty"`
	Category             *EventCategory `protobuf:"varint,4,opt,name=category,enum=com.signalfx.metrics.model.EventCategory" json:"category,omitempty"`
	Timestamp            int64          `protobuf:"varint,5,opt,name=timestamp" json:"timestamp"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Event) Descriptor

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

func (*Event) GetCategory

func (m *Event) GetCategory() EventCategory

func (*Event) GetDimensions

func (m *Event) GetDimensions() []*Dimension

func (*Event) GetEventType

func (m *Event) GetEventType() string

func (*Event) GetProperties

func (m *Event) GetProperties() []*Property

func (*Event) GetTimestamp

func (m *Event) GetTimestamp() int64

func (*Event) Marshal

func (m *Event) Marshal() (dAtA []byte, err error)

func (*Event) MarshalTo

func (m *Event) MarshalTo(dAtA []byte) (int, error)

func (*Event) MarshalToSizedBuffer

func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) Size

func (m *Event) Size() (n int)

func (*Event) String

func (m *Event) String() string

func (*Event) Unmarshal

func (m *Event) Unmarshal(dAtA []byte) error

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

type EventCategory

type EventCategory int32

* Different categories of events supported

const (
	//*
	// Created by user via UI or API, e.g. a deployment event
	EventCategory_USER_DEFINED EventCategory = 1000000
	//*
	// Output by anomaly detectors
	EventCategory_ALERT EventCategory = 100000
	//*
	// Audit trail events
	EventCategory_AUDIT EventCategory = 200000
	//*
	// Generated by analytics server
	EventCategory_JOB EventCategory = 300000
	//*
	// @deprecated
	// Event originated within collectd (deprecated in favor of AGENT)
	EventCategory_COLLECTD EventCategory = 400000
	//*
	// Service discovery event
	EventCategory_SERVICE_DISCOVERY EventCategory = 500000
	//*
	// Created by exception appenders to denote exceptional events
	EventCategory_EXCEPTION EventCategory = 700000
	//*
	// Event originated from an agent
	EventCategory_AGENT EventCategory = 2000000
)

func (EventCategory) Enum

func (x EventCategory) Enum() *EventCategory

func (EventCategory) EnumDescriptor

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

func (EventCategory) String

func (x EventCategory) String() string

func (*EventCategory) UnmarshalJSON

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

type EventUploadMessage

type EventUploadMessage struct {
	Events               []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EventUploadMessage) Descriptor

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

func (*EventUploadMessage) GetEvents

func (m *EventUploadMessage) GetEvents() []*Event

func (*EventUploadMessage) Marshal

func (m *EventUploadMessage) Marshal() (dAtA []byte, err error)

func (*EventUploadMessage) MarshalTo

func (m *EventUploadMessage) MarshalTo(dAtA []byte) (int, error)

func (*EventUploadMessage) MarshalToSizedBuffer

func (m *EventUploadMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUploadMessage) ProtoMessage

func (*EventUploadMessage) ProtoMessage()

func (*EventUploadMessage) Reset

func (m *EventUploadMessage) Reset()

func (*EventUploadMessage) Size

func (m *EventUploadMessage) Size() (n int)

func (*EventUploadMessage) String

func (m *EventUploadMessage) String() string

func (*EventUploadMessage) Unmarshal

func (m *EventUploadMessage) Unmarshal(dAtA []byte) error

func (*EventUploadMessage) XXX_DiscardUnknown

func (m *EventUploadMessage) XXX_DiscardUnknown()

func (*EventUploadMessage) XXX_Marshal

func (m *EventUploadMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventUploadMessage) XXX_Merge

func (m *EventUploadMessage) XXX_Merge(src proto.Message)

func (*EventUploadMessage) XXX_Size

func (m *EventUploadMessage) XXX_Size() int

func (*EventUploadMessage) XXX_Unmarshal

func (m *EventUploadMessage) XXX_Unmarshal(b []byte) error

type MetricType

type MetricType int32
const (
	//*
	// Numerical: Periodic, instantaneous measurement of some state.
	MetricType_GAUGE MetricType = 0
	//*
	// Numerical: Count of occurrences. Generally non-negative integers.
	MetricType_COUNTER MetricType = 1
	//*
	// String: Used for non-continuous quantities (that is, measurements where there is a fixed
	// set of meaningful values). This is essentially a special case of gauge.
	MetricType_ENUM MetricType = 2
	//*
	// Tracks a value that increases over time, where only the difference is important.
	MetricType_CUMULATIVE_COUNTER MetricType = 3
)

func (MetricType) Enum

func (x MetricType) Enum() *MetricType

func (MetricType) EnumDescriptor

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

func (MetricType) String

func (x MetricType) String() string

func (*MetricType) UnmarshalJSON

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

type PointValue

type PointValue struct {
	Timestamp            int64    `protobuf:"varint,3,opt,name=timestamp" json:"timestamp"`
	Value                Datum    `protobuf:"bytes,4,opt,name=value" json:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PointValue) Descriptor

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

func (*PointValue) GetTimestamp

func (m *PointValue) GetTimestamp() int64

func (*PointValue) GetValue

func (m *PointValue) GetValue() Datum

func (*PointValue) Marshal

func (m *PointValue) Marshal() (dAtA []byte, err error)

func (*PointValue) MarshalTo

func (m *PointValue) MarshalTo(dAtA []byte) (int, error)

func (*PointValue) MarshalToSizedBuffer

func (m *PointValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PointValue) ProtoMessage

func (*PointValue) ProtoMessage()

func (*PointValue) Reset

func (m *PointValue) Reset()

func (*PointValue) Size

func (m *PointValue) Size() (n int)

func (*PointValue) String

func (m *PointValue) String() string

func (*PointValue) Unmarshal

func (m *PointValue) Unmarshal(dAtA []byte) error

func (*PointValue) XXX_DiscardUnknown

func (m *PointValue) XXX_DiscardUnknown()

func (*PointValue) XXX_Marshal

func (m *PointValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PointValue) XXX_Merge

func (m *PointValue) XXX_Merge(src proto.Message)

func (*PointValue) XXX_Size

func (m *PointValue) XXX_Size() int

func (*PointValue) XXX_Unmarshal

func (m *PointValue) XXX_Unmarshal(b []byte) error

type Property

type Property struct {
	Key                  string         `protobuf:"bytes,1,opt,name=key" json:"key"`
	Value                *PropertyValue `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Property) Descriptor

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

func (*Property) GetKey

func (m *Property) GetKey() string

func (*Property) GetValue

func (m *Property) GetValue() *PropertyValue

func (*Property) Marshal

func (m *Property) Marshal() (dAtA []byte, err error)

func (*Property) MarshalTo

func (m *Property) MarshalTo(dAtA []byte) (int, error)

func (*Property) MarshalToSizedBuffer

func (m *Property) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) Reset

func (m *Property) Reset()

func (*Property) Size

func (m *Property) Size() (n int)

func (*Property) String

func (m *Property) String() string

func (*Property) Unmarshal

func (m *Property) Unmarshal(dAtA []byte) error

func (*Property) XXX_DiscardUnknown

func (m *Property) XXX_DiscardUnknown()

func (*Property) XXX_Marshal

func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Property) XXX_Merge

func (m *Property) XXX_Merge(src proto.Message)

func (*Property) XXX_Size

func (m *Property) XXX_Size() int

func (*Property) XXX_Unmarshal

func (m *Property) XXX_Unmarshal(b []byte) error

type PropertyValue

type PropertyValue struct {
	StrValue             *string  `protobuf:"bytes,1,opt,name=strValue" json:"strValue,omitempty"`
	DoubleValue          *float64 `protobuf:"fixed64,2,opt,name=doubleValue" json:"doubleValue,omitempty"`
	IntValue             *int64   `protobuf:"varint,3,opt,name=intValue" json:"intValue,omitempty"`
	BoolValue            *bool    `protobuf:"varint,4,opt,name=boolValue" json:"boolValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PropertyValue) Descriptor

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

func (*PropertyValue) GetBoolValue

func (m *PropertyValue) GetBoolValue() bool

func (*PropertyValue) GetDoubleValue

func (m *PropertyValue) GetDoubleValue() float64

func (*PropertyValue) GetIntValue

func (m *PropertyValue) GetIntValue() int64

func (*PropertyValue) GetStrValue

func (m *PropertyValue) GetStrValue() string

func (*PropertyValue) Marshal

func (m *PropertyValue) Marshal() (dAtA []byte, err error)

func (*PropertyValue) MarshalTo

func (m *PropertyValue) MarshalTo(dAtA []byte) (int, error)

func (*PropertyValue) MarshalToSizedBuffer

func (m *PropertyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PropertyValue) ProtoMessage

func (*PropertyValue) ProtoMessage()

func (*PropertyValue) Reset

func (m *PropertyValue) Reset()

func (*PropertyValue) Size

func (m *PropertyValue) Size() (n int)

func (*PropertyValue) String

func (m *PropertyValue) String() string

func (*PropertyValue) Unmarshal

func (m *PropertyValue) Unmarshal(dAtA []byte) error

func (*PropertyValue) XXX_DiscardUnknown

func (m *PropertyValue) XXX_DiscardUnknown()

func (*PropertyValue) XXX_Marshal

func (m *PropertyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PropertyValue) XXX_Merge

func (m *PropertyValue) XXX_Merge(src proto.Message)

func (*PropertyValue) XXX_Size

func (m *PropertyValue) XXX_Size() int

func (*PropertyValue) XXX_Unmarshal

func (m *PropertyValue) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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