is it possible to set metrics during the build

Solved!
tomas
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 Solution
Alex_Combessie
Dataiker Alumni
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

View solution in original post

0 Kudos
1 Reply
Alex_Combessie
Dataiker Alumni
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

?
Labels (2)
A banner prompting to get Dataiku