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.