json.schema.api.data.createQuery.json Maven / Gradle / Ivy
{
"$id": "https://open-metadata.org/schema/api/data/createQuery.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CreateQueryRequest",
"description": "Create Query Request",
"type": "object",
"javaType": "org.openmetadata.schema.api.data.CreateQuery",
"javaInterfaces": [
"org.openmetadata.schema.CreateEntity"
],
"properties": {
"name": {
"description": "Name of a Query in case of User Creation.",
"$ref": "../../type/basic.json#/definitions/entityName"
},
"displayName": {
"description": "Display Name that identifies this query.",
"type": "string"
},
"description": {
"description": "Description of the query instance.",
"$ref": "../../type/basic.json#/definitions/markdown"
},
"owners": {
"description": "Owners of this entity",
"$ref": "../../type/entityReferenceList.json",
"default": null
},
"tags": {
"description": "Tags for this Query",
"type": "array",
"items": {
"$ref": "../../type/tagLabel.json"
},
"default": null
},
"query": {
"description": "SQL Query definition.",
"$ref": "../../type/basic.json#/definitions/sqlQuery"
},
"query_type": {
"description": "SQL query type",
"type": "string"
},
"exclude_usage": {
"description": "Flag to check if query is to be excluded while processing usage",
"type": "boolean"
},
"duration": {
"description": "How long did the query took to run in milliseconds.",
"type": "number"
},
"users": {
"description": "UserName of the user running the query.",
"type" : "array",
"items": {
"$ref" : "../../type/basic.json#/definitions/fullyQualifiedEntityName"
}
},
"usedBy" : {
"description": "List of users who ran the query but does not exist in OpenMetadata.",
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"queryDate": {
"description": "Date on which the query ran.",
"$ref": "../../type/basic.json#/definitions/timestamp"
},
"queryUsedIn": {
"description": "list of entities to which the query is joined.",
"$ref": "../../type/entityReferenceList.json"
},
"triggeredBy": {
"description": "Entity that triggered the query. E.g., a Stored Procedure or a Pipeline Task.",
"$ref": "../../type/entityReference.json"
},
"processedLineage": {
"description": "Flag if this query has already been successfully processed for lineage",
"type": "boolean",
"default": false
},
"service": {
"description": "Link to the database service fully qualified name where this query has been run",
"$ref": "../../type/basic.json#/definitions/fullyQualifiedEntityName"
},
"domain" : {
"description": "Fully qualified name of the domain the Table belongs to.",
"type": "string"
}
},
"required": ["query", "service"],
"additionalProperties": false
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy