cmd

package
v0.0.0-...-ad07d97 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ElasticURL string
View Source
var PrintHeaders bool
View Source
var RootCmd = &cobra.Command{
	Use:   "ges",
	Short: "command line es cluster stats and health",
	Long:  `command line es cluster stats and health`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func RunDisableAllocation

func RunDisableAllocation(cmd *cobra.Command, args []string)

func RunEnableAllocation

func RunEnableAllocation(cmd *cobra.Command, args []string)

func RunHealth

func RunHealth(cmd *cobra.Command, args []string)

func RunHeap

func RunHeap(cmd *cobra.Command, args []string)

func RunIndices

func RunIndices(cmd *cobra.Command, args []string)

func RunMaster

func RunMaster(cmd *cobra.Command, args []string)

func RunNodes

func RunNodes(cmd *cobra.Command, args []string)

func RunShards

func RunShards(cmd *cobra.Command, args []string)

Types

type ClusterNode

type ClusterNode struct {
	Name string   `json:"name"`
	Jvm  JvmStats `json:"jvm"`
}

type ClusterNodeState

type ClusterNodeState struct {
	Nodes map[string]ClusterNode `json:"nodes"`
}

type ClusterState

type ClusterState struct {
	MasterNode string          `json:"master_node"`
	Nodes      map[string]Node `json:"nodes"`
}

type DocSizeStat

type DocSizeStat struct {
	NumDocs     int64 `json:"num_docs"`
	MaxDoc      int64 `json:"max_doc"`
	DeletedDocs int64 `json:"deleted_docs"`
}

type Index

type Index struct {
	IndexSize IndexSizeStat          `json:"index"`
	Docs      DocSizeStat            `json:"docs"`
	Shards    map[string][]ShardStat `json:"shards"`
}

type IndexSizeStat

type IndexSizeStat struct {
	Size      string `json:"size"`
	SizeBytes int64  `json:"size_in_bytes"`
}

type IndicesState

type IndicesState struct {
	Indices map[string]Index `json:"indices"`
}

type JvmStats

type JvmStats struct {
	Mem MemStats `json:"mem"`
}

type MemStats

type MemStats struct {
	Pools map[string]MemoryPool `json:"pools"`
}

type MemoryPool

type MemoryPool struct {
	Used            string `json:"used"`
	UsedInBytes     int    `json:"used_in_bytes"`
	Max             string `json:"max"`
	MaxInBytes      int    `json:"max_in_bytes"`
	PeakUsed        string `json:"peak_used"`
	PeakUsedInBytes int    `json:"peak_used_in_bytes"`
	PeakMax         string `json:"peak_max"`
	PeakMaxInBytes  int    `json:"peak_max_in_bytes"`
}

type Node

type Node struct {
	Name             string `json:"name"`
	TransportAddress string `json:"transport_address"`
}

type RoutingStat

type RoutingStat struct {
	State          string `json:"state"`
	Primary        bool   `json:"primary"`
	Node           string `json:"node"`
	RelocatingNode string `json:"relocating_node"`
}

type ShardStat

type ShardStat struct {
	Routing RoutingStat   `json:"routing"`
	State   string        `json:"state"`
	Size    IndexSizeStat `json:"index"`
	Docs    DocSizeStat   `json:"docs"`
}

Jump to

Keyboard shortcuts

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