A set of YAML snippets for working with the Elastic Common Schema (ECS) field definitions.
A collection of YAML snippets for faster development of ECS field definitions in Visual Studio Code. See the VSCode docs for more detail around creating code snippets.
- name: $1
level: ${2:extended}
type: ${3:keyword}
short: $4
description: >
$5
example: $6
---
- name: ${1:$TM_FILENAME_BASE}
title: $2
group: ${3:2}
short: $4
description: >
$5
type: ${6:group}
fields:
- name: $7
level: ${8:extended}
type: ${9:keyword}
short: $10
description: >
$11
example: $12
reusable:
top_level: ${1:true}
expected:
- at: $2
as: ${3:$TM_FILENAME_BASE}