|
| 1 | +# seldon_deploy_sdk.AlertingServiceApi |
| 2 | + |
| 3 | +All URIs are relative to *https://X.X.X.X/seldon-deploy/api/v1alpha1* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**alerting_service_list_alerts**](AlertingServiceApi.md#alerting_service_list_alerts) | **GET** /alerting/alerts | List currently firing alerts. |
| 8 | +[**alerting_service_trigger_test_alert**](AlertingServiceApi.md#alerting_service_trigger_test_alert) | **POST** /alerting/test | Triggers a test alert to check alerting workflow. |
| 9 | + |
| 10 | + |
| 11 | +# **alerting_service_list_alerts** |
| 12 | +> V1ListAlertsResponse alerting_service_list_alerts() |
| 13 | +
|
| 14 | +List currently firing alerts. |
| 15 | + |
| 16 | +### Example |
| 17 | +```python |
| 18 | +from __future__ import print_function |
| 19 | +import time |
| 20 | +import seldon_deploy_sdk |
| 21 | +from seldon_deploy_sdk.rest import ApiException |
| 22 | +from pprint import pprint |
| 23 | + |
| 24 | +# Configure OAuth2 access token for authorization: OAuth2 |
| 25 | +configuration = seldon_deploy_sdk.Configuration() |
| 26 | +configuration.access_token = 'YOUR_ACCESS_TOKEN' |
| 27 | + |
| 28 | +# create an instance of the API class |
| 29 | +api_instance = seldon_deploy_sdk.AlertingServiceApi(seldon_deploy_sdk.ApiClient(configuration)) |
| 30 | + |
| 31 | +try: |
| 32 | + # List currently firing alerts. |
| 33 | + api_response = api_instance.alerting_service_list_alerts() |
| 34 | + pprint(api_response) |
| 35 | +except ApiException as e: |
| 36 | + print("Exception when calling AlertingServiceApi->alerting_service_list_alerts: %s\n" % e) |
| 37 | +``` |
| 38 | + |
| 39 | +### Parameters |
| 40 | +This endpoint does not need any parameter. |
| 41 | + |
| 42 | +### Return type |
| 43 | + |
| 44 | +[**V1ListAlertsResponse**](V1ListAlertsResponse.md) |
| 45 | + |
| 46 | +### Authorization |
| 47 | + |
| 48 | +[OAuth2](../README.md#OAuth2) |
| 49 | + |
| 50 | +### HTTP request headers |
| 51 | + |
| 52 | + - **Content-Type**: application/json |
| 53 | + - **Accept**: application/json |
| 54 | + |
| 55 | +[[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) |
| 56 | + |
| 57 | +# **alerting_service_trigger_test_alert** |
| 58 | +> V1TriggerTestAlertResponse alerting_service_trigger_test_alert(body) |
| 59 | +
|
| 60 | +Triggers a test alert to check alerting workflow. |
| 61 | + |
| 62 | +### Example |
| 63 | +```python |
| 64 | +from __future__ import print_function |
| 65 | +import time |
| 66 | +import seldon_deploy_sdk |
| 67 | +from seldon_deploy_sdk.rest import ApiException |
| 68 | +from pprint import pprint |
| 69 | + |
| 70 | +# Configure OAuth2 access token for authorization: OAuth2 |
| 71 | +configuration = seldon_deploy_sdk.Configuration() |
| 72 | +configuration.access_token = 'YOUR_ACCESS_TOKEN' |
| 73 | + |
| 74 | +# create an instance of the API class |
| 75 | +api_instance = seldon_deploy_sdk.AlertingServiceApi(seldon_deploy_sdk.ApiClient(configuration)) |
| 76 | +body = true # bool | Set to true if you wish to test Prometheus -> Alertmanager connection False sends an alert payload directly to Alertmanager, skipping Prometheus metrics/alert flow |
| 77 | + |
| 78 | +try: |
| 79 | + # Triggers a test alert to check alerting workflow. |
| 80 | + api_response = api_instance.alerting_service_trigger_test_alert(body) |
| 81 | + pprint(api_response) |
| 82 | +except ApiException as e: |
| 83 | + print("Exception when calling AlertingServiceApi->alerting_service_trigger_test_alert: %s\n" % e) |
| 84 | +``` |
| 85 | + |
| 86 | +### Parameters |
| 87 | + |
| 88 | +Name | Type | Description | Notes |
| 89 | +------------- | ------------- | ------------- | ------------- |
| 90 | + **body** | **bool**| Set to true if you wish to test Prometheus -> Alertmanager connection False sends an alert payload directly to Alertmanager, skipping Prometheus metrics/alert flow | |
| 91 | + |
| 92 | +### Return type |
| 93 | + |
| 94 | +[**V1TriggerTestAlertResponse**](V1TriggerTestAlertResponse.md) |
| 95 | + |
| 96 | +### Authorization |
| 97 | + |
| 98 | +[OAuth2](../README.md#OAuth2) |
| 99 | + |
| 100 | +### HTTP request headers |
| 101 | + |
| 102 | + - **Content-Type**: application/json |
| 103 | + - **Accept**: application/json |
| 104 | + |
| 105 | +[[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) |
| 106 | + |
0 commit comments