All Downloads are FREE. Search and download functionalities are using the official Maven repository.

json.schema.system.eventPublisherJob.json Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version
{
  "$id": "https://open-metadata.org/schema/system/eventPublisherJob.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "EventPublisherResult",
  "description": "This schema defines Event Publisher Job.",
  "type": "object",
  "javaType": "org.openmetadata.schema.system.EventPublisherJob",
  "definitions": {
    "stepStats": {
      "description": "Stats for Different Steps Reader, Processor, Writer.",
      "type": "object",
      "properties": {
        "totalRecords": {
          "description": "Count of Total Failed Records",
          "type": "integer",
          "default": 0
        },
        "successRecords": {
          "description": "Count of Total Successfully Records",
          "type": "integer",
          "default": 0
        },
        "failedRecords": {
          "description": "Count of Total Failed Records",
          "type": "integer",
          "default": 0
        }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "jobStats": {
          "$ref": "#/definitions/stepStats"
        },
        "entityStats": {
          "$ref": "#/definitions/stepStats"
        }
      },
      "additionalProperties": false
    },
    "runMode": {
      "description": "This schema publisher run modes.",
      "type": "string",
      "enum": [
        "stream",
        "batch"
      ]
    },
    "publisherType": {
      "description": "This schema event Publisher Types",
      "type": "string",
      "enum": [
        "elasticSearch",
        "kafka"
      ]
    }
  },
  "properties": {
    "name": {
      "description": "Name of the result",
      "type": "string"
    },
    "timestamp": {
      "$ref": "../type/basic.json#/definitions/timestamp"
    },
    "status": {
      "description": "This schema publisher run job status.",
      "type": "string",
      "enum": [
        "started",
        "running",
        "completed",
        "failed",
        "active",
        "activeError",
        "stopped",
        "success"
      ]
    },
    "failure": {
      "description": "Failure for the job",
      "$ref": "./indexingError.json"
    },
    "stats": {
      "$ref": "#/definitions/stats"
    },
    "entities": {
      "description": "List of Entities to Reindex",
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "recreateIndex": {
      "description": "This schema publisher run modes.",
      "type": "boolean"
    },
    "batchSize": {
      "description": "Maximum number of events sent in a batch (Default 10).",
      "type": "integer"
    },
    "payLoadSize": {
      "description": "Payload size in bytes depending on config",
      "type": "integer",
      "default": 10485760
    },
    "searchIndexMappingLanguage": {
      "description": "Recreate Indexes with updated Language",
      "$ref": "../configuration/elasticSearchConfiguration.json#/definitions/searchIndexMappingLanguage"
    },
    "afterCursor": {
      "description": "Provide After in case of failure to start reindexing after the issue is solved",
      "type": "string"
    }
  },
  "required": [
    "timestamp",
    "status"
  ],
  "additionalProperties": false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy