api

package
v0.0.0-...-8ef2c1b Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Result []MetricValue `json:"result"`
}

type Final

type Final struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Value string `json:"value"`
}

func MetricValueToFinal

func MetricValueToFinal(metricValues []MetricValue) []Final

func Request

func Request(url, username, password string) []Final

type Metric

type Metric struct {
	Id       string `json:"id"`
	Image    string `json:"image"`
	Instance string `json:"instance"`
	Job      string `json:"job"`
	Name     string `json:"name"`
}

type MetricValue

type MetricValue struct {
	Metric Metric        `json:"metric"`
	Value  []interface{} `json:"value"`
}

type Response

type Response struct {
	Data Data `json:"data"`
}

Jump to

Keyboard shortcuts

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