From a9c8dc88ce7c35b75ab3d1bf903aca0a6feaee53 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Fri, 5 May 2023 13:59:16 -0500 Subject: [PATCH] chore(docs): Document event type conditions (#17311) 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: {