diff --git a/schemas/vector/detiler/v1.schema.json b/schemas/vector/detiler/v1.schema.json new file mode 100644 index 00000000..c1093ca0 --- /dev/null +++ b/schemas/vector/detiler/v1.schema.json @@ -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" + } + } + } + } +}