Skip to content

Commit b23ca3a

Browse files
committed
feat: add subobjects attribute to Field
1 parent c842a93 commit b23ca3a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fields.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ type Field struct {
6767
IncludeInParent *bool `json:"include_in_parent,omitempty" yaml:"include_in_parent,omitempty"` // For nested field types, specifies if fields in the nested object are also added to the parent document
6868
DefaultMetric string `json:"default_metric,omitempty" yaml:"default_metric,omitempty"` // For aggregate_metric_double fields, specifies the default metric aggregation
6969

70+
// Specifies if field names containing dots should be expanded into
71+
// subobjects. For example, if this is set to `true`, a field named `foo.bar`
72+
// will be expanded into an object with a field named `bar` inside an object
73+
// named `foo`. Defaults to true.
74+
Subobjects *bool `json:"subobjects,omitempty" yaml:"subobjects,omitempty"`
75+
7076
// AdditionalProperties contains additional properties that are not
7177
// explicitly specified in the package-spec and are not used by Fleet.
7278
AdditionalAttributes map[string]any `json:"_additional_attributes,omitempty" yaml:",inline"`

0 commit comments

Comments
 (0)