From 1e69731114cfeeeda808fb0532694e84f0b928fe Mon Sep 17 00:00:00 2001 From: shanewxy <592491808@qq.com> Date: Thu, 9 Jan 2020 13:42:29 +0800 Subject: [PATCH] Added graylog config to logging targets as a logging type --- apis/management.cattle.io/v3/logging_types.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apis/management.cattle.io/v3/logging_types.go b/apis/management.cattle.io/v3/logging_types.go index 1f923bf9..05a19ddb 100644 --- a/apis/management.cattle.io/v3/logging_types.go +++ b/apis/management.cattle.io/v3/logging_types.go @@ -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