Documentation ¶
Overview ¶
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.
Index ¶
- Variables
- type GetRollupCaps
- func (r GetRollupCaps) Do(providedCtx context.Context) (Response, error)
- func (r *GetRollupCaps) Header(key, value string) *GetRollupCaps
- func (r *GetRollupCaps) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *GetRollupCaps) Id(id string) *GetRollupCaps
- func (r GetRollupCaps) IsSuccess(providedCtx context.Context) (bool, error)
- func (r GetRollupCaps) Perform(providedCtx context.Context) (*http.Response, error)
- type NewGetRollupCaps
- 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 GetRollupCaps ¶
type GetRollupCaps struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetRollupCaps
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.
https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-caps.html
func (GetRollupCaps) Do ¶
func (r GetRollupCaps) Do(providedCtx context.Context) (Response, error)
Do runs the request through the transport, handle the response and returns a getrollupcaps.Response
func (*GetRollupCaps) Header ¶
func (r *GetRollupCaps) Header(key, value string) *GetRollupCaps
Header set a key, value pair in the GetRollupCaps headers map.
func (*GetRollupCaps) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*GetRollupCaps) Id ¶
func (r *GetRollupCaps) Id(id string) *GetRollupCaps
Id Index, indices or index-pattern to return rollup capabilities for. `_all` may be used to fetch rollup capabilities from all jobs. API Name: id
type NewGetRollupCaps ¶
type NewGetRollupCaps func() *GetRollupCaps
NewGetRollupCaps type alias for index.
func NewGetRollupCapsFunc ¶
func NewGetRollupCapsFunc(tp elastictransport.Interface) NewGetRollupCaps
NewGetRollupCapsFunc returns a new instance of GetRollupCaps with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type Response ¶
type Response map[string]types.RollupCapabilities