diff options
| author | Paul Buetow <paul@buetow.org> | 2021-08-12 10:56:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-08-12 10:56:36 +0300 |
| commit | 3cc8887885f24a3f0d607af24197bc364ab16b8d (patch) | |
| tree | 48e85a54d3e4f6139001a58a3e57dd03b27c780a /samples | |
| parent | 1e00c256842e125a865a6cc3f9aa70a1a498f6dc (diff) | |
add missing brush and also add color client configs plus jsonschema
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/dtail.json.sample | 56 | ||||
| -rwxr-xr-x | samples/dtail.schema.json | 111 |
2 files changed, 158 insertions, 9 deletions
diff --git a/samples/dtail.json.sample b/samples/dtail.json.sample index 33d445f..91233f9 100644 --- a/samples/dtail.json.sample +++ b/samples/dtail.json.sample @@ -1,22 +1,62 @@ { - "Client": {}, + "Client": { + "TermColorsEnable": true, + "TermColors": { + "ClientErrorAttr": "Bold", + "ClientErrorBg": "Black", + "ClientErrorFg": "Red", + "ClientStatsAttr": "Dim", + "ClientStatsBg": "Blue", + "ClientStatsFg": "White", + "ClientWarnAttr": "None", + "ClientWarnBg": "Black", + "ClientWarnFg": "Magenta", + "RemoteDebugAttr": "None", + "RemoteDebugBg": "Green", + "RemoteDebugFg": "Black", + "RemoteErrorAttr": "Bold", + "RemoteErrorBg": "Red", + "RemoteErrorFg": "White", + "RemoteFatalAttr": "Blink", + "RemoteFatalBg": "Red", + "RemoteFatalFg": "White", + "RemoteStatsOkAttr": "None", + "RemoteStatsOkBg": "Green", + "RemoteStatsOkFg": "Black", + "RemoteStatsWarnAttr": "None", + "RemoteStatsWarnBg": "Red", + "RemoteStatsWarnFg": "White", + "RemoteTextAttr": "None", + "RemoteTextBg": "Black", + "RemoteTextFg": "White", + "RemoteTraceAttr": "Bold", + "RemoteTraceBg": "Green", + "RemoteTraceFg": "White", + "RemoteWarnAttr": "Bold", + "RemoteWarnBg": "Yellow", + "RemoteWarnFg": "White" + } + }, "Server": { "SSHBindAddress": "0.0.0.0", "MaxConcurrentCats": 2, "MaxConcurrentTails": 50, "MaxConnections": 50, - "MapreduceLogFormat" : "default", - "HostKeyFile" : "cache/ssh_host_key", - "HostKeyBits" : 2048, + "MapreduceLogFormat": "default", + "HostKeyFile": "cache/ssh_host_key", + "HostKeyBits": 2048, "Permissions": { "Default": [ "readfiles:^/.*$" ], "Users": { + "paul": [ + "readfiles:^/.*$" + ], "pbuetow": [ "readfiles:^/.*$" ], - "jblake": [ + "jamesblake": [ "readfiles:^/tmp/foo.log$", "readfiles:^/.*$", "readfiles:!^/tmp/bar.log$" @@ -25,9 +65,9 @@ } }, "Common": { - "LogDir" : "log", - "CacheDir" : "cache", - "TmpDir" : "tmp", + "LogDir": "log", + "CacheDir": "cache", + "TmpDir": "tmp", "LogStrategy": "stdout", "SSHPort": 2222, "DebugEnable": false, diff --git a/samples/dtail.schema.json b/samples/dtail.schema.json index 0497fbf..7978baf 100755 --- a/samples/dtail.schema.json +++ b/samples/dtail.schema.json @@ -4,7 +4,116 @@ "type": "object", "properties": { "Client": { - "properties": {}, + "properties": { + "TermColorsEnable": { + "type": "boolean" + }, + "TermColors": { + "type": "object", + "properties": { + "ClientErrorAttr": { + "type": "string" + }, + "ClientErrorBg": { + "type": "string" + }, + "ClientErrorFg": { + "type": "string" + }, + "ClientStatsAttr": { + "type": "string" + }, + "ClientStatsBg": { + "type": "string" + }, + "ClientStatsFg": { + "type": "string" + }, + "ClientWarnAttr": { + "type": "string" + }, + "ClientWarnBg": { + "type": "string" + }, + "ClientWarnFg": { + "type": "string" + }, + "RemoteDebugAttr": { + "type": "string" + }, + "RemoteDebugBg": { + "type": "string" + }, + "RemoteDebugFg": { + "type": "string" + }, + "RemoteErrorAttr": { + "type": "string" + }, + "RemoteErrorBg": { + "type": "string" + }, + "RemoteErrorFg": { + "type": "string" + }, + "RemoteFatalAttr": { + "type": "string" + }, + "RemoteFatalBg": { + "type": "string" + }, + "RemoteFatalFg": { + "type": "string" + }, + "RemoteStatsOkAttr": { + "type": "string" + }, + "RemoteStatsOkBg": { + "type": "string" + }, + "RemoteStatsOkFg": { + "type": "string" + }, + "RemoteStatsWarnAttr": { + "type": "string" + }, + "RemoteStatsWarnBg": { + "type": "string" + }, + "RemoteStatsWarnFg": { + "type": "string" + }, + "RemoteTextAttr": { + "type": "string" + }, + "RemoteTextBg": { + "type": "string" + }, + "RemoteTextFg": { + "type": "string" + }, + "RemoteTraceAttr": { + "type": "string" + }, + "RemoteTraceBg": { + "type": "string" + }, + "RemoteTraceFg": { + "type": "string" + }, + "RemoteWarnAttr": { + "type": "string" + }, + "RemoteWarnBg": { + "type": "string" + }, + "RemoteWarnFg": { + "type": "string" + } + }, + "additionalProperties": false + } + }, "additionalProperties": false }, "Server": { |
