@@ -28,6 +28,12 @@ const (
28
28
LogTypeNetwork LogType = "network"
29
29
)
30
30
31
+ const (
32
+ CompressionFormatNone CompressionFormat = "none"
33
+ CompressionFormatZstd CompressionFormat = "zstd"
34
+ CompressionFormatGzip CompressionFormat = "gzip"
35
+ )
36
+
31
37
const (
32
38
S3AccessKeyAuthentication S3AuthenticationType = "accesskey"
33
39
S3RoleARNAuthentication S3AuthenticationType = "rolearn"
@@ -39,6 +45,8 @@ type LogstreamConfiguration struct {
39
45
DestinationType LogstreamEndpointType `json:"destinationType,omitempty"`
40
46
URL string `json:"url,omitempty"`
41
47
User string `json:"user,omitempty"`
48
+ UploadPeriodMinutes int `json:"uploadPeriodMinutes,omitempty"`
49
+ CompressionFormat CompressionFormat `json:"compressionFormat,omitempty"`
42
50
S3Bucket string `json:"s3Bucket,omitempty"`
43
51
S3Region string `json:"s3Region,omitempty"`
44
52
S3KeyPrefix string `json:"s3KeyPrefix,omitempty"`
@@ -54,6 +62,8 @@ type SetLogstreamConfigurationRequest struct {
54
62
URL string `json:"url,omitempty"`
55
63
User string `json:"user,omitempty"`
56
64
Token string `json:"token,omitempty"`
65
+ UploadPeriodMinutes int `json:"uploadPeriodMinutes,omitempty"`
66
+ CompressionFormat CompressionFormat `json:"compressionFormat,omitempty"`
57
67
S3Bucket string `json:"s3Bucket,omitempty"`
58
68
S3Region string `json:"s3Region,omitempty"`
59
69
S3KeyPrefix string `json:"s3KeyPrefix,omitempty"`
@@ -70,6 +80,9 @@ type LogstreamEndpointType string
70
80
// LogType describes the type of logging.
71
81
type LogType string
72
82
83
+ // CompressionFormat specifies what kind of compression to use on logs.
84
+ type CompressionFormat string
85
+
73
86
// S3AuthenticationType describes the type of authentication used to stream logs to a LogstreamS3Endpoint.
74
87
type S3AuthenticationType string
75
88
0 commit comments