Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStats ¶
type HealthResponse ¶
type HealthResponse struct {
ClusterName string `json:"cluster_name"`
Status string `json:"status"`
TimedOut bool `json:"timed_out"`
NumberOfNodes int `json:"number_of_nodes"`
NumberOfDataNodes int `json:"number_of_data_nodes"`
ActivePrimaryShards int `json:"active_primary_shards"`
ActiveShards int `json:"active_shards"`
RelocatingShards int `json:"relocating_shards"`
InitializingShards int `json:"initializing_shards"`
UnassignedShards int `json:"unassigned_shards"`
DelayedUnassignedShards int `json:"delayed_unassigned_shards"`
NumberOfPendingTasks int `json:"number_of_pending_tasks"`
NumberOfInFlightFetch int `json:"number_of_in_flight_fetch"`
TaskMaxWaitingInQueueMillis int `json:"task_max_waiting_in_queue_millis"`
ActiveShardsPercentAsNumber float64 `json:"active_shards_percent_as_number"`
}
type IngestInfo ¶
type IngestInfo struct {
Total IngestStats `json:"total"`
Pipelines map[string]PipelineInfo `json:"pipelines"`
}
type IngestStats ¶
type NodeInfo ¶
type NodeInfo struct {
IP string `json:"ip"`
Ingest IngestInfo `json:"ingest"`
}
type PipelineInfo ¶
type Query ¶
type Query struct {
QueryString *QueryString `json:"query_string,omitempty"`
}
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
type QueryString ¶
type QueryString struct {
Query string `json:"query"`
}
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
type SearchHits ¶
type SearchHits struct {
Total SearchTotal `json:"total"`
Hits []SearchHit `json:"hits"`
}
type SearchRequest ¶
type SearchRequest struct {
Query Query `json:"query"`
}
type SearchResponse ¶
type SearchResponse struct {
Hits SearchHits `json:"hits"`
}
type SearchTotal ¶
type SearchTotal struct {
Value uint `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.