mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-03 20:19:31 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			4.2 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			4.2 KiB
		
	
	
	
	
	
	
	
Topic
This schema defines the Topic entity. A topic is a feed into which message are published to by publishers and read from by consumers in a messaging service.
$id:https://open-metadata.org/schema/entity/data/topic.json
Type: object
This schema does not accept additional properties.
Properties
- id 
required- Unique identifier that identifies this topic instance.
 - $ref: ../../type/basic.json#/definitions/uuid
 
 - name 
required- Name that identifies the topic.
 - $ref: #/definitions/topicName
 
 - fullyQualifiedName
- Name that uniquely identifies a topic in the format 'messagingServiceName.topicName'.
 - Type: 
string 
 - displayName
- Display Name that identifies this topic. It could be title or label from the source services.
 - Type: 
string 
 - description
- Description of the topic instance.
 - Type: 
string 
 - version
- Metadata version of the entity.
 - $ref: ../../type/entityHistory.json#/definitions/entityVersion
 
 - updatedAt
- Last update time corresponding to the new version of the entity.
 - $ref: ../../type/basic.json#/definitions/dateTime
 
 - updatedBy
- User who made the update.
 - Type: 
string 
 - service 
required- Link to the messaging cluster/service where this topic is hosted in.
 - $ref: ../../type/entityReference.json
 
 - serviceType
- Service type where this topic is hosted in.
 - $ref: ../services/messagingService.json#/definitions/messagingServiceType
 
 - partitions 
required- Number of partitions into which the topic is divided.
 - Type: 
integer - Range: ≥ 1
 
 - schemaText
- Schema used for message serialization. Optional as some topics may not have associated schemas.
 - Type: 
string 
 - schemaType
- Schema used for message serialization.
 - $ref: #/definitions/schemaType
 
 - cleanupPolicies
- Topic clean up policies. For Kafka - 
cleanup.policyconfiguration. - Type: 
array- Items
 - $ref: #/definitions/cleanupPolicy
 
 
 - Topic clean up policies. For Kafka - 
 - retentionTime
- Retention time in milliseconds. For Kafka - 
retention.msconfiguration. - Type: 
number 
 - Retention time in milliseconds. For Kafka - 
 - replicationFactor
- Replication Factor in integer (more than 1).
 - Type: 
integer 
 - maximumMessageSize
- Maximum message size in bytes. For Kafka - 
max.message.bytesconfiguration. - Type: 
integer 
 - Maximum message size in bytes. For Kafka - 
 - minimumInSyncReplicas
- Minimum number replicas in sync to control durability. For Kafka - 
min.insync.replicasconfiguration. - Type: 
integer 
 - Minimum number replicas in sync to control durability. For Kafka - 
 - retentionSize
- Maximum size of a partition in bytes before old data is discarded. For Kafka - 
retention.bytesconfiguration. - Type: 
number - Default: "-1"
 
 - Maximum size of a partition in bytes before old data is discarded. For Kafka - 
 - owner
- Owner of this topic.
 - $ref: ../../type/entityReference.json
 
 - followers
- Followers of this table.
 - $ref: ../../type/entityReference.json#/definitions/entityReferenceList
 
 - tags
- Tags for this table.
 - Type: 
array- Items
 - $ref: ../../type/tagLabel.json
 
 
 - href
- Link to the resource corresponding to this entity.
 - $ref: ../../type/basic.json#/definitions/href
 
 - changeDescription
- Change that lead to this version of the entity.
 - $ref: ../../type/entityHistory.json#/definitions/changeDescription
 
 
Type definitions in this schema
topicName
- Name that identifies a topic.
 - Type: 
string - The value must match this pattern: 
^[^.]*$ - Length: between 1 and 128
 
schemaType
- Schema type used for the message.
 - The value is restricted to the following:
- "Avro"
 - "Protobuf"
 - "JSON"
 - "Other"
 
 
cleanupPolicy
- Topic clean up policy. For Kafka - 
cleanup.policyconfiguration. - The value is restricted to the following:
- "delete"
 - "compact"
 
 
This document was updated on: Tuesday, December 14, 2021