mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 21:43:11 +00:00
15 lines
459 B
Python
15 lines
459 B
Python
from mongoengine import EmbeddedDocument, StringField, DynamicField
|
|
|
|
|
|
class MetricEvent(EmbeddedDocument):
|
|
meta = {
|
|
# For backwards compatibility reasons
|
|
'strict': False,
|
|
}
|
|
|
|
metric = StringField(required=True)
|
|
variant = StringField(required=True)
|
|
value = DynamicField(required=True)
|
|
min_value = DynamicField() # for backwards compatibility reasons
|
|
max_value = DynamicField() # for backwards compatibility reasons
|