Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions schemas/vector/detiler/v1.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$id": "https://mapcolonies.com/vector/detiler/v1",
"type": "object",
"title": "vectorDetilerSchemaV1",
"description": "Vector's detiler schema",
"allOf": [
{
"$ref": "https://mapcolonies.com/common/boilerplate/v2"
},
{
"properties": {
"telemetry": {
"$ref": "#/definitions/metrics"
}
}
},
{
"type": "object",
"required": ["redis"],
"properties": {
"redis": {
"$ref": "https://mapcolonies.com/common/redis/v1"
}
}
}
],
"definitions": {
"metrics": {
"type": "object",
"description": "metrics configuration",
"properties": {
"enabled": {
"type": "boolean",
"x-env-value": "TELEMETRY_METRICS_ENABLED",
"description": "Indicates if Telemetry metrics should be sent",
"default": false
},
"url": {
"type": "string",
"x-env-value": "TELEMETRY_METRICS_URL",
"description": "The URL of the metrics server. could be http or https",
"pattern": "^https?:\/\/.*"
},
"interval": {
"type": "integer",
"x-env-value": "TELEMETRY_METRICS_INTERVAL",
"description": "The interval in seconds to send metrics"
}
}
}
}
}