Documentation ¶
Overview ¶
Used by the monitoring features to send monitoring data.
Index ¶
- Variables
- type Bulk
- func (r Bulk) Do(ctx context.Context) (*Response, error)
- func (r *Bulk) Header(key, value string) *Bulk
- func (r *Bulk) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *Bulk) Interval(duration string) *Bulk
- func (r Bulk) Perform(ctx context.Context) (*http.Response, error)
- func (r *Bulk) Raw(raw io.Reader) *Bulk
- func (r *Bulk) Request(req []interface{}) *Bulk
- func (r *Bulk) SystemApiVersion(systemapiversion string) *Bulk
- func (r *Bulk) SystemId(systemid string) *Bulk
- func (r *Bulk) Type(type_ string) *Bulk
- type NewBulk
- type Response
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 Bulk ¶
type Bulk struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Bulk
Used by the monitoring features to send monitoring data.
https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html
func (Bulk) Do ¶
Do runs the request through the transport, handle the response and returns a bulk.Response
func (*Bulk) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*Bulk) Interval ¶
Interval Collection interval (e.g., '10s' or '10000ms') of the payload API name: interval
func (Bulk) Perform ¶
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*Bulk) Raw ¶
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*Bulk) SystemApiVersion ¶
API name: system_api_version
type NewBulk ¶
type NewBulk func() *Bulk
NewBulk type alias for index.
func NewBulkFunc ¶
func NewBulkFunc(tp elastictransport.Interface) NewBulk
NewBulkFunc returns a new instance of Bulk with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.