Documentation ¶
Overview ¶
Deletes an existing datafeed.
Index ¶
- Variables
- type DeleteDatafeed
- func (r *DeleteDatafeed) DatafeedId(datafeedid string) *DeleteDatafeed
- func (r DeleteDatafeed) Do(ctx context.Context) (*Response, error)
- func (r *DeleteDatafeed) Force(force bool) *DeleteDatafeed
- func (r *DeleteDatafeed) Header(key, value string) *DeleteDatafeed
- func (r *DeleteDatafeed) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r DeleteDatafeed) IsSuccess(ctx context.Context) (bool, error)
- func (r DeleteDatafeed) Perform(ctx context.Context) (*http.Response, error)
- type NewDeleteDatafeed
- 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 DeleteDatafeed ¶
type DeleteDatafeed struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *DeleteDatafeed
Deletes an existing datafeed.
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ml-delete-datafeed.html
func (*DeleteDatafeed) DatafeedId ¶
func (r *DeleteDatafeed) DatafeedId(datafeedid string) *DeleteDatafeed
DatafeedId A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. API Name: datafeedid
func (DeleteDatafeed) Do ¶
func (r DeleteDatafeed) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a deletedatafeed.Response
func (*DeleteDatafeed) Force ¶
func (r *DeleteDatafeed) Force(force bool) *DeleteDatafeed
Force Use to forcefully delete a started datafeed; this method is quicker than stopping and deleting the datafeed. API name: force
func (*DeleteDatafeed) Header ¶
func (r *DeleteDatafeed) Header(key, value string) *DeleteDatafeed
Header set a key, value pair in the DeleteDatafeed headers map.
func (*DeleteDatafeed) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewDeleteDatafeed ¶
type NewDeleteDatafeed func(datafeedid string) *DeleteDatafeed
NewDeleteDatafeed type alias for index.
func NewDeleteDatafeedFunc ¶
func NewDeleteDatafeedFunc(tp elastictransport.Interface) NewDeleteDatafeed
NewDeleteDatafeedFunc returns a new instance of DeleteDatafeed with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.