|
| 1 | +# ksapi.DiagnosticsApi |
| 2 | + |
| 3 | +All URIs are relative to *http://localhost:8000* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**compute_thread_diagnostics**](DiagnosticsApi.md#compute_thread_diagnostics) | **POST** /v1/diagnostics/threads/{thread_id} | Compute Thread Diagnostics Handler |
| 8 | +[**compute_workflow_run_diagnostics**](DiagnosticsApi.md#compute_workflow_run_diagnostics) | **POST** /v1/diagnostics/workflow-runs/{run_id} | Compute Workflow Run Diagnostics Handler |
| 9 | + |
| 10 | + |
| 11 | +# **compute_thread_diagnostics** |
| 12 | +> DiagnosticsResponse compute_thread_diagnostics(thread_id) |
| 13 | +
|
| 14 | +Compute Thread Diagnostics Handler |
| 15 | + |
| 16 | +Stats and trace links for every turn; a run's thread answers as its run. |
| 17 | + |
| 18 | +### Example |
| 19 | + |
| 20 | +* Api Key Authentication (cookieAuth): |
| 21 | +* Bearer Authentication (bearerAuth): |
| 22 | + |
| 23 | +```python |
| 24 | +import ksapi |
| 25 | +from ksapi.models.diagnostics_response import DiagnosticsResponse |
| 26 | +from ksapi.rest import ApiException |
| 27 | +from pprint import pprint |
| 28 | + |
| 29 | +# Defining the host is optional and defaults to http://localhost:8000 |
| 30 | +# See configuration.py for a list of all supported configuration parameters. |
| 31 | +configuration = ksapi.Configuration( |
| 32 | + host = "http://localhost:8000" |
| 33 | +) |
| 34 | + |
| 35 | +# The client must configure the authentication and authorization parameters |
| 36 | +# in accordance with the API server security policy. |
| 37 | +# Examples for each auth method are provided below, use the example that |
| 38 | +# satisfies your auth use case. |
| 39 | + |
| 40 | +# Configure API key authorization: cookieAuth |
| 41 | +configuration.api_key['cookieAuth'] = os.environ["API_KEY"] |
| 42 | + |
| 43 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 44 | +# configuration.api_key_prefix['cookieAuth'] = 'Bearer' |
| 45 | + |
| 46 | +# Configure Bearer authorization: bearerAuth |
| 47 | +configuration = ksapi.Configuration( |
| 48 | + access_token = os.environ["BEARER_TOKEN"] |
| 49 | +) |
| 50 | + |
| 51 | +# Enter a context with an instance of the API client |
| 52 | +with ksapi.ApiClient(configuration) as api_client: |
| 53 | + # Create an instance of the API class |
| 54 | + api_instance = ksapi.DiagnosticsApi(api_client) |
| 55 | + thread_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | |
| 56 | + |
| 57 | + try: |
| 58 | + # Compute Thread Diagnostics Handler |
| 59 | + api_response = api_instance.compute_thread_diagnostics(thread_id) |
| 60 | + print("The response of DiagnosticsApi->compute_thread_diagnostics:\n") |
| 61 | + pprint(api_response) |
| 62 | + except Exception as e: |
| 63 | + print("Exception when calling DiagnosticsApi->compute_thread_diagnostics: %s\n" % e) |
| 64 | +``` |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +### Parameters |
| 69 | + |
| 70 | + |
| 71 | +Name | Type | Description | Notes |
| 72 | +------------- | ------------- | ------------- | ------------- |
| 73 | + **thread_id** | **UUID**| | |
| 74 | + |
| 75 | +### Return type |
| 76 | + |
| 77 | +[**DiagnosticsResponse**](DiagnosticsResponse.md) |
| 78 | + |
| 79 | +### Authorization |
| 80 | + |
| 81 | +[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth) |
| 82 | + |
| 83 | +### HTTP request headers |
| 84 | + |
| 85 | + - **Content-Type**: Not defined |
| 86 | + - **Accept**: application/json |
| 87 | + |
| 88 | +### HTTP response details |
| 89 | + |
| 90 | +| Status code | Description | Response headers | |
| 91 | +|-------------|-------------|------------------| |
| 92 | +**200** | Successful Response | - | |
| 93 | +**422** | Validation Error | - | |
| 94 | +**0** | Error response. | - | |
| 95 | + |
| 96 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 97 | + |
| 98 | +# **compute_workflow_run_diagnostics** |
| 99 | +> DiagnosticsResponse compute_workflow_run_diagnostics(run_id) |
| 100 | +
|
| 101 | +Compute Workflow Run Diagnostics Handler |
| 102 | + |
| 103 | +Stats and trace links for the run's attempts and every turn in its thread. |
| 104 | + |
| 105 | +### Example |
| 106 | + |
| 107 | +* Api Key Authentication (cookieAuth): |
| 108 | +* Bearer Authentication (bearerAuth): |
| 109 | + |
| 110 | +```python |
| 111 | +import ksapi |
| 112 | +from ksapi.models.diagnostics_response import DiagnosticsResponse |
| 113 | +from ksapi.rest import ApiException |
| 114 | +from pprint import pprint |
| 115 | + |
| 116 | +# Defining the host is optional and defaults to http://localhost:8000 |
| 117 | +# See configuration.py for a list of all supported configuration parameters. |
| 118 | +configuration = ksapi.Configuration( |
| 119 | + host = "http://localhost:8000" |
| 120 | +) |
| 121 | + |
| 122 | +# The client must configure the authentication and authorization parameters |
| 123 | +# in accordance with the API server security policy. |
| 124 | +# Examples for each auth method are provided below, use the example that |
| 125 | +# satisfies your auth use case. |
| 126 | + |
| 127 | +# Configure API key authorization: cookieAuth |
| 128 | +configuration.api_key['cookieAuth'] = os.environ["API_KEY"] |
| 129 | + |
| 130 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 131 | +# configuration.api_key_prefix['cookieAuth'] = 'Bearer' |
| 132 | + |
| 133 | +# Configure Bearer authorization: bearerAuth |
| 134 | +configuration = ksapi.Configuration( |
| 135 | + access_token = os.environ["BEARER_TOKEN"] |
| 136 | +) |
| 137 | + |
| 138 | +# Enter a context with an instance of the API client |
| 139 | +with ksapi.ApiClient(configuration) as api_client: |
| 140 | + # Create an instance of the API class |
| 141 | + api_instance = ksapi.DiagnosticsApi(api_client) |
| 142 | + run_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | |
| 143 | + |
| 144 | + try: |
| 145 | + # Compute Workflow Run Diagnostics Handler |
| 146 | + api_response = api_instance.compute_workflow_run_diagnostics(run_id) |
| 147 | + print("The response of DiagnosticsApi->compute_workflow_run_diagnostics:\n") |
| 148 | + pprint(api_response) |
| 149 | + except Exception as e: |
| 150 | + print("Exception when calling DiagnosticsApi->compute_workflow_run_diagnostics: %s\n" % e) |
| 151 | +``` |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | +### Parameters |
| 156 | + |
| 157 | + |
| 158 | +Name | Type | Description | Notes |
| 159 | +------------- | ------------- | ------------- | ------------- |
| 160 | + **run_id** | **UUID**| | |
| 161 | + |
| 162 | +### Return type |
| 163 | + |
| 164 | +[**DiagnosticsResponse**](DiagnosticsResponse.md) |
| 165 | + |
| 166 | +### Authorization |
| 167 | + |
| 168 | +[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth) |
| 169 | + |
| 170 | +### HTTP request headers |
| 171 | + |
| 172 | + - **Content-Type**: Not defined |
| 173 | + - **Accept**: application/json |
| 174 | + |
| 175 | +### HTTP response details |
| 176 | + |
| 177 | +| Status code | Description | Response headers | |
| 178 | +|-------------|-------------|------------------| |
| 179 | +**200** | Successful Response | - | |
| 180 | +**422** | Validation Error | - | |
| 181 | +**0** | Error response. | - | |
| 182 | + |
| 183 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 184 | + |
0 commit comments