- configure - ConfigureMetricsExport
- delete_config - DeleteMetricsExportConfig
- get_metrics_export_config - GetMetricsExportConfig
- test_connection - TestMetricsExportConnection
- trigger_push - TriggerMetricsPush
ConfigureMetricsExport
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.metrics_exports.configure()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
prometheus_enabled |
Optional[bool] | ➖ | N/A |
otlp_enabled |
Optional[bool] | ➖ | N/A |
otlp_endpoint |
Optional[str] | ➖ | N/A |
otlp_headers |
Optional[str] | ➖ | N/A |
otlp_protocol |
Optional[str] | ➖ | N/A |
push_interval_seconds |
Optional[int] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.MetricsExportServiceConfigureMetricsExportResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
DeleteMetricsExportConfig
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.metrics_exports.delete_config(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicMetricsExportDeleteMetricsExportConfigRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.MetricsExportServiceDeleteMetricsExportConfigResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetMetricsExportConfig
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.metrics_exports.get_metrics_export_config(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicMetricsExportGetMetricsExportConfigRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.MetricsExportServiceGetMetricsExportConfigResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
TestMetricsExportConnection
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.metrics_exports.test_connection()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
otlp_endpoint |
Optional[str] | ➖ | N/A |
otlp_headers |
Optional[str] | ➖ | N/A |
otlp_protocol |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.MetricsExportServiceTestMetricsExportConnectionResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
TriggerMetricsPush
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.metrics_exports.trigger_push(body={})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
body |
models.TextqlRPCPublicMetricsExportTriggerMetricsPushRequest | ✔️ | N/A |
connect_timeout_ms |
Optional[float] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.MetricsExportServiceTriggerMetricsPushResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |