fdb

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes struct {
	Read    Stats `json:"read"`
	Written Stats `json:"written"`
}

type CPU

type CPU struct {
	UsageCores float64 `json:"usage_cores"`
}

type Cluster

type Cluster struct {
	Processes         map[string]Process `json:"processes"`
	DatabaseAvailable bool               `json:"database_available"`
	Workload          Workload           `json:"workload"`
	Messages          []Message          `json:"messages"`
	RecoveryState     RecoveryState      `json:"recovery_state"`
	Data              Data               `json:"data"`
}

type Data

type Data struct {
	State      State      `json:"state"`
	MovingData MovingData `json:"moving_data"`
}

type Disk

type Disk struct {
	Busy       float64 `json:"busy"`
	FreeBytes  int     `json:"free_bytes"`
	TotalBytes int     `json:"total_bytes"`
	Reads      Hz      `json:"reads"`
	Writes     Hz      `json:"writes"`
}

type Health

type Health int
const (
	HealthCritical Health = iota
	HealthWarning
	HealthNormal
	HealthExcluded
)

type Hz

type Hz struct {
	Hz float64 `json:"hz"`
}

type Lag

type Lag struct {
	Seconds  float64 `json:"seconds"`
	Versions int     `json:"versions"`
}

type Locality

type Locality struct {
	DataHall  string `json:"data_hall"`
	DCID      string `json:"dcid"`
	MachineID string `json:"machineid"`
}

type Memory

type Memory struct {
	AvailableBytes int `json:"available_bytes"`
	UsedBytes      int `json:"used_bytes"`
}

type Message

type Message struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type MovingData

type MovingData struct {
	InFlightBytes int `json:"in_flight_bytes"`
	InQueueBytes  int `json:"in_queue_bytes"`
}

type Network

type Network struct {
	MegabitsSent     Hz `json:"megabits_sent"`
	MegabitsReceived Hz `json:"megabits_received"`
}

type Operations

type Operations struct {
	Reads  Stats `json:"reads"`
	Writes Stats `json:"writes"`
}

type Process

type Process struct {
	Health           Health    `json:"-"`
	Address          string    `json:"address"`
	Degraded         bool      `json:"degraded"`
	Excluded         bool      `json:"excluded"`
	Locality         Locality  `json:"locality"`
	Class            string    `json:"class_type"`
	CommandLine      string    `json:"command_line"`
	Roles            []Role    `json:"roles"`
	CPU              CPU       `json:"cpu"`
	Disk             Disk      `json:"disk"`
	Memory           Memory    `json:"memory"`
	Network          Network   `json:"network"`
	Uptime           float64   `json:"uptime_seconds"`
	Version          string    `json:"version"`
	UnderMaintenance bool      `json:"under_maintenance"`
	Messages         []Message `json:"messages"`
}

func AnnotateProcessHealth

func AnnotateProcessHealth(p Process) Process

type RecoveryState

type RecoveryState struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Role

type Role struct {
	Role string `json:"role"`

	// Storage Only
	KVUsedBytes   float64 `json:"kvstore_used_bytes"`
	TotalQueries  Stats   `json:"total_queries"`
	DataLag       Lag     `json:"data_lag"`
	DurabilityLag Lag     `json:"durability_lag"`

	// Log Only
	QueueUsedBytes float64 `json:"queue_disk_used_bytes"`

	// Both
	InputBytes   Stats `json:"input_bytes"`
	DurableBytes Stats `json:"durable_bytes"`
}

type Root

type Root struct {
	Cluster Cluster `json:"cluster"`
}

type State

type State struct {
	Health               bool   `json:"healthy"`
	Name                 string `json:"name"`
	MinReplicasRemaining int    `json:"min_replicas_remaining"`
}

type Stats

type Stats struct {
	Hz        float64 `json:"hz"`
	Counter   float64 `json:"counter"`
	Roughness float64 `json:"roughness"`
}

type Transactions

type Transactions struct {
	Committed                Stats `json:"committed"`
	Conflicted               Stats `json:"conflicted"`
	RejectedForQueuedTooLong Stats `json:"rejected_for_queued_too_long"`
	Started                  Stats `json:"started"`
}

type Workload

type Workload struct {
	Transactions Transactions `json:"transactions"`
	Operations   Operations   `json:"operations"`
	Bytes        Bytes        `json:"bytes"`
}

Jump to

Keyboard shortcuts

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