Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPointerToInt64 ¶ added in v1.0.2
GetpointerToInt64 does that
Types ¶
type BinaryAnnotation ¶
type BinaryAnnotation struct { Endpoint *trace.Endpoint `json:"endpoint"` Key *string `json:"key"` Value *interface{} `json:"value"` }
BinaryAnnotation associates an event that explains latency with a timestamp.
func (BinaryAnnotation) MarshalEasyJSON ¶
func (v BinaryAnnotation) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BinaryAnnotation) MarshalJSON ¶
func (v BinaryAnnotation) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BinaryAnnotation) UnmarshalEasyJSON ¶
func (v *BinaryAnnotation) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BinaryAnnotation) UnmarshalJSON ¶
func (v *BinaryAnnotation) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type BodySendFormatV2 ¶
type BodySendFormatV2 struct { Metric string `json:"metric"` Timestamp int64 `json:"timestamp"` Value ValueToSend `json:"value"` Dimensions map[string]string `json:"dimensions"` }
BodySendFormatV2 is the JSON format signalfx datapoints are expected to be in
func (BodySendFormatV2) MarshalEasyJSON ¶
func (v BodySendFormatV2) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BodySendFormatV2) MarshalJSON ¶
func (v BodySendFormatV2) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BodySendFormatV2) String ¶
func (bodySendFormat *BodySendFormatV2) String() string
func (*BodySendFormatV2) UnmarshalEasyJSON ¶
func (v *BodySendFormatV2) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BodySendFormatV2) UnmarshalJSON ¶
func (v *BodySendFormatV2) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventSendFormatV2 ¶
type EventSendFormatV2 struct { EventType string `json:"eventType"` Category *string `json:"category"` Dimensions map[string]string `json:"dimensions"` Properties map[string]interface{} `json:"properties"` Timestamp *int64 `json:"timestamp"` }
EventSendFormatV2 is the JSON format signalfx datapoints are expected to be in
func (EventSendFormatV2) MarshalEasyJSON ¶
func (v EventSendFormatV2) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventSendFormatV2) MarshalJSON ¶
func (v EventSendFormatV2) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventSendFormatV2) UnmarshalEasyJSON ¶
func (v *EventSendFormatV2) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventSendFormatV2) UnmarshalJSON ¶
func (v *EventSendFormatV2) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type InputAnnotation ¶
type InputAnnotation struct { Endpoint *trace.Endpoint `json:"endpoint"` Timestamp *float64 `json:"timestamp"` Value *string `json:"value"` }
InputAnnotation associates an event that explains latency with a timestamp. Unlike log statements, annotations are often codes. Ex. “ws” for WireSend
func (InputAnnotation) MarshalEasyJSON ¶
func (v InputAnnotation) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InputAnnotation) MarshalJSON ¶
func (v InputAnnotation) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InputAnnotation) ToV2 ¶
func (a *InputAnnotation) ToV2() *trace.Annotation
ToV2 converts an InputAnnotation to a V2 InputAnnotation, which basically means dropping the endpoint. The endpoint must be considered in other logic to know which span to associate the endpoint with.
func (*InputAnnotation) UnmarshalEasyJSON ¶
func (v *InputAnnotation) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InputAnnotation) UnmarshalJSON ¶
func (v *InputAnnotation) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type InputSpan ¶
type InputSpan struct { trace.Span Timestamp *float64 `json:"timestamp"` Duration *float64 `json:"duration"` Annotations []*InputAnnotation `json:"annotations"` BinaryAnnotations []*BinaryAnnotation `json:"binaryAnnotations"` }
InputSpan defines a span that is the union of v1 and v2 spans
func (InputSpan) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (InputSpan) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*InputSpan) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InputSpan) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type InputSpanList ¶
type InputSpanList []*InputSpan
InputSpanList is an array of InputSpan pointers
func (InputSpanList) MarshalEasyJSON ¶
func (v InputSpanList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InputSpanList) MarshalJSON ¶
func (v InputSpanList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InputSpanList) UnmarshalEasyJSON ¶
func (v *InputSpanList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InputSpanList) UnmarshalJSON ¶
func (v *InputSpanList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type JSONDatapointV1 ¶
type JSONDatapointV1 struct { //easyjson:json Source string `json:"source"` Metric string `json:"metric"` Value float64 `json:"value"` }
JSONDatapointV1 is the JSON API format for /v1/datapoint
func (JSONDatapointV1) MarshalEasyJSON ¶
func (v JSONDatapointV1) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (JSONDatapointV1) MarshalJSON ¶
func (v JSONDatapointV1) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*JSONDatapointV1) UnmarshalEasyJSON ¶
func (v *JSONDatapointV1) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*JSONDatapointV1) UnmarshalJSON ¶
func (v *JSONDatapointV1) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type JSONDatapointV2 ¶
type JSONDatapointV2 map[string][]*BodySendFormatV2
JSONDatapointV2 is the V2 json datapoint sending format
func (JSONDatapointV2) MarshalEasyJSON ¶
func (v JSONDatapointV2) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (JSONDatapointV2) MarshalJSON ¶
func (v JSONDatapointV2) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*JSONDatapointV2) UnmarshalEasyJSON ¶
func (v *JSONDatapointV2) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*JSONDatapointV2) UnmarshalJSON ¶
func (v *JSONDatapointV2) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type JSONEventV2 ¶
type JSONEventV2 []*EventSendFormatV2
JSONEventV2 is the V2 json event sending format
func (JSONEventV2) MarshalEasyJSON ¶
func (v JSONEventV2) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (JSONEventV2) MarshalJSON ¶
func (v JSONEventV2) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*JSONEventV2) UnmarshalEasyJSON ¶
func (v *JSONEventV2) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*JSONEventV2) UnmarshalJSON ¶
func (v *JSONEventV2) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ValueToSend ¶
type ValueToSend interface{}
ValueToSend are values are sent from the gateway to a receiver for the datapoint