Skip to content

Commit d9728af

Browse files
committed
adding host.json schema for logger, aggregator, and applicationInsights
1 parent cfe641f commit d9728af

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

schemas/json/host.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,73 @@
214214
"pattern": "^\\d\\d:\\d\\d:\\d\\d$"
215215
}
216216
}
217+
},
218+
219+
"logger": {
220+
"description": "Configuration settings for logging.",
221+
"type": "object",
222+
223+
"properties": {
224+
"defaultLevel": {
225+
"description": "The default level for logging. If a category level is not specified, this value is used.",
226+
"enum": [ "Critical", "Debug", "Error", "Information", "None", "Trace", "Warning" ],
227+
"default": "Information"
228+
},
229+
230+
"categoryLevels": {
231+
"description": "Log levels for specific categories.",
232+
"type": "object",
233+
234+
"additionalProperties": {
235+
"enum": [ "Critical", "Debug", "Error", "Information", "None", "Trace", "Warning" ]
236+
}
237+
}
238+
}
239+
},
240+
241+
"aggregator": {
242+
"description": "Configuration settings for the function result aggregator.",
243+
"type": "object",
244+
245+
"properties": {
246+
"batchSize": {
247+
"description": "The maximum batch size for aggregations. If this value is reached before the 'flushTimeout', all values will be flushed.",
248+
"type": "integer",
249+
"default": 1000
250+
},
251+
252+
"flushTimeout": {
253+
"description": "The aggregation duration. The aggregator will flush periodically based on this value.",
254+
"pattern": "^\\d\\d:\\d\\d:\\d\\d$",
255+
"default": "00:00:30"
256+
}
257+
}
258+
},
259+
260+
"applicationInsights": {
261+
"description": "Configuration settings for Application Insights logging.",
262+
"type": "object",
263+
264+
"properties": {
265+
"sampling": {
266+
"description": "Configuration settings for Application Insights client-side adaptive sampling.",
267+
"type": "object",
268+
269+
"properties": {
270+
"isEnabled": {
271+
"description": "If true, client-side adaptive sampling is enabled.",
272+
"type": "boolean",
273+
"default": true
274+
},
275+
276+
"maxTelemetryItemsPerSecond": {
277+
"description": "The target rate that the adaptive algorithm aims for on each instance",
278+
"type": "integer",
279+
"default": 5
280+
}
281+
}
282+
}
283+
}
217284
}
218285
}
219286
}

0 commit comments

Comments
 (0)