Skip to content

dataset_metrics_serializer#

DatasetMetricsSerializer#

Bases: ModelSerializer

Source code in src/apps/core/serializers/dataset_metrics_serializer.py
6
7
8
9
class DatasetMetricsSerializer(serializers.ModelSerializer):
    class Meta:
        model = DatasetMetrics
        fields = ["modified", *DatasetMetrics.metrics_fields]

DatasetMetricsQueryParamsSerializer#

Bases: Serializer

Source code in src/apps/core/serializers/dataset_metrics_serializer.py
class DatasetMetricsQueryParamsSerializer(serializers.Serializer):
    include_metrics = serializers.BooleanField(
        help_text="Include dataset view and download metrics in the response.",
        required=False,
    )