protocol

package
v0.0.0-...-7c4ebca Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationInstance

type ApplicationInstance struct {
	Name string `json:"name" bson:"name"`
}

* Application instance

type ApplicationInstanceMapInfo

type ApplicationInstanceMapInfo struct {
	Measurements map[string][]string `json:"measurements"`
}

* Application instance using map to save info

func NewApplicationInstanceMapInfo

func NewApplicationInstanceMapInfo() *ApplicationInstanceMapInfo

type ApplicationInstanceNodeMapping

type ApplicationInstanceNodeMapping struct {
	Key      string `json:"key" bson:"key"`
	Instance string `json:"instance" bson:"instance"`
	NodeIP   string `json:"node_ip" bson:"node_ip"`
}

* Application instance & node mapping

type GetApplicationInstancesMappingRequest

type GetApplicationInstancesMappingRequest struct {
	Instance string `json:"instance"`
}

type GetApplicationMetrixRequest

type GetApplicationMetrixRequest struct {
	IP       string `json:"ip"`
	Time     string `json:"time"`
	Instance string `json:"instance"`
}

type GetNodeMetrixRequest

type GetNodeMetrixRequest struct {
	IP   string `json:"ip"`
	Time string `json:"time"`
}

type GetNodesMappingRequest

type GetNodesMappingRequest struct {
	IP string `json:"ip"`
}

type GetNodesRequest

type GetNodesRequest struct {
	IP string `json:"ip"`
}

*

type Module

type Module struct {
	Project   string   `json:"project" bson:"project"`
	Service   string   `json:"service" bson:"service"`
	Name      string   `json:"module" bson:"module"`
	Instances []string `json:"instances" bson:"instances"`
}

type Node

type Node struct {
	NodeName string `json:"node_name" bson:"node_name"`
	NodeIP   string `json:"node_ip" bson:"node_ip"`

	HostName string `json:"host_name" bson:"host_name"`

	Platform  string `json:"platform" bson:"platform"`
	OS        string `json:"os" bson:"os"`
	OSVersion string `json:"os_version" bson:"os_version"`
	OSRelease string `json:"os_release" bson:"os_release"`

	MaxCPUs string `json:"max_cpus" bson:"max_cpus"`
	NCPUs   string `json:"ncpus" bson:"ncpus"`

	Bitwith string `json:"bitwidth" bson:"bitwidth"`

	Time string `json:"time" bson:"time"`
}

* Node

type NodeInstanceMapInfo

type NodeInstanceMapInfo struct {
	Measurements map[string][]string `json:"measurements"`
}

* Node instance using map to save info

func NewNodeInstanceMapInfo

func NewNodeInstanceMapInfo() *NodeInstanceMapInfo

type NodeMapInfo

type NodeMapInfo struct {
	Info map[string]string `json:"info"`
}

* Node using map to save info

func NewNodeMapInfo

func NewNodeMapInfo() *NodeMapInfo

type PageInfo

type PageInfo struct {
	Begin  int `json:"begin" bson:"begin"`
	Number int `json:"number" bson:"number"`
}

* Page information

func NewPageInfo

func NewPageInfo() *PageInfo

type Project

type Project struct {
	Name string `json:"project" bson:"project"`
}

* View

type Service

type Service struct {
	Project string `json:"project" bson:"project"`
	Name    string `json:"service" bson:"service"`
}

Jump to

Keyboard shortcuts

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