Documentation ¶
Overview ¶
Opens one or more anomaly detection jobs.
Index ¶
- Variables
- type NewOpenJob
- type OpenJob
- func (r OpenJob) Do(ctx context.Context) (*Response, error)
- func (r *OpenJob) Header(key, value string) *OpenJob
- func (r *OpenJob) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *OpenJob) JobId(v string) *OpenJob
- func (r OpenJob) Perform(ctx context.Context) (*http.Response, error)
- func (r *OpenJob) Raw(raw io.Reader) *OpenJob
- func (r *OpenJob) Request(req *Request) *OpenJob
- func (r *OpenJob) Timeout(v string) *OpenJob
- type Request
- 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 NewOpenJob ¶
NewOpenJob type alias for index.
func NewOpenJobFunc ¶
func NewOpenJobFunc(tp elastictransport.Interface) NewOpenJob
NewOpenJobFunc returns a new instance of OpenJob with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type OpenJob ¶
type OpenJob struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *OpenJob
Opens one or more anomaly detection jobs.
https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html
func (OpenJob) Do ¶
Do runs the request through the transport, handle the response and returns a openjob.Response
func (*OpenJob) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (OpenJob) Perform ¶ added in v8.7.0
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*OpenJob) Raw ¶
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.