You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONFIG.md
+90-18Lines changed: 90 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
-
Configuration for the zappend tool.
1
+
## Configuration for the `zappend` tool
2
+
2
3
3
4
### `version`
4
5
5
-
Configuration version.
6
+
Configuration schema version. Allows the schema to evolve while still preserving backwards compatibility.
6
7
It's value is `1`.
7
8
8
9
### `target_uri`
@@ -35,11 +36,12 @@ Must be one of the following:
35
36
It's value is `true`.
36
37
* Type _object_.
37
38
Polling parameters.
39
+
The keys `interval`, `timeout` are required.
40
+
38
41
*`interval`:
39
42
Type _number_.
40
43
Polling interval in seconds.
41
44
Defaults to `2`.
42
-
43
45
*`timeout`:
44
46
Type _number_.
45
47
Polling timeout in seconds.
@@ -66,7 +68,6 @@ It's value is `2`.
66
68
Type _object_.
67
69
Specifies the fixed dimensions of the target dataset. Keys are dimension names, values are dimension sizes.
68
70
Object values are:
69
-
70
71
Type _integer_.
71
72
72
73
### `append_dim`
@@ -80,28 +81,26 @@ Defaults to `"time"`.
80
81
Type _object_.
81
82
Defines dimensions, encoding, and attributes for variables in the target dataset. Object property names refer to variable names. The special name `*` refers to all variables, which is useful for defining common values.
82
83
Object values are:
83
-
84
84
Type _object_.
85
-
Variable metadata
85
+
Variable metadata.
86
+
86
87
*`dims`:
87
88
Type _array_.
88
89
The names of the variable's dimensions in the given order. Each dimension must exist in contributing datasets.
89
-
90
90
*`encoding`:
91
91
Type _object_.
92
92
Variable storage encoding. Settings given here overwrite the encoding settings of the first contributing dataset.
93
+
93
94
*`dtype`:
94
95
Storage data type
95
96
Must be one of `"int8", "uint8", "int16", "uint16", "int32", "uint32", "int64", "uint64", "float32", "float64"`.
96
-
97
97
*`chunks`:
98
98
Storage chunking.
99
99
Must be one of the following:
100
100
* Type _array_.
101
101
Chunk sizes in the order of the dimensions.
102
102
* Disable chunking.
103
103
It's value is `null`.
104
-
105
104
*`fill_value`:
106
105
Storage fill value.
107
106
Must be one of the following:
@@ -111,36 +110,30 @@ Variable metadata
111
110
It's value is `"NaN"`.
112
111
* No fill value.
113
112
It's value is `null`.
114
-
115
113
*`scale_factor`:
116
114
Type _number_.
117
115
Scale factor for computing the in-memory value: `memory_value = scale_factor * storage_value + add_offset`.
118
-
119
116
*`add_offset`:
120
117
Type _number_.
121
118
Add offset for computing the in-memory value: `memory_value = scale_factor * storage_value + add_offset`.
122
-
123
119
*`units`:
124
120
Type _string_.
125
121
Units of the storage data type if memory data type is date/time.
126
-
127
122
*`calendar`:
128
123
Type _string_.
129
124
The calendar to be used if memory data type is date/time.
130
-
131
125
*`compressor`:
132
126
Type _array_ | _null_.
133
127
Compressor. Set to `null` to disable data compression.
128
+
The key `id` is required.
129
+
134
130
*`id`:
135
131
Type _string_.
136
132
137
-
$`$id` are required.
138
-
139
133
*`filters`:
140
134
Type _array_ | _null_.
141
135
Filters. Set to `null` to not use filters.
142
136
143
-
144
137
*`attrs`:
145
138
Type _object_.
146
139
Arbitrary variable metadata attributes.
@@ -160,4 +153,83 @@ Specifies the names of individual variables to be excluded from all contributin
160
153
161
154
Type _boolean_.
162
155
If 'true', log only what would have been done, but don't apply any changes.
163
-
Defaults to `false`.
156
+
Defaults to `false`.
157
+
158
+
### `logging`
159
+
160
+
Type _object_.
161
+
Logging configuration. For details refer to the [dictionary schema](https://docs.python.org/3/library/logging.config.html#logging-config-dictschema) of the Python module `logging.config`.
162
+
The key `version` is required.
163
+
164
+
*`version`:
165
+
Logging schema version.
166
+
It's value is `1`.
167
+
*`formatters`:
168
+
Type _object_.
169
+
Formatter definitions. Each key is a formatter id and each value is an object describing how to configure the corresponding formatter.
170
+
Object values are:
171
+
Type _object_.
172
+
Formatter configuration.
173
+
174
+
*`format`:
175
+
Type _string_.
176
+
Format string in the given `style`.
177
+
Defaults to `"%(message)s"`.
178
+
*`datefmt`:
179
+
Type _string_.
180
+
Format string in the given `style` for the date/time portion.
181
+
Defaults to `"%Y-%m-%d %H:%M:%S,uuu"`.
182
+
*`style`:
183
+
Determines how the format string will be merged with its data.
184
+
Must be one of `"%", "{", "$"`.
185
+
186
+
*`filters`:
187
+
Type _object_.
188
+
Filter definitions. Each key is a filter id and each value is a dict describing how to configure the corresponding filter.
189
+
Object values are:
190
+
Type _object_.
191
+
Filter configuration.
192
+
*`handlers`:
193
+
Type _object_.
194
+
Handler definitions. Each key is a handler id and each value is an object describing how to configure the corresponding handler.
195
+
Object values are:
196
+
Type _object_.
197
+
Handler configuration. All keys other than the following are passed through as keyword arguments to the handler's constructor.
198
+
The key `class` is required.
199
+
200
+
*`class`:
201
+
Type _string_.
202
+
The fully qualified name of the handler class. See [logging handlers](https://docs.python.org/3/library/logging.handlers.html).
203
+
*`level`:
204
+
The level of the handler.
205
+
Must be one of `"CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "NOTSET"`.
206
+
*`formatter `:
207
+
Type _string_.
208
+
The id of the formatter for this handler.
209
+
*`filters`:
210
+
Type _array_.
211
+
A list of ids of the filters for this logger.
212
+
213
+
*`loggers`:
214
+
Type _object_.
215
+
Logger definitions. Each key is a logger name and each value is an object describing how to configure the corresponding logger. The tool's logger has the id `'zappend'`.
216
+
Object values are:
217
+
Type _object_.
218
+
Logger configuration.
219
+
220
+
*`level`:
221
+
The level of the logger.
222
+
Must be one of `"CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG", "NOTSET"`.
0 commit comments