How do I get created and modified dates fro an artifact in Dataiku Govern API

Peter_R_Knight
Registered Posts: 34 ✭✭✭✭
I can see this information in the timeline in the UI, but doesn't seem to be in the data returned by:
ar = client.get_artifact('ar.26421')
print(ar.get_definition().get_raw())
Operating system used: Windows
Tagged:
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,248 Neuron
The timeline object comes from the Project, you can try with that:
import dataiku client = dataiku.api_client() project = client.get_default_project() timeline = project.get_timeline(item_count=100) print(timeline)
-
Thanks for the suggestion, but I'm afraid this is on a DSS project API, but I would like the timeline information from the Govern API which doesn't seem to have a get_timeline() method.