ibmsoftwarecentralexporter

package module
v0.0.0-...-906bb25 Latest Latest
Warning

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

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

README

IBM Software Central Exporter

Documentation

Index

Constants

View Source
const (
	DefaultEndpoint = "https://swc.saas.ibm.com/metering/api/v2/metrics"
)

Variables

View Source
var ErrWriteSizeMismatch = errors.New("tar wrote zero or wrong size bytes")

Functions

func NewFactory

func NewFactory() exporter.Factory

NewFactory returns a new factory for the ibmsoftwarecentral exporter.

Types

type Config

type Config struct {
	confighttp.ClientConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.

	QueueSettings exporterhelper.QueueConfig `mapstructure:"sending_queue"`

	configretry.BackOffConfig `mapstructure:"retry_on_failure"`

	TimeoutSettings exporterhelper.TimeoutConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct
}

Config defines configuration for IBM Software Central exporter.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate the configuration for errors. This is required by component.Config.

type TarGzipPool

type TarGzipPool struct {
	gp.GzipPool
}

func (*TarGzipPool) TGZ

func (pool *TarGzipPool) TGZ(uuid string, manifest []byte, data []byte) ([]byte, error)

Directories

Path Synopsis
api
internal

Jump to

Keyboard shortcuts

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