Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment []string
Comment is an array of strings
func (*Comment) UnmarshalJSON ¶
UnmarshalJSON unmarshals the given byte into a Comment. Valid values are strings and arrays of strings
type Field ¶
type Field struct { Comment Comment `json:"comment"` Default string `json:"default"` Index *int `json:"index"` Required bool `json:"required"` Sanitization Sanitization `json:"sanitization"` TopLevelField bool `json:"top_level_field"` Type string `json:"type"` URL string `json:"url"` }
Field contains requirements for a log field
type Sanitization ¶
type Sanitization struct { Key struct { Replacements []string `json:"replacements"` Substitute string `json:"substitute"` } `json:"key"` }
Sanitization defines a substitute for certain substrings
type Spec ¶
type Spec struct { URL string `json:"url"` ECS struct { Version string `json:"version"` } `json:"ecs"` Fields map[string]Field `json:"fields"` }
Spec holds the fields specified for a spec version
var ( // V1 holds the v1 specification V1 *Spec )
func (*Spec) RequiredFields ¶
RequiredFields returns all fields that are defined as required
Click to show internal directories.
Click to hide internal directories.