Skip to content

Commit

Permalink
docs(ingest) Add MetadataChangeProposalWrapper import to example code (
Browse files Browse the repository at this point in the history
…datahub-project#8175)

Co-authored-by: Indy Prentice <[email protected]>
  • Loading branch information
iprentic and Indy Prentice committed Jun 7, 2023
1 parent 593fec5 commit b20561a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/modeling/metadata-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ from datahub.metadata.schema_classes import (
DatasetUsageStatisticsClass,
)
from datahub.emitter.kafka_emitter import DatahubKafkaEmitter
from datahub.emitter.mcp import MetadataChangeProposalWrapper
from datahub.emitter.rest_emitter import DatahubRestEmitter
usageStats = DatasetUsageStatisticsClass(
Expand All @@ -500,8 +501,9 @@ mcpw = MetadataChangeProposalWrapper(
aspect=usageStats,
)
# Instantiate appropriate emitter (kafk_emitter/rest_emitter)
my_emitter = DatahubKafkaEmitter("""<config>""")
# Instantiate appropriate emitter (kafka_emitter/rest_emitter)
# my_emitter = DatahubKafkaEmitter("""<config>""")
my_emitter = DatahubRestEmitter("https://localhost:8080")
my_emitter.emit(mcpw)
```

Expand Down

0 comments on commit b20561a

Please sign in to comment.