Skip to content

Commit f64f95c

Browse files
committed
Generate sdk
1 parent 3fe4e8a commit f64f95c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4486
-21
lines changed

python/README.md

+23-6
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,15 @@ configuration = seldon_deploy_sdk.Configuration()
5656
configuration.access_token = 'YOUR_ACCESS_TOKEN'
5757

5858
# create an instance of the API class
59-
api_instance = seldon_deploy_sdk.BatchJobsApi(seldon_deploy_sdk.ApiClient(configuration))
60-
name = 'name_example' # str | Name identifies a resource
61-
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
62-
workflow = seldon_deploy_sdk.BatchDefinition() # BatchDefinition | WorkflowName
59+
api_instance = seldon_deploy_sdk.ApplicationLogsApi(seldon_deploy_sdk.ApiClient(configuration))
60+
body = seldon_deploy_sdk.ApplicationLogsParams() # ApplicationLogsParams | ApplicationLogs
6361

6462
try:
65-
api_response = api_instance.create_seldon_deployment_batch_job(name, namespace, workflow)
63+
# Read application container logs from elastic search.
64+
api_response = api_instance.read_application_logs(body)
6665
pprint(api_response)
6766
except ApiException as e:
68-
print("Exception when calling BatchJobsApi->create_seldon_deployment_batch_job: %s\n" % e)
67+
print("Exception when calling ApplicationLogsApi->read_application_logs: %s\n" % e)
6968

7069
```
7170

@@ -75,6 +74,7 @@ All URIs are relative to *https://X.X.X.X/seldon-deploy/api/v1alpha1*
7574

7675
Class | Method | HTTP request | Description
7776
------------ | ------------- | ------------- | -------------
77+
*ApplicationLogsApi* | [**read_application_logs**](docs/ApplicationLogsApi.md#read_application_logs) | **POST** /applicationlogs | Read application container logs from elastic search.
7878
*BatchJobsApi* | [**create_seldon_deployment_batch_job**](docs/BatchJobsApi.md#create_seldon_deployment_batch_job) | **POST** /namespaces/{namespace}/seldondeployments/{name}/batchjobs |
7979
*BatchJobsApi* | [**get_deployment_batch_job**](docs/BatchJobsApi.md#get_deployment_batch_job) | **GET** /namespaces/{namespace}/seldondeployments/{name}/batchjobs/{jobName} |
8080
*BatchJobsApi* | [**list_seldon_deployment_batch_jobs**](docs/BatchJobsApi.md#list_seldon_deployment_batch_jobs) | **GET** /namespaces/{namespace}/seldondeployments/{name}/batchjobs |
@@ -123,6 +123,10 @@ Class | Method | HTTP request | Description
123123
*ModelMetadataServiceApi* | [**model_metadata_service_list_model_metadata**](docs/ModelMetadataServiceApi.md#model_metadata_service_list_model_metadata) | **GET** /model/metadata | List Model Metadata entries.
124124
*ModelMetadataServiceApi* | [**model_metadata_service_list_runtime_metadata_for_model**](docs/ModelMetadataServiceApi.md#model_metadata_service_list_runtime_metadata_for_model) | **GET** /model/metadata/runtime | List Runtime Metadata for all deployments associated with a model.
125125
*ModelMetadataServiceApi* | [**model_metadata_service_update_model_metadata**](docs/ModelMetadataServiceApi.md#model_metadata_service_update_model_metadata) | **PUT** /model/metadata | Update a Model Metadata entry.
126+
*MonitorApi* | [**inference_service_feature_distributions**](docs/MonitorApi.md#inference_service_feature_distributions) | **POST** /namespaces/{namespace}/inferenceservices/{name}/monitor/featuredistributions |
127+
*MonitorApi* | [**inference_service_feature_statistics**](docs/MonitorApi.md#inference_service_feature_statistics) | **POST** /namespaces/{namespace}/inferenceservices/{name}/monitor/featurestatistics |
128+
*MonitorApi* | [**seldon_deployment_feature_distributions**](docs/MonitorApi.md#seldon_deployment_feature_distributions) | **POST** /namespaces/{namespace}/seldondeployments/{name}/monitor/featuredistributions |
129+
*MonitorApi* | [**seldon_deployment_feature_statistics**](docs/MonitorApi.md#seldon_deployment_feature_statistics) | **POST** /namespaces/{namespace}/seldondeployments/{name}/monitor/featurestatistics |
126130
*OutlierDetectorApi* | [**create_outlier_detector_inference_service**](docs/OutlierDetectorApi.md#create_outlier_detector_inference_service) | **POST** /namespaces/{namespace}/inferenceservices/{name}/outlierdetector |
127131
*OutlierDetectorApi* | [**create_outlier_detector_seldon_deployment**](docs/OutlierDetectorApi.md#create_outlier_detector_seldon_deployment) | **POST** /namespaces/{namespace}/seldondeployments/{name}/outlierdetector |
128132
*OutlierDetectorApi* | [**delete_outlier_detector_inference_service**](docs/OutlierDetectorApi.md#delete_outlier_detector_inference_service) | **DELETE** /namespaces/{namespace}/inferenceservice/{name}/outlierdetector |
@@ -156,6 +160,9 @@ Class | Method | HTTP request | Description
156160
- [AlibiExplainerSpec](docs/AlibiExplainerSpec.md)
157161
- [AlibiExplainerType](docs/AlibiExplainerType.md)
158162
- [AnalyticsProps](docs/AnalyticsProps.md)
163+
- [ApplicationLog](docs/ApplicationLog.md)
164+
- [ApplicationLogsParams](docs/ApplicationLogsParams.md)
165+
- [ApplicationLogsResponse](docs/ApplicationLogsResponse.md)
159166
- [AuditLog](docs/AuditLog.md)
160167
- [AzureDataDiskCachingMode](docs/AzureDataDiskCachingMode.md)
161168
- [AzureDataDiskKind](docs/AzureDataDiskKind.md)
@@ -192,6 +199,7 @@ Class | Method | HTTP request | Description
192199
- [CustomThemeConfig](docs/CustomThemeConfig.md)
193200
- [DNSPolicy](docs/DNSPolicy.md)
194201
- [Deployment](docs/Deployment.md)
202+
- [DeploymentFeatureData](docs/DeploymentFeatureData.md)
195203
- [DeploymentList](docs/DeploymentList.md)
196204
- [DeploymentSpec](docs/DeploymentSpec.md)
197205
- [DeploymentStatus](docs/DeploymentStatus.md)
@@ -216,6 +224,15 @@ Class | Method | HTTP request | Description
216224
- [ExplainerSpec](docs/ExplainerSpec.md)
217225
- [ExternalMetricSource](docs/ExternalMetricSource.md)
218226
- [FCVolumeSource](docs/FCVolumeSource.md)
227+
- [FeatureDistribution](docs/FeatureDistribution.md)
228+
- [FeatureDistributionBucket](docs/FeatureDistributionBucket.md)
229+
- [FeatureDistributionParameters](docs/FeatureDistributionParameters.md)
230+
- [FeatureDistributionResponse](docs/FeatureDistributionResponse.md)
231+
- [FeatureFilter](docs/FeatureFilter.md)
232+
- [FeatureInteraction](docs/FeatureInteraction.md)
233+
- [FeatureStatisticsResponse](docs/FeatureStatisticsResponse.md)
234+
- [FeatureStats](docs/FeatureStats.md)
235+
- [FeatureStatsBucket](docs/FeatureStatsBucket.md)
219236
- [FieldsV1](docs/FieldsV1.md)
220237
- [FileDiff](docs/FileDiff.md)
221238
- [FinalizerName](docs/FinalizerName.md)

python/docs/ApplicationLog.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ApplicationLog
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**message** | **str** | | [optional]
7+
**timestamp** | **datetime** | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

python/docs/ApplicationLogsApi.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# seldon_deploy_sdk.ApplicationLogsApi
2+
3+
All URIs are relative to *https://X.X.X.X/seldon-deploy/api/v1alpha1*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**read_application_logs**](ApplicationLogsApi.md#read_application_logs) | **POST** /applicationlogs | Read application container logs from elastic search.
8+
9+
10+
# **read_application_logs**
11+
> ApplicationLogsResponse read_application_logs(body)
12+
13+
Read application container logs from elastic search.
14+
15+
### Example
16+
```python
17+
from __future__ import print_function
18+
import time
19+
import seldon_deploy_sdk
20+
from seldon_deploy_sdk.rest import ApiException
21+
from pprint import pprint
22+
23+
# Configure OAuth2 access token for authorization: OAuth2
24+
configuration = seldon_deploy_sdk.Configuration()
25+
configuration.access_token = 'YOUR_ACCESS_TOKEN'
26+
27+
# create an instance of the API class
28+
api_instance = seldon_deploy_sdk.ApplicationLogsApi(seldon_deploy_sdk.ApiClient(configuration))
29+
body = seldon_deploy_sdk.ApplicationLogsParams() # ApplicationLogsParams | ApplicationLogs
30+
31+
try:
32+
# Read application container logs from elastic search.
33+
api_response = api_instance.read_application_logs(body)
34+
pprint(api_response)
35+
except ApiException as e:
36+
print("Exception when calling ApplicationLogsApi->read_application_logs: %s\n" % e)
37+
```
38+
39+
### Parameters
40+
41+
Name | Type | Description | Notes
42+
------------- | ------------- | ------------- | -------------
43+
**body** | [**ApplicationLogsParams**](ApplicationLogsParams.md)| ApplicationLogs |
44+
45+
### Return type
46+
47+
[**ApplicationLogsResponse**](ApplicationLogsResponse.md)
48+
49+
### Authorization
50+
51+
[OAuth2](../README.md#OAuth2)
52+
53+
### HTTP request headers
54+
55+
- **Content-Type**: application/json
56+
- **Accept**: application/json
57+
58+
[[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)
59+

python/docs/ApplicationLogsParams.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ApplicationLogsParams
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**container_id** | **str** | | [optional]
7+
**container_name** | **str** | | [optional]
8+
**deployment_namespace** | **str** | | [optional]
9+
**_from** | **int** | | [optional]
10+
**pod_name** | **str** | | [optional]
11+
**size** | **int** | | [optional]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+
15+
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ApplicationLogsResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**logs** | [**list[ApplicationLog]**](ApplicationLog.md) | | [optional]
7+
**total** | **int** | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

python/docs/DeploymentFeatureData.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DeploymentFeatureData
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**aggregate_over_time** | **bool** | AggregateOverTime is a boolean to decide if the distribution response is to be aggregated over the time period selected | [optional]
7+
**deployment_kind** | **str** | DeploymentType refers to kubernetes kind of the deployment relevant to the feature distribution query | [optional]
8+
**deployment_name** | **str** | DeploymentName refers to name of the deployment relevant to the feature distribution query | [optional]
9+
**deployment_namespace** | **str** | DeploymentNamespace refers to namespace of the deployment relevant to the feature distribution query | [optional]
10+
**feature** | **str** | FeatureName refers to the name of feature as per the model predictions schema | [optional]
11+
**filters** | [**list[FeatureFilter]**](FeatureFilter.md) | Filters is a set of time, feature and/or outlier filters for the distribution/stats query | [optional]
12+
**interaction** | [**FeatureInteraction**](FeatureInteraction.md) | | [optional]
13+
**parameters** | [**FeatureDistributionParameters**](FeatureDistributionParameters.md) | | [optional]
14+
15+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16+
17+

python/docs/FeatureDistribution.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# FeatureDistribution
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**buckets** | [**list[FeatureDistributionBucket]**](FeatureDistributionBucket.md) | Buckets in a feature distribution | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# FeatureDistributionBucket
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**count** | **float** | Bucket Count in a feature distribution | [optional]
7+
**distribution** | [**FeatureDistribution**](FeatureDistribution.md) | | [optional]
8+
**key** | **str** | Bucket Key in a feature distribution | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# FeatureDistributionParameters
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**histogram_interval** | **float** | HistogramInterval refers to the size of bins in a aggregated feature distribution or statistics queries for real features | [optional]
7+
**minimum_bucket_count** | **int** | MinimumBucketCount refers to the minimum bucket size to filter in case of categorical, proba or one_hot feature queries | [optional]
8+
**number_of_time_buckets** | **int** | NumberOfTimeBuckets refers to the number of time bins in a non time-aggregated feature distribution or statistics queries | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# FeatureDistributionResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**distribution** | [**FeatureDistribution**](FeatureDistribution.md) | | [optional]
7+
**feature** | **str** | FeatureName refers to the name of feature as per the model predictions schema | [optional]
8+
**interaction** | [**FeatureInteraction**](FeatureInteraction.md) | | [optional]
9+
**total_instances** | **int** | TotalInstances represents the total prediction over which the distribution is computed | [optional]
10+
**type** | **str** | FeatureType refers to the type of feature as per the model predictions schema | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

python/docs/FeatureFilter.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# FeatureFilter
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**category_name** | **str** | CategoryName refers to name of the feature category relevant to PROBA and ONE_HOT features | [optional]
7+
**feature** | **str** | FeatureName refers to the name of feature as per the model predictions schema | [optional]
8+
**gt** | **str** | GreaterThan refers to numerical value of the feature filter relevant for timestamps or REAL features | [optional]
9+
**gte** | **str** | GreaterThanOrEqual refers to numerical value of the feature filter relevant for timestamps or REAL features | [optional]
10+
**interaction** | [**FeatureInteraction**](FeatureInteraction.md) | | [optional]
11+
**is_outlier** | **bool** | IsOutlier refers to boolean for outlier filters | [optional]
12+
**is_timestamp** | **bool** | IsTimestamp refers to boolean for timestamp filters | [optional]
13+
**lt** | **str** | LessThan refers to numerical value of the feature filter relevant for timestamps or REAL features | [optional]
14+
**lte** | **str** | LessThanOrEqual refers to numerical value of the feature filter relevant for timestamps or REAL features | [optional]
15+
**terms** | **list[str]** | Terms refers to set of feature categories to filter relevant to CATEGORICAL features | [optional]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

python/docs/FeatureInteraction.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# FeatureInteraction
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# FeatureStatisticsResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**feature** | **str** | FeatureName refers to the name of feature as per the model predictions schema | [optional]
7+
**interaction** | [**FeatureInteraction**](FeatureInteraction.md) | | [optional]
8+
**stats** | [**FeatureStats**](FeatureStats.md) | | [optional]
9+
**total_instances** | **int** | TotalInstances represents the total prediction over which the distribution is computed | [optional]
10+
**type** | **str** | FeatureType refers to the type of feature as per the model predictions schema | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

python/docs/FeatureStats.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# FeatureStats
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**avg** | **float** | Statistical Average of a feature value (relevant to REAL features) | [optional]
7+
**buckets** | [**list[FeatureStatsBucket]**](FeatureStatsBucket.md) | Buckets in a feature statistics | [optional]
8+
**count** | **int** | Statistical Count of a feature value (relevant to REAL features) | [optional]
9+
**max** | **float** | Statistical Maximum of a feature value (relevant to REAL features) | [optional]
10+
**min** | **float** | Statistical Minimum of a feature value (relevant to REAL features) | [optional]
11+
**most_frequent_category** | **str** | Statistical Most Frequent Category Name of a feature value (relevant to CATEGORICAL, PROBA and ONE_HOT features) | [optional]
12+
**most_frequent_category_count** | **float** | Statistical Most Frequent Category Count of a feature value (relevant to CATEGORICAL, PROBA and ONE_HOT features) | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

python/docs/FeatureStatsBucket.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# FeatureStatsBucket
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**key** | **str** | Bucket Key in a feature statistics | [optional]
7+
**stats** | [**FeatureStats**](FeatureStats.md) | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

0 commit comments

Comments
 (0)