monitor_schema.models.segments#

Segment definitions.

Classes#

NoExtrasBaseModel

No extras base model.

SegmentTag

A single tag key value pair for a segment.

Segment

A segment is a list of tags.

Module Contents#

class monitor_schema.models.segments.NoExtrasBaseModel[source]#

Bases: pydantic.BaseModel

No extras base model.

Inherit to prevent accidental extra fields.

class monitor_schema.models.segments.SegmentTag[source]#

Bases: monitor_schema.models.commons.NoExtrasBaseModel

A single tag key value pair for a segment.

key: str#
value: str#
class monitor_schema.models.segments.Segment[source]#

Bases: monitor_schema.models.commons.NoExtrasBaseModel

A segment is a list of tags.

We normalize these in the backend.

tags: List[SegmentTag]#