{
  "$id": "go.opentelemetry.io/collector/config/configretry",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "back_off_config": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether to not retry sending batches in case of export failure.",
          "default": true
        },
        "initial_interval": {
          "type": "string",
          "description": "The time to wait after the first failure before retrying.",
          "default": "5s",
          "minimum": 0,
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
        },
        "max_elapsed_time": {
          "type": "string",
          "description": "The maximum amount of time (including retries) spent trying to send a request/batch. \nOnce this value is reached, the data is discarded. If set to 0, the retries are never stopped.\n",
          "default": "5m",
          "minimum": 0,
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
        },
        "max_interval": {
          "type": "string",
          "description": "The upper bound on backoff interval. Once this value is reached the delay \nbetween consecutive retries will always be `MaxInterval`.\n",
          "default": "30s",
          "minimum": 0,
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
        },
        "multiplier": {
          "type": "number",
          "description": "The value multiplied by the backoff interval bounds",
          "default": 1.5,
          "minimum": 0
        },
        "randomization_factor": {
          "type": "number",
          "description": "A random factor used to calculate next backoffs \nRandomized interval = RetryInterval * (1 ± RandomizationFactor)\n",
          "default": 0.5,
          "minimum": 0,
          "maximum": 1
        }
      },
      "description": "Defines configuration for retrying batches in case of export failure. \nThe current supported strategy is exponential backoff.\n"
    }
  },
  "title": "pkg/configretry"
}