telemetry

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdsecSyncTelemetry

type IdsecSyncTelemetry struct {
	Collectors []collectors.IdsecMetricsCollector
	Encoder    encoders.IdsecMetricsEncoder
	// contains filtered or unexported fields
}

IdsecSyncTelemetry represents telemetry data for IDSEC SDK applications.

func (*IdsecSyncTelemetry) CollectAndEncodeMetrics

func (a *IdsecSyncTelemetry) CollectAndEncodeMetrics() ([]byte, error)

CollectAndEncodeMetrics collects metrics from all collectors and encodes them using the specified encoder.

func (*IdsecSyncTelemetry) CollectorByName

func (a *IdsecSyncTelemetry) CollectorByName(name string) collectors.IdsecMetricsCollector

CollectorByName returns the IdsecMetricsCollector with the specified name, or nil if not found.

type IdsecTelemetry

type IdsecTelemetry interface {
	// CollectAndEncodeMetrics collects metrics from all collectors and encodes them.
	CollectAndEncodeMetrics() ([]byte, error)
	// CollectorByName returns the IdsecMetricsCollector with the specified name, or nil if not found.
	CollectorByName(name string) collectors.IdsecMetricsCollector
}

IdsecTelemetry represents telemetry data for IDSEC SDK applications.

func NewDefaultIdsecSyncTelemetry

func NewDefaultIdsecSyncTelemetry() IdsecTelemetry

NewDefaultIdsecSyncTelemetry creates a new IdsecTelemetry instance with default collectors and encoder.

func NewIdsecSyncTelemetry

func NewIdsecSyncTelemetry(metricsCollectors []collectors.IdsecMetricsCollector, encoder encoders.IdsecMetricsEncoder) IdsecTelemetry

NewIdsecSyncTelemetry creates a new instance of IdsecTelemetry with the specified collectors and encoder.

func NewLimitedIdsecSyncTelemetry

func NewLimitedIdsecSyncTelemetry() IdsecTelemetry

NewLimitedIdsecSyncTelemetry creates a new IdsecTelemetry instance with limited collectors and encoder.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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