1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-30 22:09:21 +00:00
thatmattlove-hyperglass/hyperglass/models/response.py
2020-01-21 02:38:04 -07:00

16 lines
356 B
Python

"""Response model."""
# Standard Library Imports
from typing import List
# Third Party Imports
from pydantic import BaseModel
from pydantic import StrictStr
from pydantic import constr
class QueryResponse(BaseModel):
"""Query response model."""
output: StrictStr
alert: constr(regex=r"(warning|error|danger)")
keywords: List[StrictStr]