EventMetric

class pydelfini.delfini_core.models.event_metric.EventMetric(agg_func, description, event_name, name, dimensions=Unset, num_partitions=Unset, partition_by=Unset, type=EventMetricType.EVENT)[source]

Bases: object

EventMetric model

Parameters:
agg_func
Type:

MetricAggFunc

description
Type:

str

event_name
Type:

str

name
Type:

str

dimensions
Type:

Union[Unset, EventMetricDimensions]

num_partitions
Type:

Union[Unset, int]

partition_by
Type:

Union[Unset, str]

type

Default: EventMetricType.EVENT.

Type:

Union[Unset, EventMetricType]

Attributes

agg_func

description

event_name

name

dimensions

num_partitions

partition_by

type

classmethod from_dict(src_dict)[source]

Create an instance of EventMetric from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]