{
  "$id": "go.opentelemetry.io/collector/scraper/scraperhelper",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "controller_config": {
      "type": "object",
      "properties": {
        "collection_interval": {
          "type": "string",
          "description": "Sets how frequently the scraper is scheduled.",
          "default": "1m",
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
        },
        "initial_delay": {
          "type": "string",
          "description": "Sets the initial start delay for the scraper, any non positive value is assumed to be immediately.",
          "default": "1s",
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
        },
        "timeout": {
          "type": "string",
          "description": "An optional value used to set scraper's context deadline.",
          "default": 0,
          "pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
        }
      },
      "description": "Defines common settings for a scraper controller configuration. Scraper controller receivers can embed this struct, instead of receiver.Settings, and extend it with more fields if needed."
    }
  },
  "title": "pkg/scraperhelper"
}