summaryrefslogtreecommitdiffstats
path: root/docs/schemas/event-log-msg-detected-v1.schema.json
blob: 30ec3a23fcd4dd5a26ddd10063b1e86b93fbfff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
}