Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[index template] Fix data stream timestamp field #1570

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 16 additions & 12 deletions indices_get_index_template.go
Expand Up @@ -231,16 +231,20 @@ type IndicesGetIndexTemplateData struct {
}

type IndicesDataStream struct {
Name string `json:"name,omitempty"`
TimestampField string `json:"timestamp_field,omitempty"`
Indices []string `json:"indices,omitempty"`
Generation int64 `json:"generation,omitempty"`
Status string `json:"status,omitempty"`
IndexTemplate string `json:"template,omitempty"`
IlmPolicy string `json:"ilm_policy,omitempty"`
Meta map[string]interface{} `json:"_meta,omitempty"`
Hidden bool `json:"hidden,omitempty"`
System bool `json:"system,omitempty"`
AllowCustomRouting bool `json:"allow_custom_routing,omitempty"`
Replicated bool `json:"replicated,omitempty"`
Name string `json:"name,omitempty"`
TimestampField *IndicesDataStreamTimestampField `json:"timestamp_field,omitempty"`
Indices []string `json:"indices,omitempty"`
Generation int64 `json:"generation,omitempty"`
Status string `json:"status,omitempty"`
IndexTemplate string `json:"template,omitempty"`
IlmPolicy string `json:"ilm_policy,omitempty"`
Meta map[string]interface{} `json:"_meta,omitempty"`
Hidden bool `json:"hidden,omitempty"`
System bool `json:"system,omitempty"`
AllowCustomRouting bool `json:"allow_custom_routing,omitempty"`
Replicated bool `json:"replicated,omitempty"`
}

type IndicesDataStreamTimestampField struct {
Name string `json:"name,omitempty"`
}