orangeqs.juice.client.logging#
Client definitions for juice logging.
Module Contents#
Functions#
Build a styled pandas dataframe from a list of log event dictionaries. |
|
Retrieve OrangeQS Juice service logs from influxdb. |
Data#
API#
- orangeqs.juice.client.logging.LOG_HEADER#
‘compile(…)’
- orangeqs.juice.client.logging.build_dataframe(data: list[Any]) pandas.io.formats.style.Styler#
Build a styled pandas dataframe from a list of log event dictionaries.
- orangeqs.juice.client.logging.query_service_logs(services: str | list[str] | None = None, max_count: int = 10, start: int = 3600, stop: int = 0, level: Literal[DEBUG, INFO, WARNING, ERROR, CRITICAL] = 'WARNING') list[orangeqs.juice.schemas.logging.LogEvent]#
Retrieve OrangeQS Juice service logs from influxdb.
Parameters#
services: The OrangeQS Juice Services to filter
max_count: The number of logs counting back from the most recent entry
start: The start time for logs to look up, in seconds from now, default is 3600 , i.e. one hour ago
stop: The stop time for logs to look up, in seconds from now, default is 0 , i.e. now
level: The minimum log level to filter, default is “WARNING”
Returns#
(list[LogEvent]): List of the retrieved log entries.