Add logic to filter out only the fields required for the create/update of metrics in the API call