mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
58 lines
1.9 KiB
JSON
58 lines
1.9 KiB
JSON
{
|
|
"$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
|
|
}
|