This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/resources/metric/schema.py

19 lines
441 B
Python
Raw Permalink Normal View History

2020-11-23 17:03:06 +00:00
from marshmallow.fields import DateTime
2023-03-21 11:08:13 +00:00
from ereuse_devicehub.teal.resource import Schema
2020-11-23 17:03:06 +00:00
class Metric(Schema):
"""
This schema filter dates for search the metrics
"""
2023-03-21 11:08:13 +00:00
start_time = DateTime(
data_key='start_time',
required=True,
description="Start date for search metrics",
)
end_time = DateTime(
data_key='end_time', required=True, description="End date for search metrics"
)