rest

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMessage

func SetMessage(msg string) echo.Map

Types

type AgentType added in v0.4.2

type AgentType struct {
	ServiceType string `json:"service_type"`
	NsId        string `json:"ns_id"`

	// 쿠버네티스 모니터링
	Mck8sId      string `json:"mck8s_id"`
	APIServerURL string `json:"apiserver_url"`
	ServerCA     string `json:"server_ca"`
	ClientCA     string `json:"client_ca"`
	ClientKey    string `json:"client_key"`
	ClientToken  string `json:"client_token"`

	// MCIS 모니터링
	McisId   string `json:"mcis_id"`
	VmId     string `json:"vm_id"`
	PublicIp string `json:"public_ip"`
	UserName string `json:"user_name"`
	SshKey   string `json:"ssh_key"`
	CspType  string `json:"cspType"`
	Port     string `json:"port"`
}

type JSONResult added in v0.4.2

type JSONResult struct {
}

JSONResult's data field will be overridden by the specific type

type SimpleMsg added in v0.4.2

type SimpleMsg struct {
	Message string `json:"message" example:"Any message"`
}

type VMMonInfoTags added in v0.4.2

type VMMonInfoTags struct {
	HostId string `json:"host_id"`
}

type VMMonInfoType added in v0.4.2

type VMMonInfoType struct {
	Name   string            `json:"name"`
	Tags   VMMonInfoTags     `json:"tags"`
	Time   string            `json:"time"`
	Values []VMMonInfoValues `json:"values"`
}

type VMMonInfoValues added in v0.4.2

type VMMonInfoValues struct {
	Free        int     `json:"free"`
	ReadBytes   float64 `json:"read_bytes"`
	ReadTime    float64 `json:"read_time"`
	Reads       float64 `json:"reads"`
	Time        string  `json:"time"`
	Total       int     `json:"total"`
	Used        int     `json:"used"`
	UsedPercent float64 `json:"used_percent"`
	WriteBytes  float64 `json:"write_bytes"`
	WriteTime   float64 `json:"write_time"`
	Writes      float64 `json:"writes"`
}

type VMOnDemandMetricTags added in v0.4.2

type VMOnDemandMetricTags struct {
	McisId string `json:"mcis_id"`
	NsId   string `json:"ns_id"`
	VmId   string `json:"vm_id"`
}

type VMOnDemandMetricType added in v0.4.2

type VMOnDemandMetricType struct {
	Name   string                   `json:"name"`
	Tags   []VMOnDemandMetricTags   `json:"tags"`
	Time   string                   `json:"time"`
	Values []VMOnDemandMetricValues `json:"values"`
}

type VMOnDemandMetricValues added in v0.4.2

type VMOnDemandMetricValues struct {
	BytesIn  string `json:"bytes_in"`
	BytesOut string `json:"bytes_out"`
	PktsIn   string `json:"pkts_in"`
	// contains filtered or unexported fields
}

Directories

Path Synopsis
metric

Jump to

Keyboard shortcuts

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