model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 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 Agent

type Agent struct {
	Host    string `json:"host"`
	Version string `json:"version"`
	PID     int    `json:"pid"`
}

Agent encapsulates the agent info

type MetricValue

type MetricValue struct {
	Min          float64 `json:"min"`
	Max          float64 `json:"max"`
	Total        float64 `json:"total"`
	Count        int     `json:"count"`
	SumOfSquares float64 `json:"sum_of_squares"`
}

type PluginSnapshot

type PluginSnapshot struct {
	Name        string                 `json:"name"`
	GUID        string                 `json:"guid"`
	DurationSec int                    `json:"duration"`
	Metrics     map[string]interface{} `json:"metrics"`
}

PluginSnapshot encapsulates the current, unset state of a component

type Request

type Request struct {
	Agent   Agent            `json:"agent"`
	Plugins []PluginSnapshot `json:"components"`
}

Request is the container that holds a JSON request

Jump to

Keyboard shortcuts

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