Community Conundrum 28: News Engagement is live! Read More

is it possible to set metrics during the build

Level 5
is it possible to set metrics during the build
Hi,

is it possible to set a metrics from a python script instead of DSS calculation? My python script is uploading CSV file into a folder, on top of this folder is a dataset. I have already the record, column count in the script, so I would like to update these metrics:

'metrics': ['basic:COUNT_COLUMNS',
'basic:COUNT_FILES',
'basic:SIZE' ]

Thanks

T
0 Kudos
1 Reply
Dataiker
Dataiker
Hello,

By design, this is not possible as metrics computation is managed by DSS. For setting your custom parameters outside of the DSS managed metrics, we recommend setting dataset metadata: https://doc.dataiku.com/dss/latest/publicapi/client-python/datasets.html#dataikuapi.dss.dataset.DSSDataset.set_metadata

Cheers,

Alex
0 Kudos
Labels (2)
A banner prompting to get Dataiku DSS