Documentation ¶
Index ¶
- Variables
- func Execute()
- func RunDisableAllocation(cmd *cobra.Command, args []string)
- func RunEnableAllocation(cmd *cobra.Command, args []string)
- func RunHealth(cmd *cobra.Command, args []string)
- func RunHeap(cmd *cobra.Command, args []string)
- func RunIndices(cmd *cobra.Command, args []string)
- func RunMaster(cmd *cobra.Command, args []string)
- func RunNodes(cmd *cobra.Command, args []string)
- func RunShards(cmd *cobra.Command, args []string)
- type ClusterNode
- type ClusterNodeState
- type ClusterState
- type DocSizeStat
- type Index
- type IndexSizeStat
- type IndicesState
- type JvmStats
- type MemStats
- type MemoryPool
- type Node
- type RoutingStat
- type ShardStat
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 RunEnableAllocation ¶
func RunIndices ¶
Types ¶
type ClusterNode ¶
type ClusterNodeState ¶
type ClusterNodeState struct {
Nodes map[string]ClusterNode `json:"nodes"`
}
type ClusterState ¶
type DocSizeStat ¶
type Index ¶
type Index struct { IndexSize IndexSizeStat `json:"index"` Docs DocSizeStat `json:"docs"` Shards map[string][]ShardStat `json:"shards"` }
type IndexSizeStat ¶
type IndicesState ¶
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 RoutingStat ¶
type ShardStat ¶
type ShardStat struct { Routing RoutingStat `json:"routing"` State string `json:"state"` Size IndexSizeStat `json:"index"` Docs DocSizeStat `json:"docs"` }
Click to show internal directories.
Click to hide internal directories.