From cd4d31549adc42a51f5c3bcaa8410cef7b3ff31b Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Thu, 4 May 2023 13:56:13 -0700 Subject: [PATCH] chore(docs): Document event type conditions Signed-off-by: Jesse Szwedko --- website/cue/reference.cue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/website/cue/reference.cue b/website/cue/reference.cue index 26e91e24bab81..17f587f64f3c4 100644 --- a/website/cue/reference.cue +++ b/website/cue/reference.cue @@ -392,12 +392,12 @@ _values: { #Syntax: { name: !="" description: !="" - example: !="" + example: string | null } #ConditionExample: { title: !="" - name: "vrl" | "datadog_search" + name: "vrl" | "datadog_search" | "is_log" | "is_metric" | "is_trace" example: !="" vrl_only: bool | *false } @@ -416,6 +416,21 @@ _values: { description: "A [Datadog Search](\(urls.datadog_search_syntax)) query string." example: #"*stack"# }, + { + name: "is_log" + description: "Whether the incoming event is a log." + example: null + }, + { + name: "is_metric" + description: "Whether the incoming event is a metric." + example: null + }, + { + name: "is_trace" + description: "Whether the incoming event is a trace." + example: null + }, ] options: {