structures

package
v0.0.0-...-da6ad7e Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 1 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 {
	CacheTime         string        `json:"cache_time"`
	CacheTimeDuration time.Duration `json:"-"`
	Hosts             []ConfigHosts `json:"hosts"`
}

type ConfigHosts

type ConfigHosts struct {
	Name      string     `json:"prometheusName"`
	Endpoints []Endpoint `json:"endpoints"`
}

type Endpoint

type Endpoint struct {
	Name        string                 `json:"name"`
	Headers     map[string]string      `json:"headers"`
	ExtractJson map[string]ExtractData `json:"extractJson"`
}

type ExtractData

type ExtractData struct {
	FieldName string         `json:"fieldName"`
	Values    map[string]int `json:"values"`
}

Jump to

Keyboard shortcuts

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