Documentation ¶
Index ¶
Constants ¶
View Source
const RequestFailedCallbackKey key = 1
View Source
const RequestSuccessCallbackKey key = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DimensionClient ¶
type DimensionClient struct { sync.RWMutex Token string APIURL *url.URL // contains filtered or unexported fields }
DimensionClient sends updates to dimensions to the SignalFx API This is a port of https://github.com/signalfx/signalfx-agent/blob/main/pkg/core/writer/dimensions/client.go with the only major difference being deduplication of dimension updates are currently not done by this port.
func NewDimensionClient ¶
func NewDimensionClient(ctx context.Context, options DimensionClientOptions) *DimensionClient
NewDimensionClient returns a new client
func (*DimensionClient) PushMetadata ¶
func (dc *DimensionClient) PushMetadata(metadata []*metadata.MetadataUpdate) error
func (*DimensionClient) Start ¶
func (dc *DimensionClient) Start()
Start the client's processing queue
type DimensionClientOptions ¶
type DimensionKey ¶
DimensionKey is what uniquely identifies a dimension, its name and value together.
func (DimensionKey) String ¶
func (dk DimensionKey) String() string
type DimensionUpdate ¶
type DimensionUpdate struct { Name string Value string Properties map[string]*string Tags map[string]bool }
func (*DimensionUpdate) Key ¶
func (d *DimensionUpdate) Key() DimensionKey
func (*DimensionUpdate) String ¶
func (d *DimensionUpdate) String() string
type MetadataUpdateClient ¶
type MetadataUpdateClient interface {
PushMetadata([]*metadata.MetadataUpdate) error
}
MetadataUpdateClient is an interface for pushing metadata updates
type ReqSender ¶
type ReqSender struct {
// contains filtered or unexported fields
}
ReqSender is a direct port of https://github.com/signalfx/signalfx-agent/blob/main/pkg/core/writer/requests/sender.go.
func NewReqSender ¶
type RequestFailedCallback ¶
type RequestSuccessCallback ¶
type RequestSuccessCallback func([]byte)
Click to show internal directories.
Click to hide internal directories.