Documentation ¶
Overview ¶
Estimate job model memory usage. Makes an estimation of the memory usage for an anomaly detection job model. It is based on analysis configuration details for the job and cardinality estimates for the fields it references.
Index ¶
- Variables
- type EstimateModelMemory
- func (r *EstimateModelMemory) AnalysisConfig(analysisconfig *types.AnalysisConfig) *EstimateModelMemory
- func (r EstimateModelMemory) Do(providedCtx context.Context) (*Response, error)
- func (r *EstimateModelMemory) ErrorTrace(errortrace bool) *EstimateModelMemory
- func (r *EstimateModelMemory) FilterPath(filterpaths ...string) *EstimateModelMemory
- func (r *EstimateModelMemory) Header(key, value string) *EstimateModelMemory
- func (r *EstimateModelMemory) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *EstimateModelMemory) Human(human bool) *EstimateModelMemory
- func (r *EstimateModelMemory) MaxBucketCardinality(maxbucketcardinality map[string]int64) *EstimateModelMemory
- func (r *EstimateModelMemory) OverallCardinality(overallcardinality map[string]int64) *EstimateModelMemory
- func (r EstimateModelMemory) Perform(providedCtx context.Context) (*http.Response, error)
- func (r *EstimateModelMemory) Pretty(pretty bool) *EstimateModelMemory
- func (r *EstimateModelMemory) Raw(raw io.Reader) *EstimateModelMemory
- func (r *EstimateModelMemory) Request(req *Request) *EstimateModelMemory
- type NewEstimateModelMemory
- 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 EstimateModelMemory ¶
type EstimateModelMemory struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *EstimateModelMemory
Estimate job model memory usage. Makes an estimation of the memory usage for an anomaly detection job model. It is based on analysis configuration details for the job and cardinality estimates for the fields it references.
https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html
func (*EstimateModelMemory) AnalysisConfig ¶ added in v8.9.0
func (r *EstimateModelMemory) AnalysisConfig(analysisconfig *types.AnalysisConfig) *EstimateModelMemory
AnalysisConfig For a list of the properties that you can specify in the `analysis_config` component of the body of this API. API name: analysis_config
func (EstimateModelMemory) Do ¶
func (r EstimateModelMemory) Do(providedCtx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a estimatemodelmemory.Response
func (*EstimateModelMemory) ErrorTrace ¶ added in v8.14.0
func (r *EstimateModelMemory) ErrorTrace(errortrace bool) *EstimateModelMemory
ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors when they occur. API name: error_trace
func (*EstimateModelMemory) FilterPath ¶ added in v8.14.0
func (r *EstimateModelMemory) FilterPath(filterpaths ...string) *EstimateModelMemory
FilterPath Comma-separated list of filters in dot notation which reduce the response returned by Elasticsearch. API name: filter_path
func (*EstimateModelMemory) Header ¶
func (r *EstimateModelMemory) Header(key, value string) *EstimateModelMemory
Header set a key, value pair in the EstimateModelMemory headers map.
func (*EstimateModelMemory) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*EstimateModelMemory) Human ¶ added in v8.14.0
func (r *EstimateModelMemory) Human(human bool) *EstimateModelMemory
Human When set to `true` will return statistics in a format suitable for humans. For example `"exists_time": "1h"` for humans and `"eixsts_time_in_millis": 3600000` for computers. When disabled the human readable values will be omitted. This makes sense for responses being consumed only by machines. API name: human
func (*EstimateModelMemory) MaxBucketCardinality ¶ added in v8.9.0
func (r *EstimateModelMemory) MaxBucketCardinality(maxbucketcardinality map[string]int64) *EstimateModelMemory
MaxBucketCardinality Estimates of the highest cardinality in a single bucket that is observed for influencer fields over the time period that the job analyzes data. To produce a good answer, values must be provided for all influencer fields. Providing values for fields that are not listed as `influencers` has no effect on the estimation. API name: max_bucket_cardinality
func (*EstimateModelMemory) OverallCardinality ¶ added in v8.9.0
func (r *EstimateModelMemory) OverallCardinality(overallcardinality map[string]int64) *EstimateModelMemory
OverallCardinality Estimates of the cardinality that is observed for fields over the whole time period that the job analyzes data. To produce a good answer, values must be provided for fields referenced in the `by_field_name`, `over_field_name` and `partition_field_name` of any detectors. Providing values for other fields has no effect on the estimation. It can be omitted from the request if no detectors have a `by_field_name`, `over_field_name` or `partition_field_name`. API name: overall_cardinality
func (EstimateModelMemory) Perform ¶ added in v8.7.0
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*EstimateModelMemory) Pretty ¶ added in v8.14.0
func (r *EstimateModelMemory) Pretty(pretty bool) *EstimateModelMemory
Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use this option for debugging only. API name: pretty
func (*EstimateModelMemory) Raw ¶
func (r *EstimateModelMemory) Raw(raw io.Reader) *EstimateModelMemory
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*EstimateModelMemory) Request ¶
func (r *EstimateModelMemory) Request(req *Request) *EstimateModelMemory
Request allows to set the request property with the appropriate payload.
type NewEstimateModelMemory ¶
type NewEstimateModelMemory func() *EstimateModelMemory
NewEstimateModelMemory type alias for index.
func NewEstimateModelMemoryFunc ¶
func NewEstimateModelMemoryFunc(tp elastictransport.Interface) NewEstimateModelMemory
NewEstimateModelMemoryFunc returns a new instance of EstimateModelMemory 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 { // AnalysisConfig For a list of the properties that you can specify in the // `analysis_config` component of the body of this API. AnalysisConfig *types.AnalysisConfig `json:"analysis_config,omitempty"` // MaxBucketCardinality Estimates of the highest cardinality in a single bucket that is observed // for influencer fields over the time period that the job analyzes data. // To produce a good answer, values must be provided for all influencer // fields. Providing values for fields that are not listed as `influencers` // has no effect on the estimation. MaxBucketCardinality map[string]int64 `json:"max_bucket_cardinality,omitempty"` // OverallCardinality Estimates of the cardinality that is observed for fields over the whole // time period that the job analyzes data. To produce a good answer, values // must be provided for fields referenced in the `by_field_name`, // `over_field_name` and `partition_field_name` of any detectors. Providing // values for other fields has no effect on the estimation. It can be // omitted from the request if no detectors have a `by_field_name`, // `over_field_name` or `partition_field_name`. OverallCardinality map[string]int64 `json:"overall_cardinality,omitempty"` }
Request holds the request body struct for the package estimatemodelmemory