From 9aaa9c54ca97188af945c9f4d28e9e1c9a2c2260 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Fri, 2 Jun 2023 09:06:32 -0400 Subject: [PATCH] chore: Codify the use of abbreviate time units in config option names Codifying the status quo since there wasn't a strong motivator to change it and we want to maintain consistency. Signed-off-by: Jesse Szwedko --- docs/specs/configuration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/specs/configuration.md b/docs/specs/configuration.md index 104da9e2506ae..7831f9389cb83 100644 --- a/docs/specs/configuration.md +++ b/docs/specs/configuration.md @@ -64,7 +64,8 @@ under entities and also used to define global Vector behavior. - MUST only contain ASCII alphanumeric, lowercase, and underscores - MUST be in snake case format when multiple words are used (e.g., `timeout_seconds`) - SHOULD use nouns, not verbs, as names (e.g., `fingerprint` instead of `fingerprinting`) -- MUST suffix options with their _full_ unit name (e.g., `_seconds`, `_bytes`, etc.) +- MUST suffix options with their _full_ unit name (e.g., `_megabytes` rather than `_mb`) or the + following abbreviations for time units: `_secs`, `_ms`, `_ns`. - SHOULD consistent with units within the same scope. (e.g., don't mix seconds and milliseconds) - MUST NOT repeat the name space in the option name (e.g., `fingerprint.bytes` instead of `fingerprint.fingerprint_bytes`)