hub

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHubClient

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

EventHubClient sends Prometheus samples to Event Hubs

func NewClient

func NewClient(cfg *EventHubConfig) (*EventHubClient, error)

NewClient creates a new event hub client

func (*EventHubClient) Close

func (c *EventHubClient) Close(ctx context.Context) error

Close shuts down an any active connections

func (*EventHubClient) Name

func (c *EventHubClient) Name() string

Name identifies the client path

func (*EventHubClient) ResetConfig added in v0.4.4

func (c *EventHubClient) ResetConfig(cfg *EventHubConfig) error

func (*EventHubClient) Write

func (c *EventHubClient) Write(ctx context.Context, samples model.Samples) error

Write creates and sends events from metric samples

type EventHubConfig

type EventHubConfig struct {
	Namespace    string
	Hub          string
	KeyName      string
	KeyValue     string
	ConnString   string
	TenantID     string
	ClientID     string
	ClientSecret string
	CertPath     string
	CertPassword string
	PartKeyLabel string
	Batch        bool
	ADXMapping   string
	Serializer   serializers.SerializerConfig
}

EventHubConfig for an Event Hub

Jump to

Keyboard shortcuts

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