types

package
v0.0.0-...-55f45e6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RPCFetch []RPCFetchConfig `yaml:"rpc_fetch,omitempty"`
}

Config is a struct that holds the configuration for the application.

type Field

type Field struct {
	Selector   string `yaml:"selector,omitempty"`
	MetricName string `yaml:"metric_name,omitempty"`
}

Field is a struct that holds the configuration for a field in the response.

type Label

type Label struct {
	Key   string `yaml:"key,omitempty"`
	Value string `yaml:"value,omitempty"`
}

Label is a struct that holds the configuration for a label in the response.

type RPCFetchConfig

type RPCFetchConfig struct {
	Method string  `yaml:"method,omitempty"`
	URL    string  `yaml:"url,omitempty"`
	Body   string  `yaml:"body,omitempty"`
	Fields []Field `yaml:"fields,omitempty"`
	Labels []Label `yaml:"labels,omitempty"`
}

RPCFetchConfig is a struct that holds conversion configuration for RPC response into Prometheus.

Jump to

Keyboard shortcuts

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