Skip to content

Commit

Permalink
chore(docs): Document event type conditions (vectordotdev#17311)
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko authored May 5, 2023
1 parent 4911d36 commit a9c8dc8
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions website/cue/reference.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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: {
Expand Down

0 comments on commit a9c8dc8

Please sign in to comment.