Skip to content

Commit

Permalink
fix(external docs): Fix sink compression options (#9869)
Browse files Browse the repository at this point in the history
Signed-off-by: 001wwang <will.wang@datadoghq.com>
  • Loading branch information
wbew authored Nov 2, 2021
1 parent 2da7c64 commit a67755a
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions website/cue/reference/components/sinks.cue
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package metadata

import (
"list"
)

components: sinks: [Name=string]: {
kind: "sink"

Expand Down Expand Up @@ -136,12 +132,22 @@ components: sinks: [Name=string]: {
type: string: {
default: features.send.compression.default
enum: {
if list.Contains(features.send.compression.algorithms, "none") {
none: "No compression."
syntax: "literal"
}
if list.Contains(features.send.compression.algorithms, "gzip") {
gzip: "[Gzip](\(urls.gzip)) standard DEFLATE compression."
for algo in features.send.compression.algorithms {
if algo == "none" {
none: "No compression."
}
if algo == "gzip" {
gzip: "[Gzip](\(urls.gzip)) standard DEFLATE compression."
}
if algo == "snappy" {
snappy: "[Snappy](\(urls.snappy)) compression."
}
if algo == "lz4" {
lz4: "[lz4](\(urls.lz4)) compression."
}
if algo == "zstd" {
zstd: "[zstd](\(urls.zstd)) compression."
}
}
}
syntax: "literal"
Expand Down

0 comments on commit a67755a

Please sign in to comment.