yamasreceiver

package module
v0.0.0-...-76da987 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ReceiverFactory

NewFactory creates a new Yamas receiver factory. r teh component.NewReceiverFactory func implements factory interface for receivers

func ToMetrics

func ToMetrics(yamasDataPoints []*DataPoint) (pdata.Metrics, error)

ToMetrics converts SignalFx proto data points to pdata.Metrics.

Types

type Config

type Config struct {
	config.ReceiverSettings       `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct
	confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct

}

Config defines configuration for the SignalFx receiver.

type DataPoint

type DataPoint struct {
	Application          string `protobuf:"bytes,1,opt,name=source" json:"application"`
	Timestamp            int64  `protobuf:"varint,3,opt,name=timestamp" json:"timestamp"`
	Metric               string
	Value                float64
	Dimensions           map[string]string `protobuf:"bytes,6,rep,name=dimensions" json:"dimensions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*DataPoint) GetApplication

func (m *DataPoint) GetApplication() string

func (*DataPoint) GetTimestamp

func (m *DataPoint) GetTimestamp() int64

func (*DataPoint) GetValue

func (m *DataPoint) GetValue() float64

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) GetDatapoints

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

type DataPoints

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

func (*DataPoints) UnmarshalJSON

func (n *DataPoints) UnmarshalJSON(dAtA []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) GetKey

func (m *Dimension) GetKey() string

func (*Dimension) GetValue

func (m *Dimension) GetValue() string

Jump to

Keyboard shortcuts

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