Discover Packages
github.com/pwood/fdbexplorer
data
fdb
package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Oct 23, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Bytes struct {
Read Stats `json:"read"`
Written Stats `json:"written"`
}
type CPU struct {
UsageCores float64 `json:"usage_cores"`
}
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 struct {
State State `json:"state"`
MovingData MovingData `json:"moving_data"`
}
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"`
}
const (
HealthCritical Health = iota
HealthWarning
HealthNormal
HealthExcluded
)
type Hz struct {
Hz float64 `json:"hz"`
}
type Lag struct {
Seconds float64 `json:"seconds"`
Versions int `json:"versions"`
}
type Locality struct {
DataHall string `json:"data_hall"`
DCID string `json:"dcid"`
MachineID string `json:"machineid"`
}
type Memory struct {
AvailableBytes int `json:"available_bytes"`
UsedBytes int `json:"used_bytes"`
}
type Message struct {
Name string `json:"name"`
Description string `json:"description"`
}
type MovingData struct {
InFlightBytes int `json:"in_flight_bytes"`
InQueueBytes int `json:"in_queue_bytes"`
}
type Network struct {
MegabitsSent Hz `json:"megabits_sent"`
MegabitsReceived Hz `json:"megabits_received"`
}
type Operations struct {
Reads Stats `json:"reads"`
Writes Stats `json:"writes"`
}
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"`
}
type RecoveryState struct {
Name string `json:"name"`
Description string `json:"description"`
}
type Role struct {
Role string `json:"role"`
KVUsedBytes float64 `json:"kvstore_used_bytes"`
TotalQueries Stats `json:"total_queries"`
DataLag Lag `json:"data_lag"`
DurabilityLag Lag `json:"durability_lag"`
QueueUsedBytes float64 `json:"queue_disk_used_bytes"`
InputBytes Stats `json:"input_bytes"`
DurableBytes Stats `json:"durable_bytes"`
}
type Root struct {
Cluster Cluster `json:"cluster"`
}
type State struct {
Health bool `json:"healthy"`
Name string `json:"name"`
MinReplicasRemaining int `json:"min_replicas_remaining"`
}
type Stats struct {
Hz float64 `json:"hz"`
Counter float64 `json:"counter"`
Roughness float64 `json:"roughness"`
}
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 struct {
Transactions Transactions `json:"transactions"`
Operations Operations `json:"operations"`
Bytes Bytes `json:"bytes"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.