Server Information#
- class GroupByEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
str
,Enum
- user = 'user'#
- day = 'day'#
- hour = 'hour'#
- country = 'country'#
- subdivision = 'subdivision'#
- pydantic model DeleteBeforeDateBody[source]#
Bases:
RestModelBase
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
validate_assignment: bool = True
- Fields:
- field before: datetime | None = None#
- pydantic model AccessLogQueryFilters[source]#
Bases:
QueryProjModelBase
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
validate_assignment: bool = True
- Fields:
- Validators:
- field module: List[ConstrainedStrValue] | None = None#
- field method: List[ConstrainedStrValue] | None = None#
- field user: List[int | str] | None = None#
- field before: datetime | None = None#
- Validated by:
- field after: datetime | None = None#
- Validated by:
- field limit: int | None = None#
- Validated by:
validate_lists
- field cursor: int | None = None#
- Validated by:
validate_lists
- field include: List[str] | None = None#
- field exclude: List[str] | None = None#
- pydantic model AccessLogEntry[source]#
Bases:
BaseModel
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
- Fields:
- field id: int [Required]#
- field timestamp: datetime [Required]#
- field method: str [Required]#
- field module: str | None = None#
- field full_uri: str | None = None#
- field request_duration: float | None = None#
- field request_bytes: float | None = None#
- field response_bytes: float | None = None#
- field user: str | None = None#
- field ip_address: IPvAnyAddress | None = None#
- Constraints:
type = string
format = ipvanyaddress
- field user_agent: str | None = None#
- field country_code: str | None = None#
- field subdivision: str | None = None#
- field city: str | None = None#
- field ip_lat: float | None = None#
- field ip_long: float | None = None#
- class AccessLogQueryIterator(client, query_filters)[source]#
Bases:
QueryIteratorBase
[AccessLogEntry
]Iterator for access log queries
This iterator transparently handles batching and pagination over the results of an access log query
Construct an iterator
- Parameters:
client – QCPortal client object used to contact/retrieve data from the server
query_filters (AccessLogQueryFilters) – The actual query information to send to the server
- reset()#
Starts retrieval of results from the beginning again
- pydantic model AccessLogSummaryFilters[source]#
Bases:
RestModelBase
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
validate_assignment: bool = True
- Fields:
- Validators:
- field group_by: GroupByEnum = GroupByEnum.day#
- Validated by:
- field before: datetime | None = None#
- Validated by:
- field after: datetime | None = None#
- Validated by:
- pydantic model AccessLogSummaryEntry[source]#
Bases:
BaseModel
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
- Fields:
- field module: str | None = None#
- field method: str [Required]#
- field count: int [Required]#
- field request_duration_info: List[float] [Required]#
- field response_bytes_info: List[float] [Required]#
- pydantic model AccessLogSummary[source]#
Bases:
BaseModel
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
- Fields:
- field entries: Dict[str, List[AccessLogSummaryEntry]] [Required]#
- pydantic model ErrorLogQueryFilters[source]#
Bases:
QueryModelBase
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
validate_assignment: bool = True
- Fields:
- Validators:
- field error_id: List[int] | None = None#
- field user: List[int | str] | None = None#
- field before: datetime | None = None#
- Validated by:
- field after: datetime | None = None#
- Validated by:
- field limit: int | None = None#
- Validated by:
validate_lists
- field cursor: int | None = None#
- Validated by:
validate_lists
- pydantic model ErrorLogEntry[source]#
Bases:
BaseModel
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- Config:
extra: Extra = Extra.forbid
- Fields:
- field id: int [Required]#
- field error_date: datetime [Required]#
- field qcfractal_version: str [Required]#
- field error_text: str | None = None#
- field user: str | None = None#
- field request_path: str | None = None#
- field request_headers: str | None = None#
- field request_body: str | None = None#
- class ErrorLogQueryIterator(client, query_filters)[source]#
Bases:
QueryIteratorBase
[ErrorLogEntry
]Iterator for error log queries
This iterator transparently handles batching and pagination over the results of an error log query
Construct an iterator
- Parameters:
client – QCPortal client object used to contact/retrieve data from the server
query_filters (ErrorLogQueryFilters) – The actual query information to send to the server
- reset()#
Starts retrieval of results from the beginning again