models

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action map[string]interface{}

type Application

type Application struct {
	Name       string   `json:"application"`
	Privileges []string `json:"privileges,omitempty"`
	Resources  []string `json:"resources"`
}

type CommonProcessor added in v0.3.0

type CommonProcessor struct {
	Description   string                   `json:"description,omitempty"`
	If            string                   `json:"if,omitempty"`
	IgnoreFailure bool                     `json:"ignore_failure"`
	OnFailure     []map[string]interface{} `json:"on_failure,omitempty"`
	Tag           string                   `json:"tag,omitempty"`
}

type ComponentTemplate added in v0.3.0

type ComponentTemplate struct {
	Name     string                 `json:"-"`
	Meta     map[string]interface{} `json:"_meta,omitempty"`
	Template *Template              `json:"template,omitempty"`
	Version  *int                   `json:"version,omitempty"`
}

type ComponentTemplateResponse added in v0.3.0

type ComponentTemplateResponse struct {
	Name              string            `json:"name"`
	ComponentTemplate ComponentTemplate `json:"component_template"`
}

type ComponentTemplatesResponse added in v0.3.0

type ComponentTemplatesResponse struct {
	ComponentTemplates []ComponentTemplateResponse `json:"component_templates"`
}

type DataStream added in v0.3.0

type DataStream struct {
	Name           string                 `json:"name"`
	TimestampField TimestampField         `json:"timestamp_field"`
	Indices        []DataStreamIndex      `json:"indices"`
	Generation     uint64                 `json:"generation"`
	Meta           map[string]interface{} `json:"_meta"`
	Status         string                 `json:"status"`
	Template       string                 `json:"template"`
	IlmPolicy      string                 `json:"ilm_policy"`
	Hidden         bool                   `json:"hidden"`
	System         bool                   `json:"system"`
	Replicated     bool                   `json:"replicated"`
}

type DataStreamIndex added in v0.3.0

type DataStreamIndex struct {
	IndexName string `json:"index_name"`
	IndexUUID string `json:"index_uuid"`
}

type DataStreamSettings added in v0.3.1

type DataStreamSettings struct {
	Hidden             *bool `json:"hidden,omitempty"`
	AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`
}

type FieldSecurity

type FieldSecurity struct {
	Grant  []string `json:"grant,omitempty"`
	Except []string `json:"except,omitempty"`
}

type Index added in v0.2.0

type Index struct {
	Name     string                 `json:"-"`
	Aliases  map[string]IndexAlias  `json:"aliases,omitempty"`
	Mappings map[string]interface{} `json:"mappings,omitempty"`
	Settings map[string]interface{} `json:"settings,omitempty"`
}

type IndexAlias added in v0.2.0

type IndexAlias struct {
	Name          string                 `json:"-"`
	Filter        map[string]interface{} `json:"filter,omitempty"`
	IndexRouting  string                 `json:"index_routing,omitempty"`
	IsHidden      bool                   `json:"is_hidden,omitempty"`
	IsWriteIndex  bool                   `json:"is_write_index,omitempty"`
	Routing       string                 `json:"routing,omitempty"`
	SearchRouting string                 `json:"search_routing,omitempty"`
}

type IndexPerms

type IndexPerms struct {
	FieldSecurity *FieldSecurity `json:"field_security,omitempty"`
	Names         []string       `json:"names"`
	Privileges    []string       `json:"privileges"`
	Query         *string        `json:"query,omitempty"`
}

type IndexTemplate

type IndexTemplate struct {
	Name          string                 `json:"-"`
	Create        bool                   `json:"-"`
	Timeout       string                 `json:"-"`
	ComposedOf    []string               `json:"composed_of"`
	DataStream    *DataStreamSettings    `json:"data_stream,omitempty"`
	IndexPatterns []string               `json:"index_patterns"`
	Meta          map[string]interface{} `json:"_meta,omitempty"`
	Priority      *int                   `json:"priority,omitempty"`
	Template      *Template              `json:"template,omitempty"`
	Version       *int                   `json:"version,omitempty"`
}

type IndexTemplateResponse

type IndexTemplateResponse struct {
	Name          string        `json:"name"`
	IndexTemplate IndexTemplate `json:"index_template"`
}

type IndexTemplatesResponse

type IndexTemplatesResponse struct {
	IndexTemplates []IndexTemplateResponse `json:"index_templates"`
}

type IngestPipeline added in v0.3.0

type IngestPipeline struct {
	Name        string                   `json:"-"`
	Description *string                  `json:"description,omitempty"`
	OnFailure   []map[string]interface{} `json:"on_failure,omitempty"`
	Processors  []map[string]interface{} `json:"processors"`
	Metadata    map[string]interface{}   `json:"_meta,omitempty"`
}

type Phase

type Phase struct {
	MinAge  string            `json:"min_age,omitempty"`
	Actions map[string]Action `json:"actions"`
}

type Policy

type Policy struct {
	Name     string                 `json:"-"`
	Metadata map[string]interface{} `json:"_meta,omitempty"`
	Phases   map[string]Phase       `json:"phases"`
}

type PolicyDefinition

type PolicyDefinition struct {
	Policy   Policy `json:"policy"`
	Modified string `json:"modified_date"`
}

type ProcessorAppend added in v0.3.0

type ProcessorAppend struct {
	CommonProcessor

	Field           string   `json:"field"`
	Value           []string `json:"value"`
	AllowDuplicates bool     `json:"allow_duplicates"`
	MediaType       string   `json:"media_type"`
}

type ProcessorBytes added in v0.3.0

type ProcessorBytes struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorCSV added in v0.3.0

type ProcessorCSV struct {
	CommonProcessor

	Field         string   `json:"field"`
	TargetFields  []string `json:"target_fields"`
	IgnoreMissing bool     `json:"ignore_missing"`
	Separator     string   `json:"separator"`
	Quote         string   `json:"quote"`
	Trim          bool     `json:"trim"`
	EmptyValue    string   `json:"empty_value,omitempty"`
}

type ProcessorCircle added in v0.3.0

type ProcessorCircle struct {
	CommonProcessor
	ProcessortFields

	ErrorDistance float64 `json:"error_distance"`
	ShapeType     string  `json:"shape_type"`
}

type ProcessorCommunityId added in v0.3.0

type ProcessorCommunityId struct {
	CommonProcessor

	SourceIp        string `json:"source_ip,omitempty"`
	SourcePort      *int   `json:"source_port,omitempty"`
	DestinationIp   string `json:"destination_ip,omitempty"`
	DestinationPort *int   `json:"destination_port,omitempty"`
	IanaNumber      string `json:"iana_number,omitempty"`
	IcmpType        *int   `json:"icmp_type,omitempty"`
	IcmpCode        *int   `json:"icmp_code,omitempty"`
	Transport       string `json:"transport,omitempty"`
	TargetField     string `json:"target_field,omitempty"`
	Seed            *int   `json:"seed"`
	IgnoreMissing   bool   `json:"ignore_missing"`
}

type ProcessorConvert added in v0.3.0

type ProcessorConvert struct {
	CommonProcessor
	ProcessortFields

	Type string `json:"type"`
}

type ProcessorDate added in v0.3.0

type ProcessorDate struct {
	CommonProcessor

	Field        string   `json:"field"`
	TargetField  string   `json:"target_field,omitempty"`
	Formats      []string `json:"formats"`
	Timezone     string   `json:"timezone,omitempty"`
	Locale       string   `json:"locale,omitempty"`
	OutputFormat string   `json:"output_format,omitempty"`
}

type ProcessorDateIndexName added in v0.3.0

type ProcessorDateIndexName struct {
	CommonProcessor

	Field           string   `json:"field"`
	IndexNamePrefix string   `json:"index_name_prefix,omitempty"`
	DateRounding    string   `json:"date_rounding"`
	DateFormats     []string `json:"date_formats,omitempty"`
	Timezone        string   `json:"timezone,omitempty"`
	Locale          string   `json:"locale,omitempty"`
	IndexNameFormat string   `json:"index_name_format,omitempty"`
}

type ProcessorDissect added in v0.3.0

type ProcessorDissect struct {
	CommonProcessor

	Field           string `json:"field"`
	Pattern         string `json:"pattern"`
	AppendSeparator string `json:"append_separator"`
	IgnoreMissing   bool   `json:"ignore_missing"`
}

type ProcessorDotExpander added in v0.3.0

type ProcessorDotExpander struct {
	CommonProcessor

	Field    string `json:"field"`
	Path     string `json:"path,omitempty"`
	Override bool   `json:"override"`
}

type ProcessorDrop added in v0.3.0

type ProcessorDrop struct {
	CommonProcessor
}

type ProcessorEnrich added in v0.3.0

type ProcessorEnrich struct {
	CommonProcessor
	ProcessortFields

	PolicyName    string `json:"policy_name"`
	Override      bool   `json:"override"`
	MaxMatches    int    `json:"max_matches"`
	ShapeRelation string `json:"shape_relation,omitempty"`
}

type ProcessorFail added in v0.3.0

type ProcessorFail struct {
	CommonProcessor

	Message string `json:"message"`
}

type ProcessorFingerprint added in v0.3.0

type ProcessorFingerprint struct {
	CommonProcessor

	Fields        []string `json:"fields"`
	TargetField   string   `json:"target_field,omitempty"`
	IgnoreMissing bool     `json:"ignore_missing"`
	Salt          string   `json:"salt,omitempty"`
	Method        string   `json:"method,omitempty"`
}

type ProcessorForeach added in v0.3.0

type ProcessorForeach struct {
	CommonProcessor

	Field         string                 `json:"field"`
	IgnoreMissing bool                   `json:"ignore_missing"`
	Processor     map[string]interface{} `json:"processor"`
}

type ProcessorGeoip added in v0.3.0

type ProcessorGeoip struct {
	ProcessortFields

	DatabaseFile string   `json:"database_file,omitempty"`
	Properties   []string `json:"properties,omitempty"`
	FirstOnly    bool     `json:"first_only"`
}

type ProcessorGrok added in v0.3.0

type ProcessorGrok struct {
	CommonProcessor

	Field              string            `json:"field"`
	Patterns           []string          `json:"patterns"`
	PatternDefinitions map[string]string `json:"pattern_definitions,omitempty"`
	EcsCompatibility   string            `json:"ecs_compatibility,omitempty"`
	TraceMatch         bool              `json:"trace_match"`
	IgnoreMissing      bool              `json:"ignore_missing"`
}

type ProcessorGsub added in v0.3.0

type ProcessorGsub struct {
	CommonProcessor
	ProcessortFields

	Pattern     string `json:"pattern"`
	Replacement string `json:"replacement"`
}

type ProcessorHtmlStrip added in v0.3.0

type ProcessorHtmlStrip struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorJoin added in v0.3.0

type ProcessorJoin struct {
	CommonProcessor

	Field       string `json:"field"`
	Separator   string `json:"separator"`
	TargetField string `json:"target_field,omitempty"`
}

type ProcessorJson added in v0.3.0

type ProcessorJson struct {
	CommonProcessor

	Field                     string `json:"field"`
	TargetField               string `json:"target_field,omitempty"`
	AddToRoot                 *bool  `json:"add_to_root,omitempty"`
	AddToRootConflictStrategy string `json:"add_to_root_conflict_strategy,omitempty"`
	AllowDuplicateKeys        *bool  `json:"allow_duplicate_keys,omitempty"`
}

type ProcessorKV added in v0.3.0

type ProcessorKV struct {
	CommonProcessor
	ProcessortFields

	FieldSplit    string   `json:"field_split"`
	ValueSplit    string   `json:"value_split"`
	IncludeKeys   []string `json:"include_keys,omitempty"`
	ExcludeKeys   []string `json:"exclude_keys,omitempty"`
	Prefix        string   `json:"prefix,omitempty"`
	TrimKey       string   `json:"trim_key,omitempty"`
	TrimValue     string   `json:"trim_value,omitempty"`
	StripBrackets bool     `json:"strip_brackets"`
}

type ProcessorLowercase added in v0.3.0

type ProcessorLowercase struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorNetworkDirection added in v0.3.0

type ProcessorNetworkDirection struct {
	CommonProcessor

	SourceIp              string   `json:"source_ip,omitempty"`
	DestinationIp         string   `json:"destination_ip,omitempty"`
	TargetField           string   `json:"target_field,omitempty"`
	InternalNetworks      []string `json:"internal_networks,omitempty"`
	InternalNetworksField string   `json:"internal_networks_field,omitempty"`
	IgnoreMissing         bool     `json:"ignore_missing"`
}

type ProcessorPipeline added in v0.3.0

type ProcessorPipeline struct {
	CommonProcessor

	Name string `json:"name"`
}

type ProcessorRegisteredDomain added in v0.3.0

type ProcessorRegisteredDomain struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorRemove added in v0.3.0

type ProcessorRemove struct {
	CommonProcessor

	Field         []string `json:"field"`
	IgnoreMissing bool     `json:"ignore_missing"`
}

type ProcessorRename added in v0.3.0

type ProcessorRename struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorScript added in v0.3.0

type ProcessorScript struct {
	CommonProcessor

	Lang     string                 `json:"lang,omitempty"`
	ScriptId string                 `json:"id,omitempty"`
	Source   string                 `json:"source,omitempty"`
	Params   map[string]interface{} `json:"params,omitempty"`
}

type ProcessorSet added in v0.3.0

type ProcessorSet struct {
	CommonProcessor

	Field            string `json:"field"`
	Value            string `json:"value,omitempty"`
	CopyFrom         string `json:"copy_from,omitempty"`
	Override         bool   `json:"override"`
	IgnoreEmptyValue bool   `json:"ignore_empty_value"`
	MediaType        string `json:"media_type,omitempty"`
}

type ProcessorSetSecurityUser added in v0.3.0

type ProcessorSetSecurityUser struct {
	CommonProcessor

	Field      string   `json:"field"`
	Properties []string `json:"properties,omitempty"`
}

type ProcessorSort added in v0.3.0

type ProcessorSort struct {
	CommonProcessor

	Field       string `json:"field"`
	Order       string `json:"order,omitempty"`
	TargetField string `json:"target_field,omitempty"`
}

type ProcessorSplit added in v0.3.0

type ProcessorSplit struct {
	CommonProcessor
	ProcessortFields

	Separator        string `json:"separator"`
	PreserveTrailing bool   `json:"preserve_trailing"`
}

type ProcessorTrim added in v0.3.0

type ProcessorTrim struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorUppercase added in v0.3.0

type ProcessorUppercase struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorUriParts added in v0.3.0

type ProcessorUriParts struct {
	CommonProcessor

	Field              string `json:"field"`
	TargetField        string `json:"target_field,omitempty"`
	KeepOriginal       bool   `json:"keep_original"`
	RemoveIfSuccessful bool   `json:"remove_if_successful"`
}

type ProcessorUrldecode added in v0.3.0

type ProcessorUrldecode struct {
	CommonProcessor
	ProcessortFields
}

type ProcessorUserAgent added in v0.3.0

type ProcessorUserAgent struct {
	ProcessortFields

	RegexFile         string   `json:"regex_file,omitempty"`
	Properties        []string `json:"properties,omitempty"`
	ExtractDeviceType *bool    `json:"extract_device_type,omitempty"`
}

type ProcessortFields added in v0.3.0

type ProcessortFields struct {
	Field         string `json:"field"`
	TargetField   string `json:"target_field,omitempty"`
	IgnoreMissing bool   `json:"ignore_missing"`
}

type Role

type Role struct {
	Name         string                 `json:"-"`
	Applications []Application          `json:"applications,omitempty"`
	Global       map[string]interface{} `json:"global,omitempty"`
	Cluster      []string               `json:"cluster,omitempty"`
	Indices      []IndexPerms           `json:"indices,omitempty"`
	Metadata     map[string]interface{} `json:"metadata,omitempty"`
	RusAs        []string               `json:"run_as,omitempty"`
}

type SnapshortRetention

type SnapshortRetention struct {
	ExpireAfter *string `json:"expire_after,omitempty"`
	MaxCount    *int    `json:"max_count,omitempty"`
	MinCount    *int    `json:"min_count,omitempty"`
}

type SnapshotPolicy

type SnapshotPolicy struct {
	Id         string                `json:"-"`
	Config     *SnapshotPolicyConfig `json:"config,omitempty"`
	Name       string                `json:"name"`
	Repository string                `json:"repository"`
	Retention  *SnapshortRetention   `json:"retention,omitempty"`
	Schedule   string                `json:"schedule"`
}

type SnapshotPolicyConfig

type SnapshotPolicyConfig struct {
	ExpandWildcards    *string                `json:"expand_wildcards,omitempty"`
	IgnoreUnavailable  *bool                  `json:"ignore_unavailable,omitempty"`
	IncludeGlobalState *bool                  `json:"include_global_state,omitempty"`
	Indices            []string               `json:"indices,omitempty"`
	FeatureStates      []string               `json:"feature_states,omitempty"`
	Metadata           map[string]interface{} `json:"metadata,omitempty"`
	Partial            *bool                  `json:"partial,omitempty"`
}

type SnapshotRepository

type SnapshotRepository struct {
	Name     string                 `json:"-"`
	Type     string                 `json:"type"`
	Settings map[string]interface{} `json:"settings"`
	Verify   bool                   `json:"verify"`
}

type Template

type Template struct {
	Aliases  map[string]IndexAlias  `json:"aliases,omitempty"`
	Mappings map[string]interface{} `json:"mappings,omitempty"`
	Settings map[string]interface{} `json:"settings,omitempty"`
}

type TimestampField added in v0.3.0

type TimestampField struct {
	Name string `json:"name"`
}

type User

type User struct {
	Username     string                 `json:"-"`
	FullName     string                 `json:"full_name,omitempty"`
	Email        string                 `json:"email,omitempty"`
	Roles        []string               `json:"roles"`
	Password     *string                `json:"password,omitempty"`
	PasswordHash *string                `json:"password_hash,omitempty"`
	Metadata     map[string]interface{} `json:"metadata,omitempty"`
	Enabled      bool                   `json:"enabled"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL