Documentation ¶
Overview ¶
Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools.
Index ¶
- Variables
- type NewThreadPool
- type ThreadPool
- func (r ThreadPool) Do(ctx context.Context) (*http.Response, error)
- func (r *ThreadPool) Header(key, value string) *ThreadPool
- func (r *ThreadPool) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r ThreadPool) IsSuccess(ctx context.Context) (bool, error)
- func (r *ThreadPool) ThreadPoolPatterns(v string) *ThreadPool
- func (r *ThreadPool) Time(enum timeunit.TimeUnit) *ThreadPool
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type NewThreadPool ¶
type NewThreadPool func() *ThreadPool
NewThreadPool type alias for index.
func NewThreadPoolFunc ¶
func NewThreadPoolFunc(tp elastictransport.Interface) NewThreadPool
NewThreadPoolFunc returns a new instance of ThreadPool with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type ThreadPool ¶
type ThreadPool struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *ThreadPool
Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools.
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-thread-pool.html
func (*ThreadPool) Header ¶
func (r *ThreadPool) Header(key, value string) *ThreadPool
Header set a key, value pair in the ThreadPool headers map.
func (*ThreadPool) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (ThreadPool) IsSuccess ¶
func (r ThreadPool) IsSuccess(ctx context.Context) (bool, error)
IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.
func (*ThreadPool) ThreadPoolPatterns ¶
func (r *ThreadPool) ThreadPoolPatterns(v string) *ThreadPool
ThreadPoolPatterns List of thread pool names used to limit the request. Accepts wildcard expressions. API Name: threadpoolpatterns
func (*ThreadPool) Time ¶
func (r *ThreadPool) Time(enum timeunit.TimeUnit) *ThreadPool
Time Unit used to display time values. API name: time