Synchronization Activity API
Hi team, i need guidance to track synchronized activity of uploading data from GCP to collibra. Actually after that i want to call one more workflow . So can you please provide code hint for this.
saritawaghmare
Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
5 comments
saritawaghmare
OP3 years ago · EditedThank you so much @alvin.useree . I will use this code .
alvinuseree
·3 years ago · EditedOf course @sarita.waghmare !
In the below example, you’ll see I’ve fed the Job Type, State and Name of Sync Job to the jobApi then loop on every result to log the outputs of the sync job
Full Code: Example Tracking Sync Info
alvinuseree
·3 years ago · Edited@sarita.waghmare
I think I can be of help here.
Every Synchronisation triggers a Collibra Job with the name:
Synchronization of batch for id: example
(Where example is the id of your sync)
And type: IMPORT
You can track this information by calling the JobApi with the type parameter as IMPORT.
For GCP I imagine you’ve appropriately named the ingestion to be able to easily identify it.
The cool thing here is that a sync (irrespective of how it was triggered - jobserver, edge, apis etc) is just an Import.
This means you can grab the results metadata programmatically using the Import Results endpoint!
saritawaghmare
OP3 years ago · EditedHi @alvin.useree ,
Thank you for your response , It will be very helpful ,if you can just share sample code example for this. Since I am new to this , would like to have your guidance.
Thank you.
Regards,
Sarita
saritawaghmare
OP3 years ago · EditedHi @alvin.useree ,
Thank you for your response , It will be very helpful ,if you can just share sample code example for this. Since I am new to this , would like to have your guidance.
Thank you.
Regards,
Sarita