crypticorn 2.16.0__py3-none-any.whl → 2.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crypticorn/__init__.py +2 -2
- crypticorn/auth/client/api/admin_api.py +397 -13
- crypticorn/auth/client/api/auth_api.py +3610 -341
- crypticorn/auth/client/api/service_api.py +249 -7
- crypticorn/auth/client/api/user_api.py +2295 -179
- crypticorn/auth/client/api/wallet_api.py +1468 -81
- crypticorn/auth/client/configuration.py +2 -2
- crypticorn/auth/client/models/create_api_key_request.py +2 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
- crypticorn/auth/client/rest.py +23 -4
- crypticorn/auth/main.py +8 -5
- crypticorn/cli/init.py +1 -1
- crypticorn/cli/templates/.env.docker.temp +3 -0
- crypticorn/cli/templates/.env.example.temp +4 -0
- crypticorn/cli/templates/Dockerfile +5 -2
- crypticorn/client.py +226 -59
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/auth.py +45 -14
- crypticorn/common/decorators.py +1 -2
- crypticorn/common/enums.py +0 -2
- crypticorn/common/errors.py +10 -0
- crypticorn/common/metrics.py +30 -0
- crypticorn/common/middleware.py +94 -1
- crypticorn/common/pagination.py +252 -20
- crypticorn/common/router/admin_router.py +2 -2
- crypticorn/common/router/status_router.py +40 -2
- crypticorn/common/scopes.py +2 -2
- crypticorn/common/warnings.py +7 -0
- crypticorn/dex/__init__.py +6 -0
- crypticorn/dex/client/__init__.py +49 -0
- crypticorn/dex/client/api/__init__.py +6 -0
- crypticorn/dex/client/api/admin_api.py +2986 -0
- crypticorn/dex/client/api/signals_api.py +1798 -0
- crypticorn/dex/client/api/status_api.py +892 -0
- crypticorn/dex/client/api_client.py +758 -0
- crypticorn/dex/client/api_response.py +20 -0
- crypticorn/dex/client/configuration.py +620 -0
- crypticorn/dex/client/exceptions.py +220 -0
- crypticorn/dex/client/models/__init__.py +30 -0
- crypticorn/dex/client/models/api_error_identifier.py +121 -0
- crypticorn/dex/client/models/api_error_level.py +37 -0
- crypticorn/dex/client/models/api_error_type.py +37 -0
- crypticorn/dex/client/models/exception_detail.py +117 -0
- crypticorn/dex/client/models/log_level.py +38 -0
- crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
- crypticorn/dex/client/models/risk.py +86 -0
- crypticorn/dex/client/models/signal_overview_stats.py +158 -0
- crypticorn/dex/client/models/signal_volume.py +84 -0
- crypticorn/dex/client/models/signal_with_token.py +163 -0
- crypticorn/dex/client/models/token_data.py +127 -0
- crypticorn/dex/client/models/token_detail.py +116 -0
- crypticorn/dex/client/py.typed +0 -0
- crypticorn/dex/client/rest.py +217 -0
- crypticorn/dex/main.py +1 -0
- crypticorn/hive/client/api/admin_api.py +1173 -47
- crypticorn/hive/client/api/data_api.py +499 -17
- crypticorn/hive/client/api/models_api.py +1595 -87
- crypticorn/hive/client/api/status_api.py +397 -16
- crypticorn/hive/client/api_client.py +0 -5
- crypticorn/hive/client/models/api_error_identifier.py +1 -1
- crypticorn/hive/client/models/coin_info.py +1 -1
- crypticorn/hive/client/models/exception_detail.py +1 -1
- crypticorn/hive/client/models/target_info.py +1 -1
- crypticorn/hive/client/rest.py +23 -4
- crypticorn/hive/main.py +99 -25
- crypticorn/hive/utils.py +2 -2
- crypticorn/klines/client/api/admin_api.py +1173 -47
- crypticorn/klines/client/api/change_in_timeframe_api.py +269 -11
- crypticorn/klines/client/api/funding_rates_api.py +315 -11
- crypticorn/klines/client/api/ohlcv_data_api.py +390 -11
- crypticorn/klines/client/api/status_api.py +397 -16
- crypticorn/klines/client/api/symbols_api.py +216 -11
- crypticorn/klines/client/api/udf_api.py +1268 -51
- crypticorn/klines/client/api_client.py +0 -5
- crypticorn/klines/client/models/api_error_identifier.py +3 -1
- crypticorn/klines/client/models/exception_detail.py +1 -1
- crypticorn/klines/client/models/ohlcv.py +1 -1
- crypticorn/klines/client/models/symbol_group.py +1 -1
- crypticorn/klines/client/models/udf_config.py +1 -1
- crypticorn/klines/client/rest.py +23 -4
- crypticorn/klines/main.py +89 -12
- crypticorn/metrics/client/api/admin_api.py +1173 -47
- crypticorn/metrics/client/api/exchanges_api.py +1370 -145
- crypticorn/metrics/client/api/indicators_api.py +622 -17
- crypticorn/metrics/client/api/logs_api.py +296 -11
- crypticorn/metrics/client/api/marketcap_api.py +1207 -67
- crypticorn/metrics/client/api/markets_api.py +343 -11
- crypticorn/metrics/client/api/quote_currencies_api.py +228 -11
- crypticorn/metrics/client/api/status_api.py +397 -16
- crypticorn/metrics/client/api/tokens_api.py +382 -15
- crypticorn/metrics/client/api_client.py +0 -5
- crypticorn/metrics/client/configuration.py +4 -2
- crypticorn/metrics/client/models/exception_detail.py +1 -1
- crypticorn/metrics/client/models/exchange_mapping.py +1 -1
- crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
- crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
- crypticorn/metrics/client/models/ohlcv.py +1 -1
- crypticorn/metrics/client/rest.py +23 -4
- crypticorn/metrics/main.py +113 -19
- crypticorn/pay/client/api/admin_api.py +1585 -57
- crypticorn/pay/client/api/now_payments_api.py +961 -39
- crypticorn/pay/client/api/payments_api.py +562 -17
- crypticorn/pay/client/api/products_api.py +880 -30
- crypticorn/pay/client/api/status_api.py +397 -16
- crypticorn/pay/client/api_client.py +0 -5
- crypticorn/pay/client/configuration.py +2 -2
- crypticorn/pay/client/models/api_error_identifier.py +7 -7
- crypticorn/pay/client/models/exception_detail.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
- crypticorn/pay/client/models/product.py +1 -1
- crypticorn/pay/client/models/product_create.py +1 -1
- crypticorn/pay/client/models/product_update.py +1 -1
- crypticorn/pay/client/models/scope.py +1 -0
- crypticorn/pay/client/rest.py +23 -4
- crypticorn/pay/main.py +10 -6
- crypticorn/trade/client/__init__.py +11 -1
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/admin_api.py +1184 -55
- crypticorn/trade/client/api/api_keys_api.py +1678 -162
- crypticorn/trade/client/api/bots_api.py +7563 -187
- crypticorn/trade/client/api/exchanges_api.py +565 -19
- crypticorn/trade/client/api/notifications_api.py +1290 -116
- crypticorn/trade/client/api/orders_api.py +393 -55
- crypticorn/trade/client/api/status_api.py +397 -13
- crypticorn/trade/client/api/strategies_api.py +1133 -77
- crypticorn/trade/client/api/trading_actions_api.py +786 -65
- crypticorn/trade/client/models/__init__.py +11 -0
- crypticorn/trade/client/models/actions_count.py +88 -0
- crypticorn/trade/client/models/api_error_identifier.py +1 -0
- crypticorn/trade/client/models/bot.py +7 -18
- crypticorn/trade/client/models/bot_create.py +17 -1
- crypticorn/trade/client/models/bot_update.py +17 -1
- crypticorn/trade/client/models/exchange.py +6 -1
- crypticorn/trade/client/models/exchange_key.py +1 -1
- crypticorn/trade/client/models/exchange_key_balance.py +111 -0
- crypticorn/trade/client/models/exchange_key_create.py +17 -1
- crypticorn/trade/client/models/exchange_key_update.py +17 -1
- crypticorn/trade/client/models/execution_ids.py +1 -1
- crypticorn/trade/client/models/futures_balance.py +27 -25
- crypticorn/trade/client/models/notification.py +17 -1
- crypticorn/trade/client/models/notification_create.py +18 -2
- crypticorn/trade/client/models/notification_update.py +17 -1
- crypticorn/trade/client/models/orders_count.py +88 -0
- crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
- crypticorn/trade/client/models/paginated_response_order.py +134 -0
- crypticorn/trade/client/models/pn_l.py +95 -0
- crypticorn/trade/client/models/post_futures_action.py +1 -1
- crypticorn/trade/client/models/spot_balance.py +109 -0
- crypticorn/trade/client/models/strategy.py +22 -4
- crypticorn/trade/client/models/strategy_create.py +23 -5
- crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
- crypticorn/trade/client/models/strategy_update.py +19 -3
- crypticorn/trade/client/models/tpsl.py +4 -19
- crypticorn/trade/client/models/tpsl_create.py +6 -19
- crypticorn/trade/client/rest.py +23 -4
- crypticorn/trade/main.py +15 -12
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/METADATA +65 -20
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/RECORD +163 -128
- crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/WHEEL +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0.dist-info}/top_level.txt +0 -0
@@ -11,20 +11,34 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from pydantic import Field, StrictInt
|
20
|
-
from typing import Any, Dict, List, Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.metrics.client.models.severity import Severity
|
23
19
|
|
24
20
|
from crypticorn.metrics.client.api_client import ApiClient, RequestSerialized
|
25
21
|
from crypticorn.metrics.client.api_response import ApiResponse
|
26
22
|
from crypticorn.metrics.client.rest import RESTResponseType
|
27
23
|
|
24
|
+
# Import async_to_sync for sync methods
|
25
|
+
try:
|
26
|
+
from asgiref.sync import async_to_sync
|
27
|
+
|
28
|
+
_HAS_ASGIREF = True
|
29
|
+
except ImportError:
|
30
|
+
_HAS_ASGIREF = False
|
31
|
+
|
32
|
+
def async_to_sync(async_func):
|
33
|
+
"""Fallback decorator that raises an error if asgiref is not available."""
|
34
|
+
|
35
|
+
def wrapper(*args, **kwargs):
|
36
|
+
raise ImportError(
|
37
|
+
"asgiref is required for sync methods. Install with: pip install asgiref"
|
38
|
+
)
|
39
|
+
|
40
|
+
return wrapper
|
41
|
+
|
28
42
|
|
29
43
|
class LogsApi:
|
30
44
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
@@ -33,13 +47,168 @@ class LogsApi:
|
|
33
47
|
Do not edit the class manually.
|
34
48
|
"""
|
35
49
|
|
36
|
-
def __init__(self, api_client=None) -> None:
|
50
|
+
def __init__(self, api_client=None, is_sync: bool = False) -> None:
|
37
51
|
if api_client is None:
|
38
52
|
api_client = ApiClient.get_default()
|
39
53
|
self.api_client = api_client
|
54
|
+
self.is_sync = is_sync
|
40
55
|
|
41
56
|
@validate_call
|
42
|
-
|
57
|
+
def get_metrics_error_logs(
|
58
|
+
self,
|
59
|
+
severity: Annotated[
|
60
|
+
Optional[Severity], Field(description="Severity level of errors to fetch")
|
61
|
+
] = None,
|
62
|
+
start_timestamp: Annotated[
|
63
|
+
Optional[StrictInt],
|
64
|
+
Field(description="Start timestamp for which to fetch error logs"),
|
65
|
+
] = None,
|
66
|
+
end_timestamp: Annotated[
|
67
|
+
Optional[StrictInt],
|
68
|
+
Field(description="End timestamp for which to fetch error logs"),
|
69
|
+
] = None,
|
70
|
+
_request_timeout: Union[
|
71
|
+
None,
|
72
|
+
Annotated[StrictFloat, Field(gt=0)],
|
73
|
+
Tuple[
|
74
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
75
|
+
],
|
76
|
+
] = None,
|
77
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
78
|
+
_content_type: Optional[StrictStr] = None,
|
79
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
80
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
81
|
+
) -> List[Dict[str, object]]:
|
82
|
+
"""Get Error Logs"""
|
83
|
+
if self.is_sync:
|
84
|
+
return self._get_metrics_error_logs_sync(
|
85
|
+
severity=severity,
|
86
|
+
start_timestamp=start_timestamp,
|
87
|
+
end_timestamp=end_timestamp,
|
88
|
+
_request_timeout=_request_timeout,
|
89
|
+
_request_auth=_request_auth,
|
90
|
+
_content_type=_content_type,
|
91
|
+
_headers=_headers,
|
92
|
+
_host_index=_host_index,
|
93
|
+
)
|
94
|
+
|
95
|
+
else:
|
96
|
+
return self._get_metrics_error_logs_async(
|
97
|
+
severity=severity,
|
98
|
+
start_timestamp=start_timestamp,
|
99
|
+
end_timestamp=end_timestamp,
|
100
|
+
_request_timeout=_request_timeout,
|
101
|
+
_request_auth=_request_auth,
|
102
|
+
_content_type=_content_type,
|
103
|
+
_headers=_headers,
|
104
|
+
_host_index=_host_index,
|
105
|
+
)
|
106
|
+
|
107
|
+
@validate_call
|
108
|
+
def get_metrics_error_logs_with_http_info(
|
109
|
+
self,
|
110
|
+
severity: Annotated[
|
111
|
+
Optional[Severity], Field(description="Severity level of errors to fetch")
|
112
|
+
] = None,
|
113
|
+
start_timestamp: Annotated[
|
114
|
+
Optional[StrictInt],
|
115
|
+
Field(description="Start timestamp for which to fetch error logs"),
|
116
|
+
] = None,
|
117
|
+
end_timestamp: Annotated[
|
118
|
+
Optional[StrictInt],
|
119
|
+
Field(description="End timestamp for which to fetch error logs"),
|
120
|
+
] = None,
|
121
|
+
_request_timeout: Union[
|
122
|
+
None,
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
124
|
+
Tuple[
|
125
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
126
|
+
],
|
127
|
+
] = None,
|
128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
129
|
+
_content_type: Optional[StrictStr] = None,
|
130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
132
|
+
) -> ApiResponse[List[Dict[str, object]]]:
|
133
|
+
"""Get Error Logs with HTTP info"""
|
134
|
+
if self.is_sync:
|
135
|
+
return self._get_metrics_error_logs_sync_with_http_info(
|
136
|
+
severity=severity,
|
137
|
+
start_timestamp=start_timestamp,
|
138
|
+
end_timestamp=end_timestamp,
|
139
|
+
_request_timeout=_request_timeout,
|
140
|
+
_request_auth=_request_auth,
|
141
|
+
_content_type=_content_type,
|
142
|
+
_headers=_headers,
|
143
|
+
_host_index=_host_index,
|
144
|
+
)
|
145
|
+
|
146
|
+
else:
|
147
|
+
return self._get_metrics_error_logs_async_with_http_info(
|
148
|
+
severity=severity,
|
149
|
+
start_timestamp=start_timestamp,
|
150
|
+
end_timestamp=end_timestamp,
|
151
|
+
_request_timeout=_request_timeout,
|
152
|
+
_request_auth=_request_auth,
|
153
|
+
_content_type=_content_type,
|
154
|
+
_headers=_headers,
|
155
|
+
_host_index=_host_index,
|
156
|
+
)
|
157
|
+
|
158
|
+
@validate_call
|
159
|
+
def get_metrics_error_logs_without_preload_content(
|
160
|
+
self,
|
161
|
+
severity: Annotated[
|
162
|
+
Optional[Severity], Field(description="Severity level of errors to fetch")
|
163
|
+
] = None,
|
164
|
+
start_timestamp: Annotated[
|
165
|
+
Optional[StrictInt],
|
166
|
+
Field(description="Start timestamp for which to fetch error logs"),
|
167
|
+
] = None,
|
168
|
+
end_timestamp: Annotated[
|
169
|
+
Optional[StrictInt],
|
170
|
+
Field(description="End timestamp for which to fetch error logs"),
|
171
|
+
] = None,
|
172
|
+
_request_timeout: Union[
|
173
|
+
None,
|
174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
175
|
+
Tuple[
|
176
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
177
|
+
],
|
178
|
+
] = None,
|
179
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
180
|
+
_content_type: Optional[StrictStr] = None,
|
181
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
182
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
183
|
+
) -> RESTResponseType:
|
184
|
+
"""Get Error Logs without preloading content"""
|
185
|
+
if self.is_sync:
|
186
|
+
return self._get_metrics_error_logs_sync_without_preload_content(
|
187
|
+
severity=severity,
|
188
|
+
start_timestamp=start_timestamp,
|
189
|
+
end_timestamp=end_timestamp,
|
190
|
+
_request_timeout=_request_timeout,
|
191
|
+
_request_auth=_request_auth,
|
192
|
+
_content_type=_content_type,
|
193
|
+
_headers=_headers,
|
194
|
+
_host_index=_host_index,
|
195
|
+
)
|
196
|
+
|
197
|
+
else:
|
198
|
+
return self._get_metrics_error_logs_async_without_preload_content(
|
199
|
+
severity=severity,
|
200
|
+
start_timestamp=start_timestamp,
|
201
|
+
end_timestamp=end_timestamp,
|
202
|
+
_request_timeout=_request_timeout,
|
203
|
+
_request_auth=_request_auth,
|
204
|
+
_content_type=_content_type,
|
205
|
+
_headers=_headers,
|
206
|
+
_host_index=_host_index,
|
207
|
+
)
|
208
|
+
|
209
|
+
# Private async implementation methods
|
210
|
+
@validate_call
|
211
|
+
async def _get_metrics_error_logs_async(
|
43
212
|
self,
|
44
213
|
severity: Annotated[
|
45
214
|
Optional[Severity], Field(description="Severity level of errors to fetch")
|
@@ -119,7 +288,7 @@ class LogsApi:
|
|
119
288
|
).data
|
120
289
|
|
121
290
|
@validate_call
|
122
|
-
async def
|
291
|
+
async def _get_metrics_error_logs_async_with_http_info(
|
123
292
|
self,
|
124
293
|
severity: Annotated[
|
125
294
|
Optional[Severity], Field(description="Severity level of errors to fetch")
|
@@ -194,12 +363,11 @@ class LogsApi:
|
|
194
363
|
)
|
195
364
|
await response_data.read()
|
196
365
|
return self.api_client.response_deserialize(
|
197
|
-
response_data=response_data,
|
198
|
-
response_types_map=_response_types_map,
|
366
|
+
response_data=response_data, response_types_map=_response_types_map
|
199
367
|
)
|
200
368
|
|
201
369
|
@validate_call
|
202
|
-
async def
|
370
|
+
async def _get_metrics_error_logs_async_without_preload_content(
|
203
371
|
self,
|
204
372
|
severity: Annotated[
|
205
373
|
Optional[Severity], Field(description="Severity level of errors to fetch")
|
@@ -272,7 +440,124 @@ class LogsApi:
|
|
272
440
|
response_data = await self.api_client.call_api(
|
273
441
|
*_param, _request_timeout=_request_timeout
|
274
442
|
)
|
275
|
-
return response_data
|
443
|
+
return response_data
|
444
|
+
|
445
|
+
# Private sync implementation methods
|
446
|
+
@validate_call
|
447
|
+
def _get_metrics_error_logs_sync(
|
448
|
+
self,
|
449
|
+
severity: Annotated[
|
450
|
+
Optional[Severity], Field(description="Severity level of errors to fetch")
|
451
|
+
] = None,
|
452
|
+
start_timestamp: Annotated[
|
453
|
+
Optional[StrictInt],
|
454
|
+
Field(description="Start timestamp for which to fetch error logs"),
|
455
|
+
] = None,
|
456
|
+
end_timestamp: Annotated[
|
457
|
+
Optional[StrictInt],
|
458
|
+
Field(description="End timestamp for which to fetch error logs"),
|
459
|
+
] = None,
|
460
|
+
_request_timeout: Union[
|
461
|
+
None,
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
463
|
+
Tuple[
|
464
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
465
|
+
],
|
466
|
+
] = None,
|
467
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
468
|
+
_content_type: Optional[StrictStr] = None,
|
469
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
470
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
471
|
+
) -> List[Dict[str, object]]:
|
472
|
+
"""Synchronous version of get_metrics_error_logs"""
|
473
|
+
return async_to_sync(self._get_metrics_error_logs_async)(
|
474
|
+
severity=severity,
|
475
|
+
start_timestamp=start_timestamp,
|
476
|
+
end_timestamp=end_timestamp,
|
477
|
+
_request_timeout=_request_timeout,
|
478
|
+
_request_auth=_request_auth,
|
479
|
+
_content_type=_content_type,
|
480
|
+
_headers=_headers,
|
481
|
+
_host_index=_host_index,
|
482
|
+
)
|
483
|
+
|
484
|
+
@validate_call
|
485
|
+
def _get_metrics_error_logs_sync_with_http_info(
|
486
|
+
self,
|
487
|
+
severity: Annotated[
|
488
|
+
Optional[Severity], Field(description="Severity level of errors to fetch")
|
489
|
+
] = None,
|
490
|
+
start_timestamp: Annotated[
|
491
|
+
Optional[StrictInt],
|
492
|
+
Field(description="Start timestamp for which to fetch error logs"),
|
493
|
+
] = None,
|
494
|
+
end_timestamp: Annotated[
|
495
|
+
Optional[StrictInt],
|
496
|
+
Field(description="End timestamp for which to fetch error logs"),
|
497
|
+
] = None,
|
498
|
+
_request_timeout: Union[
|
499
|
+
None,
|
500
|
+
Annotated[StrictFloat, Field(gt=0)],
|
501
|
+
Tuple[
|
502
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
503
|
+
],
|
504
|
+
] = None,
|
505
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
506
|
+
_content_type: Optional[StrictStr] = None,
|
507
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
508
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
509
|
+
) -> ApiResponse[List[Dict[str, object]]]:
|
510
|
+
"""Synchronous version of get_metrics_error_logs_with_http_info"""
|
511
|
+
return async_to_sync(self._get_metrics_error_logs_async_with_http_info)(
|
512
|
+
severity=severity,
|
513
|
+
start_timestamp=start_timestamp,
|
514
|
+
end_timestamp=end_timestamp,
|
515
|
+
_request_timeout=_request_timeout,
|
516
|
+
_request_auth=_request_auth,
|
517
|
+
_content_type=_content_type,
|
518
|
+
_headers=_headers,
|
519
|
+
_host_index=_host_index,
|
520
|
+
)
|
521
|
+
|
522
|
+
@validate_call
|
523
|
+
def _get_metrics_error_logs_sync_without_preload_content(
|
524
|
+
self,
|
525
|
+
severity: Annotated[
|
526
|
+
Optional[Severity], Field(description="Severity level of errors to fetch")
|
527
|
+
] = None,
|
528
|
+
start_timestamp: Annotated[
|
529
|
+
Optional[StrictInt],
|
530
|
+
Field(description="Start timestamp for which to fetch error logs"),
|
531
|
+
] = None,
|
532
|
+
end_timestamp: Annotated[
|
533
|
+
Optional[StrictInt],
|
534
|
+
Field(description="End timestamp for which to fetch error logs"),
|
535
|
+
] = None,
|
536
|
+
_request_timeout: Union[
|
537
|
+
None,
|
538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
539
|
+
Tuple[
|
540
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
541
|
+
],
|
542
|
+
] = None,
|
543
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
544
|
+
_content_type: Optional[StrictStr] = None,
|
545
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
546
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
547
|
+
) -> RESTResponseType:
|
548
|
+
"""Synchronous version of get_metrics_error_logs_without_preload_content"""
|
549
|
+
return async_to_sync(
|
550
|
+
self._get_metrics_error_logs_async_without_preload_content
|
551
|
+
)(
|
552
|
+
severity=severity,
|
553
|
+
start_timestamp=start_timestamp,
|
554
|
+
end_timestamp=end_timestamp,
|
555
|
+
_request_timeout=_request_timeout,
|
556
|
+
_request_auth=_request_auth,
|
557
|
+
_content_type=_content_type,
|
558
|
+
_headers=_headers,
|
559
|
+
_host_index=_host_index,
|
560
|
+
)
|
276
561
|
|
277
562
|
def _get_metrics_error_logs_serialize(
|
278
563
|
self,
|