model

package
Version: v0.0.0-...-701cacc Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentHeartbeatRequest

type AgentHeartbeatRequest struct {
	Hostname      string
	IP            string
	AgentVersion  string
	PluginVersion string
	ConfigVersion int64
}

type AgentHeartbeatResponse

type AgentHeartbeatResponse struct {
	ConfigModified bool
	ConfigVersion  int64
	PluginVersion  string
	PluginDirs     []string
	Plugins        []PluginParam // [{"_metric": "net.port.listen", "_step": 60, "port": 6379}, ...]
}

type MetricValue

type MetricValue struct {
	Endpoint  string            `json:"endpoint"`
	Metric    string            `json:"metric"`
	Value     float64           `json:"value"`
	Tags      map[string]string `json:"tags"`
	Desc      string            `json:"description"`
	Timestamp int64             `json:"timestamp"`
}

func (*MetricValue) PK

func (t *MetricValue) PK() string

func (*MetricValue) String

func (this *MetricValue) String() string

type NullRpcRequest

type NullRpcRequest struct {
}

type PluginParam

type PluginParam map[string]interface{}

type SimpleRpcResponse

type SimpleRpcResponse struct {
	Code int `json:"code"`
}

code == 0 => success code == 1 => bad request

func (*SimpleRpcResponse) String

func (this *SimpleRpcResponse) String() string

type TransferResponse

type TransferResponse struct {
	Message string
	Total   int
	Invalid int
	Latency int64
}

func (*TransferResponse) String

func (this *TransferResponse) String() string

Jump to

Keyboard shortcuts

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