1
0
mirror of https://github.com/rancher/types.git synced 2025-09-10 09:29:23 +00:00

Added graylog config to logging targets as a logging type

This commit is contained in:
shanewxy
2020-01-09 13:42:29 +08:00
parent 2eaa9b5bc7
commit 1e69731114

View File

@@ -51,6 +51,7 @@ type LoggingTargets struct {
SyslogConfig *SyslogConfig `json:"syslogConfig,omitempty"`
FluentForwarderConfig *FluentForwarderConfig `json:"fluentForwarderConfig,omitempty"`
CustomTargetConfig *CustomTargetConfig `json:"customTargetConfig,omitempty"`
GraylogConfig *GraylogConfig `json:"graylogConfig,omitempty"`
}
type ClusterLoggingSpec struct {
@@ -177,6 +178,16 @@ type CustomTargetConfig struct {
ClientKey string `json:"clientKey,omitempty"`
}
type GraylogConfig struct {
Endpoint string `json:"endpoint,omitempty" norman:"required"`
Protocol string `json:"protocol,omitempty" norman:"default=udp,type=enum,options=udp|tcp"`
EnableTLS bool `json:"enableTls,omitempty" norman:"default=false"`
Certificate string `json:"certificate,omitempty"`
ClientCert string `json:"clientCert,omitempty"`
ClientKey string `json:"clientKey,omitempty"`
SSLVerify bool `json:"sslVerify,omitempty"`
}
type ClusterTestInput struct {
ClusterName string `json:"clusterId" norman:"required,type=reference[cluster]"`
LoggingTargets