altimeter.qj.schemas package¶
Submodules¶
altimeter.qj.schemas.job module¶
Job schemas
-
class
Job
(**data)¶ Bases:
altimeter.qj.schemas.job.JobBase
Job schema
-
active
: bool¶
-
created
: datetime.datetime¶
-
max_graph_age_sec
: int¶
-
max_result_age_sec
: int¶
-
query_fields
: List[str]¶
-
result_expiration_sec
: int¶
-
-
class
JobBase
(**data)¶ Bases:
pydantic.main.BaseModel
JobBase schema
-
category
: altimeter.qj.schemas.job.Category¶
-
description
: str¶
-
graph_spec
: altimeter.qj.schemas.job.JobGraphSpec¶
-
name
: str¶
-
classmethod
name_is_valid
(value)¶ Validate the name of a job. Must begin with a letter and may consist of one or more alphanumerics or underscores.
- Return type
str
-
query
: str¶
-
severity
: altimeter.qj.schemas.job.Severity¶
-
-
class
JobCreate
(**data)¶ Bases:
altimeter.qj.schemas.job.JobBase
JobCreate schema
-
max_graph_age_sec
: Optional[int]¶
-
max_result_age_sec
: Optional[int]¶
-
result_expiration_sec
: Optional[int]¶
-
-
class
JobGraphSpec
(**data)¶ Bases:
pydantic.main.BaseModel
JobGraphSpec schema
-
graph_names
: List[str]¶
-
-
class
JobUpdate
(**data)¶ Bases:
pydantic.main.BaseModel
JobUpdate schema. Contains fields that can be updated. Some fields like query can not be updated as they will fundamentally change the result schema view
-
active
: Optional[bool]¶
-
category
: Optional[altimeter.qj.schemas.job.Category]¶
-
description
: Optional[str]¶
-
classmethod
from_job_create
(job_create)¶ Build a JobUpdate object from the relevant fields of a JobCreate object
- Return type
-
max_graph_age_sec
: Optional[int]¶
-
max_result_age_sec
: Optional[int]¶
-
result_expiration_sec
: Optional[int]¶
-
severity
: Optional[altimeter.qj.schemas.job.Severity]¶
-
altimeter.qj.schemas.result_set module¶
ResultSet and Result schemas
-
class
Result
(**data)¶ Bases:
pydantic.main.BaseModel
ResultBase schema
-
account_id
: str¶
-
classmethod
account_id_is_int
(value)¶ Validate that an account id is an integer
- Return type
str
-
result
: Dict[str, Any]¶
-
classmethod
zero_pad_account_id
(value)¶ Zero pad aws account ids
- Return type
str
-
-
class
ResultSet
(**data)¶ Bases:
altimeter.qj.schemas.result_set.ResultSetBase
ResultSet schema
-
created
: datetime.datetime¶
-
results
: List[altimeter.qj.schemas.result_set.Result]¶
-
-
class
ResultSetBase
(**data)¶ Bases:
pydantic.main.BaseModel
ResultSetBase schema
-
created
: datetime.datetime¶
-
results
: List[altimeter.qj.schemas.result_set.Result]¶
-
-
class
ResultSetCreate
(**data)¶ Bases:
altimeter.qj.schemas.result_set.ResultSetBase
ResultSetCreate schema
-
created
: datetime.datetime¶
-
results
: List[altimeter.qj.schemas.result_set.Result]¶
-
altimeter.qj.schemas.status module¶
Pydantic Status schemas
Module contents¶
All Pydantic ‘schema’ classes should be imported here