models

package
v0.0.0-...-9853328 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistogramOpts

type HistogramOpts struct {
	MetricsOpts
	Buckets []float64 `json:"buckets"`
}

type HistogramVecOpts

type HistogramVecOpts struct {
	prometheus.HistogramOpts
	Lables []string `json:"labels"`
}

type MetricsOpts

type MetricsOpts struct {
	Namespace string `json:"nameSpace"`
	Subsystem string `json:"subSystem"`
	Name      string `json:"name"`
	Help      string `json:"help"`
}

type MetricsVecOpts

type MetricsVecOpts struct {
	prometheus.Opts
	Lables []string `json:"labels"`
}

type SummaryOpts

type SummaryOpts struct {
	MetricsOpts
	Objectives map[string]float64 `json:"objectives"`
	MaxAge     time.Duration      `json:"maxAge"`
	AgeBuckets uint32             `json:"ageBuckets"`
	BufCap     uint32             `json:"bufCap"`
}

func (SummaryOpts) Adapter

func (opt SummaryOpts) Adapter() prometheus.SummaryOpts

type SummaryVecOpts

type SummaryVecOpts struct {
	SummaryOpts
	Lables []string `json:"labels"`
}

Jump to

Keyboard shortcuts

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