Client base
provide.foundation.integrations.openobserve.client_base
¶
Base OpenObserve client with core functionality.
Classes¶
OpenObserveClientBase
¶
OpenObserveClientBase(
url: str,
username: str,
password: str,
organization: str = "default",
timeout: int = 30,
)
Base OpenObserve client with core HTTP functionality.
Uses Foundation's transport system for all HTTP operations.
Initialize OpenObserve client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
Base URL for OpenObserve API |
required |
username
|
str
|
Username for authentication |
required |
password
|
str
|
Password for authentication |
required |
organization
|
str
|
Organization name (default: "default") |
'default'
|
timeout
|
int
|
Request timeout in seconds |
30
|
Note
Retry logic is handled automatically by UniversalClient's middleware.
Source code in provide/foundation/integrations/openobserve/client_base.py
Functions¶
from_config
classmethod
¶
Create client from OpenObserveConfig.
Returns:
| Type | Description |
|---|---|
OpenObserveClientBase
|
Configured OpenObserveClient instance |
Raises:
| Type | Description |
|---|---|
OpenObserveConfigError
|
If configuration is missing |