TAPQueryRunnerConfig#

pydantic model mobu.models.business.tapqueryrunner.TAPQueryRunnerConfig#

Configuration specialization for TAPQueryRunner.

Parameters:

data (Any)

Show JSON schema
{
   "title": "TAPQueryRunnerConfig",
   "description": "Configuration specialization for TAPQueryRunner.",
   "type": "object",
   "properties": {
      "type": {
         "const": "TAPQueryRunner",
         "title": "Type of business to run",
         "type": "string"
      },
      "options": {
         "$ref": "#/$defs/TAPQueryRunnerOptions",
         "title": "Options for the monkey business"
      },
      "restart": {
         "default": false,
         "examples": [
            true
         ],
         "title": "Restart business after failure",
         "type": "boolean"
      }
   },
   "$defs": {
      "HumanTimedelta": {
         "format": "duration",
         "type": "string"
      },
      "LogLevel": {
         "description": "Python logging level.\n\nAny case variation is accepted when converting a string to an enum value\nvia the class constructor.",
         "enum": [
            "DEBUG",
            "INFO",
            "WARNING",
            "ERROR",
            "CRITICAL"
         ],
         "title": "LogLevel",
         "type": "string"
      },
      "TAPQueryRunnerOptions": {
         "additionalProperties": false,
         "description": "Options for TAPQueryRunner monkey business.",
         "properties": {
            "error_idle_time": {
               "$ref": "#/$defs/HumanTimedelta",
               "default": "PT1M",
               "examples": [
                  600
               ],
               "title": "How long to wait after an error before restarting"
            },
            "idle_time": {
               "$ref": "#/$defs/HumanTimedelta",
               "default": "PT1M",
               "description": "After each loop executing monkey business, the monkey will pause for this long",
               "examples": [
                  60
               ],
               "title": "How long to wait between business executions"
            },
            "log_level": {
               "$ref": "#/$defs/LogLevel",
               "default": "INFO",
               "title": "Log level for this monkey business"
            },
            "sync": {
               "default": true,
               "description": "By default, queries to TAP are run via the sync endpoint. Set this to false to run as an async query.",
               "examples": [
                  true
               ],
               "title": "Whether to run TAP queries as sync or async",
               "type": "boolean"
            },
            "queries": {
               "description": "List of queries to be run",
               "examples": [
                  [
                     "SELECT TOP 10 * FROM TAP_SCHEMA.schemas",
                     "SELECT TOP 10 * FROM MYDB.MyTable"
                  ]
               ],
               "items": {
                  "type": "string"
               },
               "title": "TAP queries",
               "type": "array"
            }
         },
         "required": [
            "queries"
         ],
         "title": "TAPQueryRunnerOptions",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "type",
      "options"
   ]
}

Config:
  • extra: str = forbid

Fields:
field options: TAPQueryRunnerOptions [Required]#
field restart: bool = False#
field type: Literal['TAPQueryRunner'] [Required]#