Documentation ¶
Overview ¶
Deletes an existing model snapshot.
Index ¶
- Variables
- type DeleteModelSnapshot
- func (r DeleteModelSnapshot) Do(ctx context.Context) (*Response, error)
- func (r *DeleteModelSnapshot) Header(key, value string) *DeleteModelSnapshot
- func (r *DeleteModelSnapshot) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r DeleteModelSnapshot) IsSuccess(ctx context.Context) (bool, error)
- func (r *DeleteModelSnapshot) JobId(jobid string) *DeleteModelSnapshot
- func (r DeleteModelSnapshot) Perform(ctx context.Context) (*http.Response, error)
- func (r *DeleteModelSnapshot) SnapshotId(snapshotid string) *DeleteModelSnapshot
- type NewDeleteModelSnapshot
- 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 DeleteModelSnapshot ¶
type DeleteModelSnapshot struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *DeleteModelSnapshot
Deletes an existing model snapshot.
https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
func (DeleteModelSnapshot) Do ¶
func (r DeleteModelSnapshot) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a deletemodelsnapshot.Response
func (*DeleteModelSnapshot) Header ¶
func (r *DeleteModelSnapshot) Header(key, value string) *DeleteModelSnapshot
Header set a key, value pair in the DeleteModelSnapshot headers map.
func (*DeleteModelSnapshot) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (DeleteModelSnapshot) IsSuccess ¶
func (r DeleteModelSnapshot) 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 (*DeleteModelSnapshot) JobId ¶
func (r *DeleteModelSnapshot) JobId(jobid string) *DeleteModelSnapshot
JobId Identifier for the anomaly detection job. API Name: jobid
func (DeleteModelSnapshot) Perform ¶ added in v8.7.0
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*DeleteModelSnapshot) SnapshotId ¶
func (r *DeleteModelSnapshot) SnapshotId(snapshotid string) *DeleteModelSnapshot
SnapshotId Identifier for the model snapshot. API Name: snapshotid
type NewDeleteModelSnapshot ¶
type NewDeleteModelSnapshot func(jobid, snapshotid string) *DeleteModelSnapshot
NewDeleteModelSnapshot type alias for index.
func NewDeleteModelSnapshotFunc ¶
func NewDeleteModelSnapshotFunc(tp elastictransport.Interface) NewDeleteModelSnapshot
NewDeleteModelSnapshotFunc returns a new instance of DeleteModelSnapshot with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.