Documentation ¶
Overview ¶
Evaluates the data frame analytics for an annotated index.
Index ¶
- Variables
- type EvaluateDataFrame
- func (r EvaluateDataFrame) Do(ctx context.Context) (*Response, error)
- func (r *EvaluateDataFrame) Header(key, value string) *EvaluateDataFrame
- func (r *EvaluateDataFrame) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r EvaluateDataFrame) Perform(ctx context.Context) (*http.Response, error)
- func (r *EvaluateDataFrame) Raw(raw io.Reader) *EvaluateDataFrame
- func (r *EvaluateDataFrame) Request(req *Request) *EvaluateDataFrame
- type NewEvaluateDataFrame
- 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 EvaluateDataFrame ¶
type EvaluateDataFrame struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *EvaluateDataFrame
Evaluates the data frame analytics for an annotated index.
https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html
func (EvaluateDataFrame) Do ¶
func (r EvaluateDataFrame) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a evaluatedataframe.Response
func (*EvaluateDataFrame) Header ¶
func (r *EvaluateDataFrame) Header(key, value string) *EvaluateDataFrame
Header set a key, value pair in the EvaluateDataFrame headers map.
func (*EvaluateDataFrame) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (EvaluateDataFrame) Perform ¶ added in v8.7.0
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*EvaluateDataFrame) Raw ¶
func (r *EvaluateDataFrame) Raw(raw io.Reader) *EvaluateDataFrame
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*EvaluateDataFrame) Request ¶
func (r *EvaluateDataFrame) Request(req *Request) *EvaluateDataFrame
Request allows to set the request property with the appropriate payload.
type NewEvaluateDataFrame ¶
type NewEvaluateDataFrame func() *EvaluateDataFrame
NewEvaluateDataFrame type alias for index.
func NewEvaluateDataFrameFunc ¶
func NewEvaluateDataFrameFunc(tp elastictransport.Interface) NewEvaluateDataFrame
NewEvaluateDataFrameFunc returns a new instance of EvaluateDataFrame with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type Request ¶
type Request struct { // Evaluation Defines the type of evaluation you want to perform. Evaluation types.DataframeEvaluationContainer `json:"evaluation"` // Index Defines the `index` in which the evaluation will be performed. Index string `json:"index"` // Query A query clause that retrieves a subset of data from the source index. Query *types.Query `json:"query,omitempty"` }
Request holds the request body struct for the package evaluatedataframe
type Response ¶ added in v8.7.0
type Response struct { Classification *types.DataframeClassificationSummary `json:"classification,omitempty"` OutlierDetection *types.DataframeOutlierDetectionSummary `json:"outlier_detection,omitempty"` Regression *types.DataframeRegressionSummary `json:"regression,omitempty"` }