Documentation ¶
Overview ¶
Package go_micro_platform_monitor is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-platform/monitor/proto/monitor.proto
It has these top-level messages:
Service Node HealthCheck Status Stats Endpoint Metrics CPU Memory Disk Runtime
Index ¶
- Variables
- type CPU
- type Disk
- type Endpoint
- type HealthCheck
- type HealthCheck_Status
- type Memory
- type Metrics
- type Node
- type Runtime
- type Service
- type Stats
- func (*Stats) Descriptor() ([]byte, []int)
- func (m *Stats) GetCpu() *CPU
- func (m *Stats) GetDisk() *Disk
- func (m *Stats) GetEndpoints() []*Endpoint
- func (m *Stats) GetMemory() *Memory
- func (m *Stats) GetRuntime() *Runtime
- func (m *Stats) GetService() *Service
- func (*Stats) ProtoMessage()
- func (m *Stats) Reset()
- func (m *Stats) String() string
- type Status
- type Status_Status
Constants ¶
This section is empty.
Variables ¶
View Source
var HealthCheck_Status_name = map[int32]string{
0: "UNKNOWN",
1: "OK",
2: "ERROR",
}
View Source
var HealthCheck_Status_value = map[string]int32{
"UNKNOWN": 0,
"OK": 1,
"ERROR": 2,
}
View Source
var Status_Status_name = map[int32]string{
0: "UNKNOWN",
1: "STARTED",
2: "RUNNING",
3: "STOPPED",
}
View Source
var Status_Status_value = map[string]int32{
"UNKNOWN": 0,
"STARTED": 1,
"RUNNING": 2,
"STOPPED": 3,
}
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct { UserTime uint64 `protobuf:"varint,1,opt,name=user_time" json:"user_time,omitempty"` SystemTime uint64 `protobuf:"varint,2,opt,name=system_time" json:"system_time,omitempty"` VolCtxSwitch uint64 `protobuf:"varint,3,opt,name=vol_ctx_switch" json:"vol_ctx_switch,omitempty"` InvCtxSwitch uint64 `protobuf:"varint,4,opt,name=inv_ctx_switch" json:"inv_ctx_switch,omitempty"` }
func (*CPU) Descriptor ¶
func (*CPU) ProtoMessage ¶
func (*CPU) ProtoMessage()
type Disk ¶
type Disk struct { // blocks read from disk InBlock uint64 `protobuf:"varint,1,opt,name=in_block" json:"in_block,omitempty"` // blocks written to disk OuBlock uint64 `protobuf:"varint,2,opt,name=ou_block" json:"ou_block,omitempty"` }
func (*Disk) Descriptor ¶
func (*Disk) ProtoMessage ¶
func (*Disk) ProtoMessage()
type Endpoint ¶
type Endpoint struct { Service string `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` // Name of the endpoint Method string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"` // Success and error rates Errors *Metrics `protobuf:"bytes,3,opt,name=errors" json:"errors,omitempty"` Success *Metrics `protobuf:"bytes,4,opt,name=success" json:"success,omitempty"` Dropped *Metrics `protobuf:"bytes,5,opt,name=dropped" json:"dropped,omitempty"` }
func (*Endpoint) Descriptor ¶
func (*Endpoint) GetDropped ¶
func (*Endpoint) GetSuccess ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
type HealthCheck ¶
type HealthCheck struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` Interval int64 `protobuf:"varint,4,opt,name=interval" json:"interval,omitempty"` Ttl int64 `protobuf:"varint,5,opt,name=ttl" json:"ttl,omitempty"` Service *Service `protobuf:"bytes,6,opt,name=service" json:"service,omitempty"` Status HealthCheck_Status `protobuf:"varint,7,opt,name=status,enum=go.micro.platform.monitor.HealthCheck_Status" json:"status,omitempty"` Results map[string]string `` /* 134-byte string literal not displayed */ Error string `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` }
func (*HealthCheck) Descriptor ¶
func (*HealthCheck) Descriptor() ([]byte, []int)
func (*HealthCheck) GetResults ¶
func (m *HealthCheck) GetResults() map[string]string
func (*HealthCheck) GetService ¶
func (m *HealthCheck) GetService() *Service
func (*HealthCheck) ProtoMessage ¶
func (*HealthCheck) ProtoMessage()
func (*HealthCheck) Reset ¶
func (m *HealthCheck) Reset()
func (*HealthCheck) String ¶
func (m *HealthCheck) String() string
type HealthCheck_Status ¶
type HealthCheck_Status int32
const ( HealthCheck_UNKNOWN HealthCheck_Status = 0 HealthCheck_OK HealthCheck_Status = 1 HealthCheck_ERROR HealthCheck_Status = 2 )
func (HealthCheck_Status) EnumDescriptor ¶
func (HealthCheck_Status) EnumDescriptor() ([]byte, []int)
func (HealthCheck_Status) String ¶
func (x HealthCheck_Status) String() string
type Memory ¶
type Memory struct {
MaxRss uint64 `protobuf:"varint,1,opt,name=max_rss" json:"max_rss,omitempty"`
}
func (*Memory) Descriptor ¶
func (*Memory) ProtoMessage ¶
func (*Memory) ProtoMessage()
type Metrics ¶
type Metrics struct { Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` Mean float64 `protobuf:"fixed64,2,opt,name=mean" json:"mean,omitempty"` StdDev float64 `protobuf:"fixed64,3,opt,name=std_dev" json:"std_dev,omitempty"` Upper95 float64 `protobuf:"fixed64,4,opt,name=upper95" json:"upper95,omitempty"` }
func (*Metrics) Descriptor ¶
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
type Node ¶
type Node struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*Node) Descriptor ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type Runtime ¶
type Runtime struct { NumThreads uint64 `protobuf:"varint,1,opt,name=num_threads" json:"num_threads,omitempty"` HeapTotal uint64 `protobuf:"varint,2,opt,name=heap_total" json:"heap_total,omitempty"` HeapInUse uint64 `protobuf:"varint,3,opt,name=heap_in_use" json:"heap_in_use,omitempty"` }
func (*Runtime) Descriptor ¶
func (*Runtime) ProtoMessage ¶
func (*Runtime) ProtoMessage()
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Nodes []*Node `protobuf:"bytes,3,rep,name=nodes" json:"nodes,omitempty"` }
func (*Service) Descriptor ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
type Stats ¶
type Stats struct { Service *Service `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` Interval int64 `protobuf:"varint,3,opt,name=interval" json:"interval,omitempty"` Ttl int64 `protobuf:"varint,4,opt,name=ttl" json:"ttl,omitempty"` Cpu *CPU `protobuf:"bytes,5,opt,name=cpu" json:"cpu,omitempty"` Memory *Memory `protobuf:"bytes,6,opt,name=memory" json:"memory,omitempty"` Disk *Disk `protobuf:"bytes,7,opt,name=disk" json:"disk,omitempty"` Runtime *Runtime `protobuf:"bytes,8,opt,name=runtime" json:"runtime,omitempty"` Endpoints []*Endpoint `protobuf:"bytes,9,rep,name=endpoints" json:"endpoints,omitempty"` }
func (*Stats) Descriptor ¶
func (*Stats) GetEndpoints ¶
func (*Stats) GetRuntime ¶
func (*Stats) GetService ¶
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
type Status ¶
type Status struct { Service *Service `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` Status Status_Status `protobuf:"varint,2,opt,name=status,enum=go.micro.platform.monitor.Status_Status" json:"status,omitempty"` Info string `protobuf:"bytes,3,opt,name=info" json:"info,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` Interval int64 `protobuf:"varint,5,opt,name=interval" json:"interval,omitempty"` Ttl int64 `protobuf:"varint,6,opt,name=ttl" json:"ttl,omitempty"` }
func (*Status) Descriptor ¶
func (*Status) GetService ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
type Status_Status ¶
type Status_Status int32
const ( Status_UNKNOWN Status_Status = 0 Status_STARTED Status_Status = 1 Status_RUNNING Status_Status = 2 Status_STOPPED Status_Status = 3 )
func (Status_Status) EnumDescriptor ¶
func (Status_Status) EnumDescriptor() ([]byte, []int)
func (Status_Status) String ¶
func (x Status_Status) String() string
Click to show internal directories.
Click to hide internal directories.