Documentation
¶
Overview ¶
Update data stream mappings.
This API can be used to override mappings on specific data streams. These overrides will take precedence over what is specified in the template that the data stream matches. The mapping change is only applied to new write indices that are created during rollover after this API is called. No indices are changed by this API.
Index ¶
- Variables
- type NewPutDataStreamMappings
- type PutDataStreamMappings
- func (r *PutDataStreamMappings) AddProperty(key string, value types.PropertyVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) AddRuntime(key string, value types.RuntimeFieldVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) AllField(allfield types.AllFieldVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) DataStreamTimestamp_(datastreamtimestamp_ types.DataStreamTimestampVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) DateDetection(datedetection bool) *PutDataStreamMappings
- func (r PutDataStreamMappings) Do(providedCtx context.Context) (*Response, error)
- func (r *PutDataStreamMappings) DryRun(dryrun bool) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Dynamic(dynamic dynamicmapping.DynamicMapping) *PutDataStreamMappings
- func (r *PutDataStreamMappings) DynamicDateFormats(dynamicdateformats ...string) *PutDataStreamMappings
- func (r *PutDataStreamMappings) DynamicTemplates(dynamictemplates []map[string]types.DynamicTemplate) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Enabled(enabled bool) *PutDataStreamMappings
- func (r *PutDataStreamMappings) ErrorTrace(errortrace bool) *PutDataStreamMappings
- func (r *PutDataStreamMappings) FieldNames_(fieldnames_ types.FieldNamesFieldVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) FilterPath(filterpaths ...string) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Header(key, value string) *PutDataStreamMappings
- func (r *PutDataStreamMappings) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *PutDataStreamMappings) Human(human bool) *PutDataStreamMappings
- func (r *PutDataStreamMappings) IndexField(indexfield types.IndexFieldVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) MasterTimeout(duration string) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Meta_(metadata types.MetadataVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) NumericDetection(numericdetection bool) *PutDataStreamMappings
- func (r PutDataStreamMappings) Perform(providedCtx context.Context) (*http.Response, error)
- func (r *PutDataStreamMappings) Pretty(pretty bool) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Properties(properties map[string]types.Property) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Raw(raw io.Reader) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Request(req *Request) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Routing_(routing_ types.RoutingFieldVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Runtime(runtime map[string]types.RuntimeField) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Size_(size_ types.SizeFieldVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Source_(source_ types.SourceFieldVariant) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Subobjects(subobjects subobjects.Subobjects) *PutDataStreamMappings
- func (r *PutDataStreamMappings) Timeout(duration string) *PutDataStreamMappings
- 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 NewPutDataStreamMappings ¶
type NewPutDataStreamMappings func(name string) *PutDataStreamMappings
NewPutDataStreamMappings type alias for index.
func NewPutDataStreamMappingsFunc ¶
func NewPutDataStreamMappingsFunc(tp elastictransport.Interface) NewPutDataStreamMappings
NewPutDataStreamMappingsFunc returns a new instance of PutDataStreamMappings with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type PutDataStreamMappings ¶
type PutDataStreamMappings struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *PutDataStreamMappings
Update data stream mappings.
This API can be used to override mappings on specific data streams. These overrides will take precedence over what is specified in the template that the data stream matches. The mapping change is only applied to new write indices that are created during rollover after this API is called. No indices are changed by this API.
func (*PutDataStreamMappings) AddProperty ¶
func (r *PutDataStreamMappings) AddProperty(key string, value types.PropertyVariant) *PutDataStreamMappings
func (*PutDataStreamMappings) AddRuntime ¶
func (r *PutDataStreamMappings) AddRuntime(key string, value types.RuntimeFieldVariant) *PutDataStreamMappings
func (*PutDataStreamMappings) AllField ¶
func (r *PutDataStreamMappings) AllField(allfield types.AllFieldVariant) *PutDataStreamMappings
API name: all_field
func (*PutDataStreamMappings) DataStreamTimestamp_ ¶
func (r *PutDataStreamMappings) DataStreamTimestamp_(datastreamtimestamp_ types.DataStreamTimestampVariant) *PutDataStreamMappings
API name: _data_stream_timestamp
func (*PutDataStreamMappings) DateDetection ¶
func (r *PutDataStreamMappings) DateDetection(datedetection bool) *PutDataStreamMappings
API name: date_detection
func (PutDataStreamMappings) Do ¶
func (r PutDataStreamMappings) Do(providedCtx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a putdatastreammappings.Response
func (*PutDataStreamMappings) DryRun ¶
func (r *PutDataStreamMappings) DryRun(dryrun bool) *PutDataStreamMappings
DryRun If `true`, the request does not actually change the mappings on any data streams. Instead, it simulates changing the settings and reports back to the user what would have happened had these settings actually been applied. API name: dry_run
func (*PutDataStreamMappings) Dynamic ¶
func (r *PutDataStreamMappings) Dynamic(dynamic dynamicmapping.DynamicMapping) *PutDataStreamMappings
API name: dynamic
func (*PutDataStreamMappings) DynamicDateFormats ¶
func (r *PutDataStreamMappings) DynamicDateFormats(dynamicdateformats ...string) *PutDataStreamMappings
API name: dynamic_date_formats
func (*PutDataStreamMappings) DynamicTemplates ¶
func (r *PutDataStreamMappings) DynamicTemplates(dynamictemplates []map[string]types.DynamicTemplate) *PutDataStreamMappings
API name: dynamic_templates
func (*PutDataStreamMappings) Enabled ¶
func (r *PutDataStreamMappings) Enabled(enabled bool) *PutDataStreamMappings
API name: enabled
func (*PutDataStreamMappings) ErrorTrace ¶
func (r *PutDataStreamMappings) ErrorTrace(errortrace bool) *PutDataStreamMappings
ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors when they occur. API name: error_trace
func (*PutDataStreamMappings) FieldNames_ ¶
func (r *PutDataStreamMappings) FieldNames_(fieldnames_ types.FieldNamesFieldVariant) *PutDataStreamMappings
API name: _field_names
func (*PutDataStreamMappings) FilterPath ¶
func (r *PutDataStreamMappings) FilterPath(filterpaths ...string) *PutDataStreamMappings
FilterPath Comma-separated list of filters in dot notation which reduce the response returned by Elasticsearch. API name: filter_path
func (*PutDataStreamMappings) Header ¶
func (r *PutDataStreamMappings) Header(key, value string) *PutDataStreamMappings
Header set a key, value pair in the PutDataStreamMappings headers map.
func (*PutDataStreamMappings) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*PutDataStreamMappings) Human ¶
func (r *PutDataStreamMappings) Human(human bool) *PutDataStreamMappings
Human When set to `true` will return statistics in a format suitable for humans. For example `"exists_time": "1h"` for humans and `"exists_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 (*PutDataStreamMappings) IndexField ¶
func (r *PutDataStreamMappings) IndexField(indexfield types.IndexFieldVariant) *PutDataStreamMappings
API name: index_field
func (*PutDataStreamMappings) MasterTimeout ¶
func (r *PutDataStreamMappings) MasterTimeout(duration string) *PutDataStreamMappings
MasterTimeout The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. API name: master_timeout
func (*PutDataStreamMappings) Meta_ ¶
func (r *PutDataStreamMappings) Meta_(metadata types.MetadataVariant) *PutDataStreamMappings
API name: _meta
func (*PutDataStreamMappings) NumericDetection ¶
func (r *PutDataStreamMappings) NumericDetection(numericdetection bool) *PutDataStreamMappings
API name: numeric_detection
func (PutDataStreamMappings) Perform ¶
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*PutDataStreamMappings) Pretty ¶
func (r *PutDataStreamMappings) Pretty(pretty bool) *PutDataStreamMappings
Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use this option for debugging only. API name: pretty
func (*PutDataStreamMappings) Properties ¶
func (r *PutDataStreamMappings) Properties(properties map[string]types.Property) *PutDataStreamMappings
API name: properties
func (*PutDataStreamMappings) Raw ¶
func (r *PutDataStreamMappings) Raw(raw io.Reader) *PutDataStreamMappings
Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.
func (*PutDataStreamMappings) Request ¶
func (r *PutDataStreamMappings) Request(req *Request) *PutDataStreamMappings
Request allows to set the request property with the appropriate payload.
func (*PutDataStreamMappings) Routing_ ¶
func (r *PutDataStreamMappings) Routing_(routing_ types.RoutingFieldVariant) *PutDataStreamMappings
API name: _routing
func (*PutDataStreamMappings) Runtime ¶
func (r *PutDataStreamMappings) Runtime(runtime map[string]types.RuntimeField) *PutDataStreamMappings
API name: runtime
func (*PutDataStreamMappings) Size_ ¶
func (r *PutDataStreamMappings) Size_(size_ types.SizeFieldVariant) *PutDataStreamMappings
API name: _size
func (*PutDataStreamMappings) Source_ ¶
func (r *PutDataStreamMappings) Source_(source_ types.SourceFieldVariant) *PutDataStreamMappings
API name: _source
func (*PutDataStreamMappings) Subobjects ¶
func (r *PutDataStreamMappings) Subobjects(subobjects subobjects.Subobjects) *PutDataStreamMappings
API name: subobjects
func (*PutDataStreamMappings) Timeout ¶
func (r *PutDataStreamMappings) Timeout(duration string) *PutDataStreamMappings
Timeout The period to wait for a response. If no response is received before the
timeout expires, the request fails and returns an error.
API name: timeout
type Request ¶
type Request = types.TypeMapping
Request holds the request body struct for the package putdatastreammappings
type Response ¶
type Response struct {
DataStreams []types.UpdatedDataStreamMappings `json:"data_streams"`
}
Response holds the response body struct for the package putdatastreammappings