converter

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package converter handles conversion of health data to different formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVConverter

type CSVConverter interface {
	Convert(data *collector.HealthData, outputDir, timestamp string) (*CSVFiles, error)
}

CSVConverter defines the interface for converting health data to CSV format

func NewCSVConverter

func NewCSVConverter() CSVConverter

NewCSVConverter creates a new CSV converter

type CSVFiles

type CSVFiles struct {
	MetricsFile     string
	EventsFile      string
	ComponentsFile  string
	MachineInfoFile string
}

CSVFiles represents the collection of CSV files that can be generated

type OTLPConverter

type OTLPConverter interface {
	Convert(data *collector.HealthData) *OTLPData
}

OTLPConverter defines the interface for converting health data to OTLP format

func NewOTLPConverter

func NewOTLPConverter() OTLPConverter

NewOTLPConverter creates a new OTLP converter

type OTLPData

type OTLPData struct {
	Metrics *metricsv1.MetricsData
	Logs    *logsv1.LogsData
}

OTLPData holds both metrics and logs for OTLP export

Jump to

Keyboard shortcuts

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