cockroach: github.com/cockroachdb/cockroach/pkg/server/status/statuspb Index | Files

package statuspb

import "github.com/cockroachdb/cockroach/pkg/server/status/statuspb"

Index

Package Files

status.pb.go

Variables

var (
    ErrInvalidLengthStatus = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowStatus   = fmt.Errorf("proto: integer overflow")
)
var HealthAlert_Category_name = map[int32]string{
    0:  "METRICS",
    1:  "NETWORK",
}
var HealthAlert_Category_value = map[string]int32{
    "METRICS": 0,
    "NETWORK": 1,
}

type HealthAlert Uses

type HealthAlert struct {
    // store_id is zero for alerts not specific to a store (i.e. apply at the node level).
    StoreID     github_com_cockroachdb_cockroach_pkg_roachpb.StoreID `protobuf:"varint,1,opt,name=store_id,json=storeId,proto3,customtype=github.com/cockroachdb/cockroach/pkg/roachpb.StoreID" json:"store_id"`
    Category    HealthAlert_Category                                 `protobuf:"varint,2,opt,name=category,proto3,enum=cockroach.server.status.statuspb.HealthAlert_Category" json:"category,omitempty"`
    Description string                                               `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
    Value       float64                                              `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"`
}

A HealthAlert is an undesired condition detected by a server which should be exposed to the operators.

func (*HealthAlert) Descriptor Uses

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

func (*HealthAlert) Marshal Uses

func (m *HealthAlert) Marshal() (dAtA []byte, err error)

func (*HealthAlert) MarshalTo Uses

func (m *HealthAlert) MarshalTo(dAtA []byte) (int, error)

func (*HealthAlert) ProtoMessage Uses

func (*HealthAlert) ProtoMessage()

func (*HealthAlert) Reset Uses

func (m *HealthAlert) Reset()

func (*HealthAlert) Size Uses

func (m *HealthAlert) Size() (n int)

func (*HealthAlert) String Uses

func (m *HealthAlert) String() string

func (*HealthAlert) Unmarshal Uses

func (m *HealthAlert) Unmarshal(dAtA []byte) error

func (*HealthAlert) XXX_DiscardUnknown Uses

func (m *HealthAlert) XXX_DiscardUnknown()

func (*HealthAlert) XXX_Marshal Uses

func (m *HealthAlert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthAlert) XXX_Merge Uses

func (dst *HealthAlert) XXX_Merge(src proto.Message)

func (*HealthAlert) XXX_Size Uses

func (m *HealthAlert) XXX_Size() int

func (*HealthAlert) XXX_Unmarshal Uses

func (m *HealthAlert) XXX_Unmarshal(b []byte) error

type HealthAlert_Category Uses

type HealthAlert_Category int32
const (
    HealthAlert_METRICS HealthAlert_Category = 0
    HealthAlert_NETWORK HealthAlert_Category = 1
)

func (HealthAlert_Category) EnumDescriptor Uses

func (HealthAlert_Category) EnumDescriptor() ([]byte, []int)

func (HealthAlert_Category) String Uses

func (x HealthAlert_Category) String() string

type HealthCheckResult Uses

type HealthCheckResult struct {
    Alerts []HealthAlert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts"`
}

HealthCheckResult holds a number of HealthAlerts.

func (*HealthCheckResult) Descriptor Uses

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

func (*HealthCheckResult) Marshal Uses

func (m *HealthCheckResult) Marshal() (dAtA []byte, err error)

func (*HealthCheckResult) MarshalTo Uses

func (m *HealthCheckResult) MarshalTo(dAtA []byte) (int, error)

func (*HealthCheckResult) ProtoMessage Uses

func (*HealthCheckResult) ProtoMessage()

func (*HealthCheckResult) Reset Uses

func (m *HealthCheckResult) Reset()

func (*HealthCheckResult) Size Uses

func (m *HealthCheckResult) Size() (n int)

func (*HealthCheckResult) String Uses

func (m *HealthCheckResult) String() string

func (*HealthCheckResult) Unmarshal Uses

func (m *HealthCheckResult) Unmarshal(dAtA []byte) error

func (*HealthCheckResult) XXX_DiscardUnknown Uses

func (m *HealthCheckResult) XXX_DiscardUnknown()

func (*HealthCheckResult) XXX_Marshal Uses

func (m *HealthCheckResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthCheckResult) XXX_Merge Uses

func (dst *HealthCheckResult) XXX_Merge(src proto.Message)

func (*HealthCheckResult) XXX_Size Uses

func (m *HealthCheckResult) XXX_Size() int

func (*HealthCheckResult) XXX_Unmarshal Uses

func (m *HealthCheckResult) XXX_Unmarshal(b []byte) error

type NodeStatus Uses

type NodeStatus struct {
    Desc          roachpb.NodeDescriptor `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc"`
    BuildInfo     build.Info             `protobuf:"bytes,2,opt,name=build_info,json=buildInfo,proto3" json:"build_info"`
    StartedAt     int64                  `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
    UpdatedAt     int64                  `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
    Metrics       map[string]float64     `protobuf:"bytes,5,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
    StoreStatuses []StoreStatus          `protobuf:"bytes,6,rep,name=store_statuses,json=storeStatuses,proto3" json:"store_statuses"`
    Args          []string               `protobuf:"bytes,7,rep,name=args,proto3" json:"args,omitempty"`
    Env           []string               `protobuf:"bytes,8,rep,name=env,proto3" json:"env,omitempty"`
    // latencies is a map of nodeIDs to nanoseconds which is the latency
    // between this node and the other node.
    //
    // NOTE: this is deprecated and is only set if the min supported
    //       cluster version is >= VersionRPCNetworkStats.
    Latencies map[github_com_cockroachdb_cockroach_pkg_roachpb.NodeID]int64 `protobuf:"bytes,9,rep,name=latencies,proto3,castkey=github.com/cockroachdb/cockroach/pkg/roachpb.NodeID" json:"latencies" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
    // activity is a map of nodeIDs to network statistics from this node
    // to other nodes.
    Activity map[github_com_cockroachdb_cockroach_pkg_roachpb.NodeID]NodeStatus_NetworkActivity `protobuf:"bytes,10,rep,name=activity,proto3,castkey=github.com/cockroachdb/cockroach/pkg/roachpb.NodeID" json:"activity" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // total_system_memory is the total RAM available to the system
    // (or, if possible, the memory available to the cgroup this process is in)
    // in bytes.
    TotalSystemMemory int64 `protobuf:"varint,11,opt,name=total_system_memory,json=totalSystemMemory,proto3" json:"total_system_memory,omitempty"`
    // num_cpus is the number of logical CPUs on this machine.
    NumCpus int32 `protobuf:"varint,12,opt,name=num_cpus,json=numCpus,proto3" json:"num_cpus,omitempty"`
}

NodeStatus records the most recent values of metrics for a node.

func (*NodeStatus) Descriptor Uses

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

func (*NodeStatus) Marshal Uses

func (m *NodeStatus) Marshal() (dAtA []byte, err error)

func (*NodeStatus) MarshalTo Uses

func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error)

func (*NodeStatus) ProtoMessage Uses

func (*NodeStatus) ProtoMessage()

func (*NodeStatus) Reset Uses

func (m *NodeStatus) Reset()

func (*NodeStatus) Size Uses

func (m *NodeStatus) Size() (n int)

func (*NodeStatus) String Uses

func (m *NodeStatus) String() string

func (*NodeStatus) Unmarshal Uses

func (m *NodeStatus) Unmarshal(dAtA []byte) error

func (*NodeStatus) XXX_DiscardUnknown Uses

func (m *NodeStatus) XXX_DiscardUnknown()

func (*NodeStatus) XXX_Marshal Uses

func (m *NodeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeStatus) XXX_Merge Uses

func (dst *NodeStatus) XXX_Merge(src proto.Message)

func (*NodeStatus) XXX_Size Uses

func (m *NodeStatus) XXX_Size() int

func (*NodeStatus) XXX_Unmarshal Uses

func (m *NodeStatus) XXX_Unmarshal(b []byte) error

type NodeStatus_NetworkActivity Uses

type NodeStatus_NetworkActivity struct {
    Incoming int64 `protobuf:"varint,1,opt,name=incoming,proto3" json:"incoming,omitempty"`
    Outgoing int64 `protobuf:"varint,2,opt,name=outgoing,proto3" json:"outgoing,omitempty"`
    Latency  int64 `protobuf:"varint,3,opt,name=latency,proto3" json:"latency,omitempty"`
}

func (*NodeStatus_NetworkActivity) Descriptor Uses

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

func (*NodeStatus_NetworkActivity) Marshal Uses

func (m *NodeStatus_NetworkActivity) Marshal() (dAtA []byte, err error)

func (*NodeStatus_NetworkActivity) MarshalTo Uses

func (m *NodeStatus_NetworkActivity) MarshalTo(dAtA []byte) (int, error)

func (*NodeStatus_NetworkActivity) ProtoMessage Uses

func (*NodeStatus_NetworkActivity) ProtoMessage()

func (*NodeStatus_NetworkActivity) Reset Uses

func (m *NodeStatus_NetworkActivity) Reset()

func (*NodeStatus_NetworkActivity) Size Uses

func (m *NodeStatus_NetworkActivity) Size() (n int)

func (*NodeStatus_NetworkActivity) String Uses

func (m *NodeStatus_NetworkActivity) String() string

func (*NodeStatus_NetworkActivity) Unmarshal Uses

func (m *NodeStatus_NetworkActivity) Unmarshal(dAtA []byte) error

func (*NodeStatus_NetworkActivity) XXX_DiscardUnknown Uses

func (m *NodeStatus_NetworkActivity) XXX_DiscardUnknown()

func (*NodeStatus_NetworkActivity) XXX_Marshal Uses

func (m *NodeStatus_NetworkActivity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeStatus_NetworkActivity) XXX_Merge Uses

func (dst *NodeStatus_NetworkActivity) XXX_Merge(src proto.Message)

func (*NodeStatus_NetworkActivity) XXX_Size Uses

func (m *NodeStatus_NetworkActivity) XXX_Size() int

func (*NodeStatus_NetworkActivity) XXX_Unmarshal Uses

func (m *NodeStatus_NetworkActivity) XXX_Unmarshal(b []byte) error

type StoreStatus Uses

type StoreStatus struct {
    Desc    roachpb.StoreDescriptor `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc"`
    Metrics map[string]float64      `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
}

StoreStatus records the most recent values of metrics for a store.

func (*StoreStatus) Descriptor Uses

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

func (*StoreStatus) Marshal Uses

func (m *StoreStatus) Marshal() (dAtA []byte, err error)

func (*StoreStatus) MarshalTo Uses

func (m *StoreStatus) MarshalTo(dAtA []byte) (int, error)

func (*StoreStatus) ProtoMessage Uses

func (*StoreStatus) ProtoMessage()

func (*StoreStatus) Reset Uses

func (m *StoreStatus) Reset()

func (*StoreStatus) Size Uses

func (m *StoreStatus) Size() (n int)

func (*StoreStatus) String Uses

func (m *StoreStatus) String() string

func (*StoreStatus) Unmarshal Uses

func (m *StoreStatus) Unmarshal(dAtA []byte) error

func (*StoreStatus) XXX_DiscardUnknown Uses

func (m *StoreStatus) XXX_DiscardUnknown()

func (*StoreStatus) XXX_Marshal Uses

func (m *StoreStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreStatus) XXX_Merge Uses

func (dst *StoreStatus) XXX_Merge(src proto.Message)

func (*StoreStatus) XXX_Size Uses

func (m *StoreStatus) XXX_Size() int

func (*StoreStatus) XXX_Unmarshal Uses

func (m *StoreStatus) XXX_Unmarshal(b []byte) error

Package statuspb imports 8 packages (graph) and is imported by 7 packages. Updated 2019-08-10. Refresh now. Tools for package owners.