firelog

package
v2.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APIKey  = ""
	POST    = http.Post
	Marshal = json.Marshal

	// TODO: Implement a persistent client installation ID
	GetClientInstallID = uuid.NewString
)

Functions

func NewFireLogExporter

func NewFireLogExporter() (metric.Exporter, error)

Types

type ClientInfo

type ClientInfo struct {
	ClientType string `json:"client_type"`
}

type DataPoint

type DataPoint interface {
	// contains filtered or unexported methods
}

type DataPointFloat64

type DataPointFloat64 metricdata.DataPoint[float64]

type DataPointInt64

type DataPointInt64 metricdata.DataPoint[int64]

type EventMetadata

type EventMetadata []KeyValue

type Exporter

type Exporter struct {
}

func (*Exporter) Aggregation

func (e *Exporter) Aggregation(ik metric.InstrumentKind) metric.Aggregation

Aggregation returns the Aggregation to use for an instrument kind.

func (*Exporter) Export

func (*Exporter) ForceFlush

func (e *Exporter) ForceFlush(ctx context.Context) error

func (*Exporter) Shutdown

func (e *Exporter) Shutdown(ctx context.Context) error

func (*Exporter) Temporality

Temporality returns the Temporality to use for an instrument kind.

type Key

type Key string

func (Key) Value

func (k Key) Value(v string) KeyValue

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type LogEvent

type LogEvent struct {
	EventTimeMS                  int64  `json:"event_time_ms"`
	SourceExtensionJSONProto3Str string `json:"source_extension_json_proto3"`
}

type MetricData

type MetricData struct {
	ClientInfo    ClientInfo `json:"client_info"`
	LogSource     string     `json:"log_source"`
	LogEvent      LogEvent   `json:"log_event"`
	RequestTimeMS int64      `json:"request_time_ms"`
}

type SourceExtensionJSONProto3

type SourceExtensionJSONProto3 struct {
	ConsoleType     string     `json:"console_type"`
	ClientInstallID string     `json:"client_install_id"`
	EventName       string     `json:"event_name"`
	EventMetadata   []KeyValue `json:"event_metadata"`
}

Jump to

Keyboard shortcuts

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