parser

package
v0.0.0-...-342b9f8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration

func ParseDuration(duration string) (dur time.Duration, err error)

func ParseRequest

func ParseRequest(content interface{}) (req []byte, err error)

Types

type Arcentry

type Arcentry struct {
	ApiKey string `yaml:"apiKey"`
	DocId  string `yaml:"docId"`
}

type ChartDocument

type ChartDocument struct {
	Data       [][]float64 `json:"data"`
	MaxY       float64     `json:"maxY"`
	MinY       float64     `json:"minY"`
	YAxisSpace string      `json:"yAxisSpace"`
}

type Config

type Config struct {
	Config struct {
		Arcentry Arcentry
		Watch    struct {
			Interval string
		}
		Containers []map[string]Container
	}
}

func ReadConfig

func ReadConfig(bytes []byte) (config *Config, err error)

type Container

type Container struct {
	Chart Item
	Text  Item
}

type Item

type Item struct {
	Cpu    string
	Memory string
}

type Request

type Request struct {
	Objects map[string]interface{} `json:"objects"`
}

type Stat

type Stat struct {
	Container string
	Memory    struct {
		Raw     string
		Percent string
	}
	Cpu string
}

func ReadStat

func ReadStat(content string) (stat *Stat, err error)

type TextDocument

type TextDocument struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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