responses

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatHealthResponse

type CatHealthResponse struct {
	Cluster             string `json:"cluster"`
	Status              string `json:"status"`
	NodeTotal           string `json:"node.total"`
	NodeData            string `json:"node.data"`
	Shards              string `json:"shards"`
	PrimaryShards       string `json:"pri"`
	ReloadingShards     string `json:"relo"`
	InitializingShards  string `json:"init"`
	UnAssignShards      string `json:"unassign"`
	PendingTasks        string `json:"pending_tasks"`
	ActiveShardsPercent string `json:"active_shards_percent"`
	MaxTaskWaitTime     string `json:"max_task_wait_time"`
}

type CatIndicesResponse

type CatIndicesResponse struct {
	Health       string `json:"health"`
	Status       string `json:"status"`
	Index        string `json:"index"`
	Uuid         string `json:"uuid"`
	Pri          string `json:"pri"`
	Rep          string `json:"rep"`
	DocsCount    string `json:"docs.count"`
	DocsDeleted  string `json:"docs.deleted"`
	StoreSize    string `json:"tore.size"`
	PriStoreSize string `json:"pri.store.size"`
}

type CatNodesResponse

type CatNodesResponse 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"`
	NodeRole    string `json:"node.role"`
	Master      string `json:"master"`
	Name        string `json:"name"`
}

type CatShardsResponse

type CatShardsResponse struct {
	Index             string `json:"index" json:"i" json:"idx"`
	Shard             string `json:"shard" json:"s" json:"sh"`
	PrimaryOrReplica  string `json:"prirep" json:"p" json:"pr" json:"primaryOrReplica"`
	State             string `json:"state" json:"st"`
	Docs              string `json:"docs" json:"d" json:"dc"`
	Store             string `json:"store" json:"sto"`
	Ip                string `json:"ip"`
	NodeName          string `json:"node" json:"n"`
	NodeId            string `json:"id"`
	UnassignedAt      string `json:"unassigned.at" json:"ua"`
	UnassignedDetails string `json:"ud" json:"unassigned.details" json:"completionSize"`
	UnassignedFor     string `json:"uf" json:"unassigned.for" json:"completionSize"`
	UnassignedReason  string `json:"ur" json:"unassigned.reason" json:"completionSize"`
	CompletionSize    string `json:"cs" json:"completion.size" json:"completionSize"`
}

type ClusterHealthResponse

type ClusterHealthResponse struct {
	Status             string  `json:"status,omitempty"`
	ActiveShards       int     `json:"active_shards,omitempty"`
	RelocatingShards   int     `json:"relocating_shards,omitempty"`
	InitializingShards int     `json:"initializing_shards,omitempty"`
	UnassignedShards   int     `json:"unassigned_shards,omitempty"`
	PercentActive      float32 `json:"active_shards_percent_as_number,omitempty"`
}

type ClusterRerouteResponse

type ClusterRerouteResponse struct {
	Acknowledged bool                        `json:"acknowledged"`
	State        ClusterRerouteStateResponse `json:"state"`
}

type ClusterRerouteStateNodeResponse

type ClusterRerouteStateNodeResponse struct {
	Name             string            `json:"name"`
	EphemeralId      int32             `json:"ephemeral_id"`
	StateUuid        string            `json:"state_uuid"`
	TransportAddress string            `json:"transport_address"`
	Attributes       map[string]string `json:"attributes"`
}

type ClusterRerouteStateResponse

type ClusterRerouteStateResponse struct {
	ClusterUuid  string                                               `json:"cluster_uuid"`
	Version      int32                                                `json:"version"`
	StateUuid    string                                               `json:"state_uuid"`
	MasterNode   string                                               `json:"master_node"`
	Blocks       map[string]string                                    `json:"blocks"`
	Nodes        map[string]ClusterRerouteStateNodeResponse           `json:"nodes"`
	RoutingTable map[string]ClusterRerouteStateRoutingTableResponse   `json:"routing_table"`
	RoutingNodes map[string][]ClusterRerouteStateRoutingNodesResponse `json:"routing_nodes"`
}

type ClusterRerouteStateRoutingNodesResponse

type ClusterRerouteStateRoutingNodesResponse struct {
	Unassigned []ClusterRerouteStateRoutingNodesUnAssignedResponse                         `json:"unassigned"`
	Nodes      map[string][]ClusterRerouteStateRoutingTableIndicesShardsAllocationResponse `json:"nodes"`
}

type ClusterRerouteStateRoutingNodesUnAssignedInfoResponse

type ClusterRerouteStateRoutingNodesUnAssignedInfoResponse struct {
	Reason           string   `json:"reason"`
	At               string   `json:"at"`
	FailedAttempts   int32    `json:"failed_attempts"`
	FailedNodes      []string `json:"failed_nodes"`
	Delayed          bool     `json:"delayed"`
	Details          string   `json:"details"`
	AllocationStatus string   `json:"allocation_status"`
}

type ClusterRerouteStateRoutingNodesUnAssignedResponse

type ClusterRerouteStateRoutingNodesUnAssignedResponse struct {
	Index            string            `json:"index"`
	Shard            int32             `json:"shard"`
	PrimaryOrReplica bool              `json:"primary"`
	State            string            `json:"state"`
	Node             string            `json:"node"`
	RelocatingNode   string            `json:"relocating_node"`
	RecoverySource   map[string]string `json:"recovery_source"`
}

type ClusterRerouteStateRoutingTableIndicesShardsAllocationResponse

type ClusterRerouteStateRoutingTableIndicesShardsAllocationResponse struct {
	Index            string            `json:"index"`
	Shard            int32             `json:"shard"`
	PrimaryOrReplica bool              `json:"primary"`
	State            string            `json:"state"`
	Node             string            `json:"node"`
	RelocatingNode   string            `json:"relocating_node"`
	AllocationId     map[string]string `json:"allocation_id"`
}

type ClusterRerouteStateRoutingTableIndicesShardsResponse

type ClusterRerouteStateRoutingTableIndicesShardsResponse struct {
	Shards map[string][]ClusterRerouteStateRoutingTableIndicesShardsAllocationResponse `json:"shards"`
}

type ClusterRerouteStateRoutingTableResponse

type ClusterRerouteStateRoutingTableResponse struct {
	Indices map[string]ClusterRerouteStateRoutingTableIndicesShardsResponse `json:"indices"`
}

type ClusterSettingsResponse

type ClusterSettingsResponse struct {
	Persistent map[string]interface{} `json:"persistent,omitempty"`
	Transient  map[string]interface{} `json:"transient,omitempty"`
}

type EnableBalanceRoutingMode

type EnableBalanceRoutingMode int64

func (EnableBalanceRoutingMode) String

func (s EnableBalanceRoutingMode) String() string

type FlatClusterSettingsResponse

type FlatClusterSettingsResponse struct {
	Persistent Settings `json:"persistent,omitempty"`
	Transient  Settings `json:"transient,omitempty"`
}

type GetActionGroupResponse

type GetActionGroupResponse map[string]requests.ActionGroup

type GetRoleMappingReponse

type GetRoleMappingReponse map[string]requests.RoleMapping

type GetRoleResponse

type GetRoleResponse map[string]requests.Role

type GetTenantResponse

type GetTenantResponse map[string]requests.Tenant

type GetUserResponse

type GetUserResponse map[string]requests.User

type MainResponse

type MainResponse struct {
	Name        string              `json:"name"`
	ClusterName string              `json:"cluster_name"`
	ClusterUuid string              `json:"cluster_uuid"`
	Version     MainResponseVersion `json:"version"`
	Tagline     string              `json:"tagline"`
}

type MainResponseVersion

type MainResponseVersion struct {
	Distribution                     string `json:"distribution"`
	Number                           string `json:"number"`
	BuildType                        string `json:"build_type"`
	BuildHash                        string `json:"build_hash"`
	BuildDate                        string `json:"build_date"`
	BuildSnapshot                    bool   `json:"build_snapshot"`
	LuceneVersion                    string `json:"lucene_version"`
	MinimumWireCompatibilityVersion  string `json:"minimum_wire_compatibility_version"`
	MinimumIndexCompatibilityVersion string `json:"minimum_index_compatibility_version"`
}

type NodeStatAdaptiveSelection

type NodeStatAdaptiveSelection struct {
	OutgoingSearches  uint32 `json:"outgoing_searches"`
	AvgQueueSize      uint32 `json:"avg_queue_size"`
	AvgServiceTimeNs  uint32 `json:"avg_service_time_ns"`
	AvgResponseTimeNs uint32 `json:"avg_response_time_ns"`
	Rank              string `json:"rank"`
}

type NodeStatBreakers

type NodeStatBreakers struct {
	LimitSizeInBytes     uint64  `json:"limit_size_in_bytes"`
	EstimatedSizeInBytes uint64  `json:"estimated_size_in_bytes"`
	Overhead             float32 `json:"overhead"`
	Tripped              uint32  `json:"tripped"`
}

type NodeStatResponse

type NodeStatResponse struct {
	Id                string
	Name              string                               `json:"name"`
	Timestamp         uint64                               `json:"timestamp"`
	TransportAddress  string                               `json:"transport_address"`
	Host              string                               `json:"host"`
	Ip                string                               `json:"ip"`
	Roles             []string                             `json:"roles"`
	Attributes        map[string]string                    `json:"attributes"`
	Indices           map[string]interface{}               `json:"indices"`
	Os                map[string]interface{}               `json:"os"`
	Process           map[string]interface{}               `json:"process"`
	Jvm               map[string]interface{}               `json:"jvm"`
	ThreadPool        map[string]NodeStatThreadPool        `json:"thread_pool"`
	Fs                map[string]interface{}               `json:"fs"`
	Transport         map[string]interface{}               `json:"transport"`
	Http              map[string]interface{}               `json:"http"`
	Breakers          map[string]NodeStatBreakers          `json:"breakers"`
	Script            map[string]interface{}               `json:"script"`
	Discovery         map[string]interface{}               `json:"discovery"`
	Ingest            map[string]interface{}               `json:"ingest"`
	AdaptiveSelection map[string]NodeStatAdaptiveSelection `json:"adaptive_selection"`
	ScriptCache       NodeStatScriptCache                  `json:"script_cache"`
	IndexingPressure  map[string]interface{}               `json:"indexing_pressure"`
}

type NodeStatScriptCache

type NodeStatScriptCache struct {
	Sum      map[string]interface{}  `json:"sum"`
	Contexts []NodeStatScriptContext `json:"contexts"`
}

type NodeStatScriptContext

type NodeStatScriptContext struct {
	Context                   string `json:"context"`
	Compilations              uint32 `json:"compilations"`
	CacheEvictions            uint32 `json:"cache_evictions"`
	CompilationLimitTriggered uint32 `json:"compilation_limit_triggered"`
}

type NodeStatThreadPool

type NodeStatThreadPool struct {
	Threads   uint32 `json:"threads"`
	Queue     uint32 `json:"queue"`
	Active    uint32 `json:"active"`
	Rejected  uint32 `json:"rejected"`
	Largest   uint32 `json:"largest"`
	Completed uint32 `json:"completed"`
}

type NodesStatsGeneralInfoResponse

type NodesStatsGeneralInfoResponse struct {
	Total      int `json:"total"`
	Successful int `json:"successful"`
	Failed     int `json:"failed"`
}

type NodesStatsResponse

type NodesStatsResponse struct {
	GeneralInfo NodesStatsGeneralInfoResponse `json:"_nodes"`
	ClusterName string                        `json:"cluster_name"`
	Nodes       map[string]NodeStatResponse   `json:"nodes"`
}

type Settings

type Settings struct {
	ClusterRoutingAllocationEnable  string `json:"cluster.routing.allocation.enable,omitempty"`
	ClusterRoutingAllocationExclude string `json:"cluster.routing.allocation.exclude._name,omitempty"`
}

Jump to

Keyboard shortcuts

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