summaryrefslogtreecommitdiffstats
path: root/docs/schemas/event-log-msg-detected-v1.schema.json
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/schemas/event-log-msg-detected-v1.schema.json57
1 files changed, 57 insertions, 0 deletions
diff --git a/docs/schemas/event-log-msg-detected-v1.schema.json b/docs/schemas/event-log-msg-detected-v1.schema.json
new file mode 100644
index 0000000..30ec3a2
--- /dev/null
+++ b/docs/schemas/event-log-msg-detected-v1.schema.json
@@ -0,0 +1,57 @@
+{
+ "$id": "https://lnav.org/event-log-msg-detected-v1.schema.json",
+ "title": "https://lnav.org/event-log-msg-detected-v1.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "description": "Event fired when a log message is detected by a watch expression.",
+ "properties": {
+ "$schema": {
+ "title": "/$schema",
+ "type": "string",
+ "examples": [
+ "https://lnav.org/event-log-msg-detected-v1.schema.json"
+ ]
+ },
+ "watch-name": {
+ "title": "/watch-name",
+ "description": "The name of the watch expression that matched this log message",
+ "type": "string"
+ },
+ "filename": {
+ "title": "/filename",
+ "description": "The path of the file containing the log message",
+ "type": "string"
+ },
+ "line-number": {
+ "title": "/line-number",
+ "description": "The line number in the file, starting from zero",
+ "type": "integer"
+ },
+ "format": {
+ "title": "/format",
+ "description": "The name of the log format that matched this log message",
+ "type": "string"
+ },
+ "timestamp": {
+ "title": "/timestamp",
+ "description": "The timestamp of the log message",
+ "type": "string"
+ },
+ "values": {
+ "description": "The log message values captured by the log format",
+ "title": "/values",
+ "type": "object",
+ "patternProperties": {
+ "([\\w\\-]+)": {
+ "title": "/values/<name>",
+ "type": [
+ "boolean",
+ "integer",
+ "string"
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+}