go_micro_os_monitor

package
v0.0.0-...-2efaa0c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package go_micro_os_monitor is a generated protocol buffer package.

It is generated from these files:

github.com/micro/go-os/monitor/proto/monitor.proto

It has these top-level messages:

Service
Node
HealthCheck
Status
Stats
Endpoint
Metrics
CPU
Memory
Disk
Runtime

Index

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=userTime" json:"user_time,omitempty"`
	SystemTime   uint64 `protobuf:"varint,2,opt,name=system_time,json=systemTime" json:"system_time,omitempty"`
	VolCtxSwitch uint64 `protobuf:"varint,3,opt,name=vol_ctx_switch,json=volCtxSwitch" json:"vol_ctx_switch,omitempty"`
	InvCtxSwitch uint64 `protobuf:"varint,4,opt,name=inv_ctx_switch,json=invCtxSwitch" json:"inv_ctx_switch,omitempty"`
}

func (*CPU) Descriptor

func (*CPU) Descriptor() ([]byte, []int)

func (*CPU) ProtoMessage

func (*CPU) ProtoMessage()

func (*CPU) Reset

func (m *CPU) Reset()

func (*CPU) String

func (m *CPU) String() string

type Disk

type Disk struct {
	// blocks read from disk
	InBlock uint64 `protobuf:"varint,1,opt,name=in_block,json=inBlock" json:"in_block,omitempty"`
	// blocks written to disk
	OuBlock uint64 `protobuf:"varint,2,opt,name=ou_block,json=ouBlock" json:"ou_block,omitempty"`
}

func (*Disk) Descriptor

func (*Disk) Descriptor() ([]byte, []int)

func (*Disk) ProtoMessage

func (*Disk) ProtoMessage()

func (*Disk) Reset

func (m *Disk) Reset()

func (*Disk) String

func (m *Disk) String() string

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) Descriptor() ([]byte, []int)

func (*Endpoint) GetDropped

func (m *Endpoint) GetDropped() *Metrics

func (*Endpoint) GetErrors

func (m *Endpoint) GetErrors() *Metrics

func (*Endpoint) GetSuccess

func (m *Endpoint) GetSuccess() *Metrics

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset

func (m *Endpoint) Reset()

func (*Endpoint) String

func (m *Endpoint) String() string

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.os.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=maxRss" json:"max_rss,omitempty"`
}

func (*Memory) Descriptor

func (*Memory) Descriptor() ([]byte, []int)

func (*Memory) ProtoMessage

func (*Memory) ProtoMessage()

func (*Memory) Reset

func (m *Memory) Reset()

func (*Memory) String

func (m *Memory) String() string

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=stdDev" json:"std_dev,omitempty"`
	Upper95 float64 `protobuf:"fixed64,4,opt,name=upper95" json:"upper95,omitempty"`
}

func (*Metrics) Descriptor

func (*Metrics) Descriptor() ([]byte, []int)

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) Reset

func (m *Metrics) Reset()

func (*Metrics) String

func (m *Metrics) String() string

type Node

type Node struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*Node) Descriptor

func (*Node) Descriptor() ([]byte, []int)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type Runtime

type Runtime struct {
	NumThreads uint64 `protobuf:"varint,1,opt,name=num_threads,json=numThreads" json:"num_threads,omitempty"`
	HeapTotal  uint64 `protobuf:"varint,2,opt,name=heap_total,json=heapTotal" json:"heap_total,omitempty"`
	HeapInUse  uint64 `protobuf:"varint,3,opt,name=heap_in_use,json=heapInUse" json:"heap_in_use,omitempty"`
}

func (*Runtime) Descriptor

func (*Runtime) Descriptor() ([]byte, []int)

func (*Runtime) ProtoMessage

func (*Runtime) ProtoMessage()

func (*Runtime) Reset

func (m *Runtime) Reset()

func (*Runtime) String

func (m *Runtime) String() string

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) Descriptor() ([]byte, []int)

func (*Service) GetNodes

func (m *Service) GetNodes() []*Node

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

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) Descriptor() ([]byte, []int)

func (*Stats) GetCpu

func (m *Stats) GetCpu() *CPU

func (*Stats) GetDisk

func (m *Stats) GetDisk() *Disk

func (*Stats) GetEndpoints

func (m *Stats) GetEndpoints() []*Endpoint

func (*Stats) GetMemory

func (m *Stats) GetMemory() *Memory

func (*Stats) GetRuntime

func (m *Stats) GetRuntime() *Runtime

func (*Stats) GetService

func (m *Stats) GetService() *Service

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) Reset

func (m *Stats) Reset()

func (*Stats) String

func (m *Stats) String() string

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.os.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) Descriptor() ([]byte, []int)

func (*Status) GetService

func (m *Status) GetService() *Service

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

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

Jump to

Keyboard shortcuts

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