internal

package
v0.0.0-...-d8b2754 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTimestampSeconds

func IsTimestampSeconds(timestamp FlexUInt64) bool

Types

type FlexUInt64

type FlexUInt64 uint64

func (*FlexUInt64) UnmarshalJSON

func (i *FlexUInt64) UnmarshalJSON(payload []byte) error

UnmarshalJSON decodes JSON

implements json.Unmarshaler interface

from: https://github.com/gildas/go-core/blob/master/flexint.go

type HttpHandler

type HttpHandler struct {
	// contains filtered or unexported fields
}

func NewHttpHandler

func NewHttpHandler(logger *zap.Logger, consumer consumer.Metrics, obsrecv *receiverhelper.ObsReport) *HttpHandler

func (*HttpHandler) HandleWrite

func (h *HttpHandler) HandleWrite(w http.ResponseWriter, req *http.Request)

func (*HttpHandler) NewHttpRouter

func (h *HttpHandler) NewHttpRouter() *http.ServeMux

type JsonDeserializationUnrecoverableError

type JsonDeserializationUnrecoverableError struct {
	// contains filtered or unexported fields
}

func (*JsonDeserializationUnrecoverableError) Error

type JsonSerializer

type JsonSerializer struct {
	// contains filtered or unexported fields
}

func NewJsonSerializer

func NewJsonSerializer(logger *zap.Logger) *JsonSerializer

func (*JsonSerializer) Serialize

func (j *JsonSerializer) Serialize(input io.ReadCloser) (metrics []*OpenTSDBMetric, errs []error)

type OpenTSDBMetric

type OpenTSDBMetric struct {
	Metric    string            `json:"metric"`
	Timestamp FlexUInt64        `json:"timestamp"`
	Value     json.Number       `json:"value"`
	Tags      map[string]string `json:"tags"`
}

func (*OpenTSDBMetric) ToOtel

func (o *OpenTSDBMetric) ToOtel() pmetric.Metric

Jump to

Keyboard shortcuts

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