@@ -28,4 +28,95 @@ type Opensearch struct {
2828 Password * plugins.Secret `json:"password,omitempty"`
2929 // Optional, Force certificate validation
3030 SslVerify * bool `json:"sslVerify,omitempty"`
31+ // Optional, Absolute path to CA certificate file
32+ CAFile * string `json:"caFile,omitempty"`
33+ // Optional, Absolute path to client Certificate file
34+ ClientCert * string `json:"clientCert,omitempty"`
35+ // Optional, Absolute path to client private Key file
36+ ClientKey * string `json:"clientKey,omitempty"`
37+ // Optional, password for ClientKey file
38+ ClientKeyPassword * plugins.Secret `json:"clientKeyPassword,omitempty"`
39+ // Optional, You can specify SSL/TLS version (default: TLSv1_2)
40+ SslVersion * string `json:"sslVersion,omitempty"`
41+ // Optional, Minimum SSL/TLS version
42+ SslMinVersion * string `json:"sslMinVersion,omitempty"`
43+ // Optional, Maximum SSL/TLS version
44+ SslMaxVersion * string `json:"sslMaxVersion,omitempty"`
45+ // Optional, Enable logging of 400 reason without enabling debug log level (default: false)
46+ LogOs400Reason * bool `json:"logOs400Reason,omitempty"`
47+ // Optional, HTTP request timeout in seconds (default: 5s)
48+ // +kubebuilder:validation:Pattern:="^\\d+(s|m|h|d)$"
49+ RequestTimeout * string `json:"requestTimeout,omitempty"`
50+ // Optional, Indicates that the plugin should reset connection on any error (reconnect on next send) (default: false)
51+ ReconnectOnError * bool `json:"reconnectOnError,omitempty"`
52+ // Optional, Automatically reload connection after 10000 documents (default: true)
53+ ReloadConnections * bool `json:"reloadConnections,omitempty"`
54+ // Optional, When ReloadConnections true, this is the integer number of operations after which the plugin will reload the connections (default: 10000)
55+ ReloadAfter * uint32 `json:"reloadAfter,omitempty"`
56+ // Optional, Indicates that the opensearch-transport will try to reload the nodes addresses if there is a failure while making the request (default: false)
57+ ReloadOnFailure * bool `json:"reloadOnFailure,omitempty"`
58+ // Optional, You can specify times of retry obtaining OpenSearch version (default: 15)
59+ MaxRetryGetOsVersion * uint32 `json:"maxRetryGetOsVersion,omitempty"`
60+ // Optional, Indicates whether to fail when max_retry_get_os_version is exceeded (default: true)
61+ FailOnDetectingOsVersionRetryExceed * bool `json:"failOnDetectingOsVersionRetryExceed,omitempty"`
62+ // Optional, Default OpenSearch version (default: 1)
63+ DefaultOpensearchVersion * uint32 `json:"defaultOpensearchVersion,omitempty"`
64+ // Optional, Validate OpenSearch version at startup (default: true)
65+ VerifyOsVersionAtStartup * bool `json:"verifyOsVersionAtStartup,omitempty"`
66+ // Optional, Always update the template, even if it already exists (default: false)
67+ TemplateOverwrite * bool `json:"templateOverwrite,omitempty"`
68+ // Optional, You can specify times of retry putting template (default: 10)
69+ MaxRetryPuttingTemplate * uint32 `json:"maxRetryPuttingTemplate,omitempty"`
70+ // Optional, Indicates whether to fail when max_retry_putting_template is exceeded (default: true)
71+ FailOnPuttingTemplateRetryExceed * bool `json:"failOnPuttingTemplateRetryExceed,omitempty"`
72+ // Optional, Provide a different sniffer class name
73+ SnifferClassName * string `json:"snifferClassName,omitempty"`
74+ // Optional, Provide a selector class name
75+ SelectorClassName * string `json:"selectorClassName,omitempty"`
76+ // Optional, You can specify HTTP backend (default: excon). Options: excon, typhoeus
77+ HttpBackend * string `json:"httpBackend,omitempty"`
78+ // Optional, With http_backend_excon_nonblock false, plugin uses excon with nonblock=false (default: true)
79+ HttpBackendExconNonblock * bool `json:"httpBackendExconNonblock,omitempty"`
80+ // Optional, You can specify the compression level (default: no_compression). Options: no_compression, best_compression, best_speed, default_compression
81+ CompressionLevel * string `json:"compressionLevel,omitempty"`
82+ // Optional, With default behavior, plugin uses Yajl as JSON encoder/decoder. Set to true to use Oj (default: false)
83+ PreferOjSerializer * bool `json:"preferOjSerializer,omitempty"`
84+ // Optional, Suppress '[types removal]' warnings on OpenSearch 2.x (default: true for OS2+)
85+ SuppressTypeName * bool `json:"suppressTypeName,omitempty"`
86+ // Optional, With content_type application/x-ndjson, plugin adds application/x-ndjson as Content-Type (default: application/json)
87+ ContentType * string `json:"contentType,omitempty"`
88+ // Optional, Include tag key in record (default: false)
89+ IncludeTagKey * bool `json:"includeTagKey,omitempty"`
90+ // Optional, Tag key name when include_tag_key is true (default: tag)
91+ TagKey * string `json:"tagKey,omitempty"`
92+ // Optional, Record accessor syntax to specify the field to use as _id in OpenSearch
93+ IdKey * string `json:"idKey,omitempty"`
94+ // Optional, Remove specified keys from the event record
95+ RemoveKeys * string `json:"removeKeys,omitempty"`
96+ // Optional, Remove keys when record is being updated
97+ RemoveKeysOnUpdate * string `json:"removeKeysOnUpdate,omitempty"`
98+ // Optional, The write operation (default: index). Options: index, create, update, upsert
99+ WriteOperation * string `json:"writeOperation,omitempty"`
100+ // Optional, When write_operation is not index, setting this true will cause plugin to emit_error_event of records which do not include _id field (default: false)
101+ EmitErrorForMissingId * bool `json:"emitErrorForMissingId,omitempty"`
102+ // Optional, Custom headers in Hash format
103+ CustomHeaders * string `json:"customHeaders,omitempty"`
104+ // Optional, Pipeline name
105+ Pipeline * string `json:"pipeline,omitempty"`
106+ // Optional, UTC index (default: false for local time)
107+ UtcIndex * bool `json:"utcIndex,omitempty"`
108+ // Optional, Suppress doc_wrap (default: false)
109+ SuppressDocWrap * bool `json:"suppressDocWrap,omitempty"`
110+ // Optional, List of exception classes to ignore
111+ IgnoreExceptions * string `json:"ignoreExceptions,omitempty"`
112+ // Optional, Backup chunk when ignore exception occurs (default: true)
113+ ExceptionBackup * bool `json:"exceptionBackup,omitempty"`
114+ // Optional, Configure bulk_message request splitting threshold size (default: -1 unlimited)
115+ BulkMessageRequestThreshold * int32 `json:"bulkMessageRequestThreshold,omitempty"`
116+ // Optional, Specify the application name for the rollover index to be created (default: default)
117+ ApplicationName * string `json:"applicationName,omitempty"`
118+ // Optional, Specify the index date pattern for creating a rollover index (default: now/d)
119+ IndexDatePattern * string `json:"indexDatePattern,omitempty"`
120+ // Optional, Use legacy template or not (default: false for composable templates)
121+ UseLegacyTemplate * bool `json:"useLegacyTemplate,omitempty"`
31122}
0 commit comments