clientfx

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package clientfx provides clients for the Chronosphere API.

Index

Constants

This section is empty.

Variables

View Source
var (
	Module = fx.Provide(
		NewProvider,
	)
)

Functions

This section is empty.

Types

type ChronosphereConfig

type ChronosphereConfig struct {
	APIURL           string `yaml:"apiURL" validate:"nonzero"`
	APIToken         string `yaml:"apiToken"`
	UseLogscale      bool   `yaml:"useLogscale"`
	LogscaleURL      string `yaml:"logscaleURL"`
	LogscaleAPIToken string `yaml:"logscaleAPIToken"`
}

func (*ChronosphereConfig) Validate

func (c *ChronosphereConfig) Validate() error

type Component

type Component string

Component is a value that indicates the part of the CLI that is invoking an API. This is used to set the User-Agent header when making requests to the Chronosphere API.

type Provider

type Provider struct {
	fx.Out

	PrometheusData api.Client `fx:"PrometheusData"`
	ConfigV1       *configv1.ConfigV1API
	DataUnstable   *dataunstable.DataUnstableAPI
	DataV1         *datav1.DataV1API
	StateUnstable  *stateunstable.StateUnstableAPI
	LogScale       logscale.Client `fx:"logscaleClient"`
}

func NewProvider

func NewProvider(apiConfig *ChronosphereConfig) (Provider, error)

Directories

Path Synopsis
Package logscale contains LogScale query client
Package logscale contains LogScale query client

Jump to

Keyboard shortcuts

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