Module auditor::client

source ·
Expand description

This module provides a client to interact with an Auditor instance.

Structs§

  • The AuditorClient handles the interaction with the Auditor instances and allows one to add records to the database, update records in the database and retrieve the records from the database.
  • The AuditorClientBlocking handles the interaction with the Auditor instances and allows one to add records to the database, update records in the database and retrieve the records from the database. In contrast to AuditorClient, no async runtime is needed here.
  • The AuditorClientBuilder is used to build an instance of either AuditorClient or AuditorClientBlocking.
  • The ComponentQuery struct represents a set of component queries associated with specific query IDs. It is used to filter records based on component-related conditions.
  • DateTimeUtcWrapper helps to implement custom serialization to serialize DateTime<Utc> to rfc3339, so that it can be used to correctly encode the query string.
  • The MetaOperator struct represents operators for metadata queries, specifying conditions for filtering.
  • The MetaQuery struct represents a set of metadata queries associated with specific query IDs It is used to filter records based on metadata conditions.
  • The Operator struct is used to specify the operators on the query parameters.
  • The QueryBuilder is used to construct QueryParameters using the builder pattern. It is used to fetch records using query parameters such as start_time, stop_time etc.
  • The QueryParameters is used to build query parameters which allows to query records from the database using advanced_query function.
  • SortBy provides options on sorting the query records

Enums§

  • Enum representing different types of values that can be used in query parameters Enum is used instead of generics to specify the type because pyo3 bindings does not contain the equivalent generics implementation.