Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ESAllocation ¶
type ESAllocation struct { Node string `json:"node"` IP string `json:"ip"` Host string `json:"host"` Shards string `json:"shards"` DiskIndices string `json:"disk.indices"` DiskAvail string `json:"disk.avail"` DiskUsed string `json:"disk.used"` DiskTotal string `json:"disk.total"` DiskPercent string `json:"disk.percent"` }
ESAllocation represents an ES node disk allocation from the _cat/allocation URI
func (*ESAllocation) Unmarshal ¶
func (esallocation *ESAllocation) Unmarshal(jsonBytes []byte)
Unmarshal parses Json into an ESNode object (singular)
type ESAllocations ¶
type ESAllocations []ESAllocation
ESNodes represents a collection of ES allocations from the _cat/allocations URI
func (*ESAllocations) PrintJSON ¶
func (esallocations *ESAllocations) PrintJSON()
PrintJSON displays data from en ESAllocation object
func (*ESAllocations) PrintTable ¶
func (esallocations *ESAllocations) PrintTable()
PrintTable displays data from an ESAllocations object
func (*ESAllocations) Unmarshal ¶
func (esallocations *ESAllocations) Unmarshal(jsonBytes []byte)
Unmarshal parses Json into an ESAllocations object (array)
type ESIndex ¶
type ESIndex struct { Health string `json:"health"` Status string `json:"status"` Index string `json:"index"` UUID string `json:"uuid"` Primary string `json:"pri"` Rep string `json:"rep"` DocCount string `json:"docs.count"` DocsDeleted string `json:"docs.deleted"` StoreSize string `json:"store.size"` PriStoreSize string `json:"pri.store.size"` }
ESIndex represents an ES node index from the _cat/indices URI
type ESIndices ¶
type ESIndices []ESIndex
ESIndices represents a collection of ESIndex from the _cat/indices URI
func (*ESIndices) PrintJSON ¶
func (esindices *ESIndices) PrintJSON()
PrintJSON displays data from en ESIndices object
func (*ESIndices) PrintTable ¶
func (esindices *ESIndices) PrintTable()
PrintTable displays data from an ESIndices object
type ESNode ¶
type ESNode struct { IP string `json:"ip"` HeapPercent string `json:"heap.percent"` RAMPercent string `json:"ram.percent"` CPU string `json:"cpu"` Load1m string `json:"load_1m"` Load5m string `json:"load_5m"` Load15m string `json:"load_15m"` Role string `json:"node.role"` Master string `json:"master"` Name string `json:"name"` }
ESNode represents an ES node from the _cat/nodes URI
type ESNodes ¶
type ESNodes []ESNode
ESNodes represents a collection of ES nodes from the _cat/nodes URI
func (*ESNodes) PrintJSON ¶
func (esnodes *ESNodes) PrintJSON()
PrintJSON displays data from en ESNodes object
func (*ESNodes) PrintTable ¶
func (esnodes *ESNodes) PrintTable()
PrintTable displays data from an ESNodes object
type ESRepos ¶
type ESRepos []ESRepo
ESRepos represents a collection of ES repos from the _cat/repositories URI
func (*ESRepos) PrintJSON ¶
func (esrepos *ESRepos) PrintJSON()
PrintJSON displays data from an ESRepos object
func (*ESRepos) PrintTable ¶
func (esrepos *ESRepos) PrintTable()
PrintTable displays data from an ESNodes object
type ESShard ¶
type ESShard struct { Index string `json:"index"` Shard string `json:"shard"` PriRep string `json:"prirep"` State string `json:"state"` Docs string `json:"docs"` Store string `json:"store"` IP string `json:"ip"` Node string `json:"node"` }
ESShard represents an ES shard from the _cat/shards URI
type ESShards ¶
type ESShards []ESShard
ESShard represents a collection of ES shard from the _cat/shards URI
func (*ESShards) PrintJSON ¶
func (esshards *ESShards) PrintJSON()
PrintJSON displays data from en ESShards object
func (*ESShards) PrintTable ¶
func (esshards *ESShards) PrintTable()
PrintTable displays data from an ESShards object
type ESSnapshot ¶
type ESSnapshot struct { Id string `json:"id"` Status string `json:"status"` StartEpoch string `json:"start_epoch"` StartTime string `json:"start_time"` EndEpoch string `json:"end_epoch"` EndTime string `json:"end_time"` Duration string `json:"duration"` Indices string `json:"indices"` SuccessfulShards string `json:"successful_shards"` FailedShards string `json:"failed_shards"` TotalShards string `json:"total_shards"` }
ESSnapshot represents an ES snapshotsitory from from the _cat/snapshots URI
func (*ESSnapshot) Unmarshal ¶
func (essnapshot *ESSnapshot) Unmarshal(jsonBytes []byte)
Unmarshal parses Json into an ESSnapshot object (singular)
type ESSnapshotStatus ¶
type ESSnapshotStatus struct { Snapshots []struct { Snapshot string `json:"snapshot"` Repository string `json:"repository"` UUID string `json:"uuid"` State string `json:"state"` IncludeGlobalState bool `json:"include_global_state"` ShardsStats struct { Initializing int64 `json:"initializing"` Started int64 `json:"started"` Finalizing int64 `json:"finalizing"` Done int64 `json:"done"` Failed int64 `json:"failed"` Total int64 `json:"total"` } `json:"shards_stats"` Stats struct { Incremental struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` } `json:"incremental"` Processed struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` } `json:"processed"` Total struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` } `json:"total"` // TimeInMillis and StartTimeInMillis are not reliable StartTimeInMillis int64 `json:"start_time_in_millis"` TimeInMillis int64 `json:"time_in_millis"` NumberOfFiles int64 `json:"number_of_files"` ProcessedFiles int64 `json:"processed_files"` TotalSizeInBytes int64 `json:"total_size_in_bytes"` ProcessedSizeInBytes int64 `json:"processed_size_in_bytes"` } `json:"stats"` Indices map[string]struct { ShardsStats struct { Initializing int64 `json:"initializing"` Started int64 `json:"started"` Finalizing int64 `json:"finalizing"` Done int64 `json:"done"` Failed int64 `json:"failed"` Total int64 `json:"total"` } `json:"shards_stats"` Stats struct { Incremental struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` } `json:"incremental"` Total struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` } `json:"total"` // TimeInMillis and StartTimeInMillis are not reliable StartTimeInMillis int64 `json:"start_time_in_millis"` TimeInMillis int64 `json:"time_in_millis"` NumberOfFiles int64 `json:"number_of_files"` ProcessedFiles int64 `json:"processed_files"` TotalSizeInBytes int64 `json:"total_size_in_bytes"` ProcessedSizeInBytes int64 `json:"processed_size_in_bytes"` } `json:"stats"` Shards map[string]struct { Stage string `json:"stage"` Stats struct { Incremental struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` } `json:"incremental"` Total struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` } `json:"total"` StartTimeInMillis int64 `json:"start_time_in_millis"` TimeInMillis int64 `json:"time_in_millis"` NumberOfFiles int64 `json:"number_of_files"` ProcessedFiles int64 `json:"processed_files"` TotalSizeInBytes int64 `json:"total_size_in_bytes"` ProcessedSizeInBytes int64 `json:"processed_size_in_bytes"` } `json:"stats"` Node string `json:"node"` } `json:"shards"` } `json:"indices"` } `json:"snapshots"` }
func (*ESSnapshotStatus) PrintIndexTable ¶
func (snapshotStatus *ESSnapshotStatus) PrintIndexTable()
Displays ESSnapshotStatus data at INDEX level of detail
func (*ESSnapshotStatus) PrintRepoTable ¶
func (snapshotStatus *ESSnapshotStatus) PrintRepoTable()
Displays ESSnapshotStatus data at REPO level of detail
func (*ESSnapshotStatus) PrintShardTable ¶
func (snapshotStatus *ESSnapshotStatus) PrintShardTable()
Displays ESSnapshotStatus data at SHARD level of detail
func (*ESSnapshotStatus) Unmarshal ¶
func (snapshotStatus *ESSnapshotStatus) Unmarshal(jsonbytes []byte) error
type ESSnapshots ¶
type ESSnapshots []ESSnapshot
ESSnapshots represents a collection of ES snapshots from the _cat/snapshots/<repo> URI
func (*ESSnapshots) PrintJSON ¶
func (essnapshots *ESSnapshots) PrintJSON()
PrintJSON displays data from an ESSnapshots object
func (*ESSnapshots) PrintTable ¶
func (essnapshots *ESSnapshots) PrintTable()
PrintTable displays data from an ESNodes object
func (*ESSnapshots) Unmarshal ¶
func (essnapshots *ESSnapshots) Unmarshal(jsonBytes []byte)
Unmarshal parses Json into an ESNodes object (array)