summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-api/opendc/models/trace.py
blob: 69287f298884f87ab5fa9d119f4a3241ae8b9208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from marshmallow import Schema, fields

from opendc.models.model import Model


class TraceSchema(Schema):
    """Schema for a Trace."""
    _id = fields.String(dump_only=True)
    name = fields.String()
    type = fields.String()


class Trace(Model):
    """Model representing a Trace."""

    collection_name = 'traces'