Documentation ¶
Overview ¶
Creates a behavioral analytics collection.
Index ¶
- Variables
- type NewPutBehavioralAnalytics
- type PutBehavioralAnalytics
- func (r PutBehavioralAnalytics) Do(ctx context.Context) (*Response, error)
- func (r *PutBehavioralAnalytics) Header(key, value string) *PutBehavioralAnalytics
- func (r *PutBehavioralAnalytics) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r PutBehavioralAnalytics) IsSuccess(ctx context.Context) (bool, error)
- func (r *PutBehavioralAnalytics) Name(v string) *PutBehavioralAnalytics
- func (r PutBehavioralAnalytics) Perform(ctx context.Context) (*http.Response, error)
- 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 NewPutBehavioralAnalytics ¶
type NewPutBehavioralAnalytics func(name string) *PutBehavioralAnalytics
NewPutBehavioralAnalytics type alias for index.
func NewPutBehavioralAnalyticsFunc ¶
func NewPutBehavioralAnalyticsFunc(tp elastictransport.Interface) NewPutBehavioralAnalytics
NewPutBehavioralAnalyticsFunc returns a new instance of PutBehavioralAnalytics with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type PutBehavioralAnalytics ¶
type PutBehavioralAnalytics struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *PutBehavioralAnalytics
Creates a behavioral analytics collection.
https://www.elastic.co/guide/en/elasticsearch/reference/master/put-analytics-collection.html
func (PutBehavioralAnalytics) Do ¶
func (r PutBehavioralAnalytics) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a putbehavioralanalytics.Response
func (*PutBehavioralAnalytics) Header ¶
func (r *PutBehavioralAnalytics) Header(key, value string) *PutBehavioralAnalytics
Header set a key, value pair in the PutBehavioralAnalytics headers map.
func (*PutBehavioralAnalytics) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (PutBehavioralAnalytics) IsSuccess ¶
func (r PutBehavioralAnalytics) 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 (*PutBehavioralAnalytics) Name ¶
func (r *PutBehavioralAnalytics) Name(v string) *PutBehavioralAnalytics
Name The name of the analytics collection to be created or updated API Name: name